EntityObjectExtensionsFillMissingDefaults Method |
Executes the late default expression defined in each attribute (if any) if the current value is null or equal to a constant default.
Namespace:
Aloe.SystemFrameworks.Domain
Assembly:
Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntaxpublic static void FillMissingDefaults(
this EntityObject obj,
IEnumerable<IDataAttribute> attributes = null,
Dictionary<EntityObject, HashSet<IDataAttribute>> handledCache = null
)
<ExtensionAttribute>
Public Shared Sub FillMissingDefaults (
obj As EntityObject,
Optional attributes As IEnumerable(Of IDataAttribute) = Nothing,
Optional handledCache As Dictionary(Of EntityObject, HashSet(Of IDataAttribute)) = Nothing
)
public:
[ExtensionAttribute]
static void FillMissingDefaults(
EntityObject^ obj,
IEnumerable<IDataAttribute^>^ attributes = nullptr,
Dictionary<EntityObject^, HashSet<IDataAttribute^>^>^ handledCache = nullptr
)
[<ExtensionAttribute>]
static member FillMissingDefaults :
obj : EntityObject *
?attributes : IEnumerable<IDataAttribute> *
?handledCache : Dictionary<EntityObject, HashSet<IDataAttribute>>
(* Defaults:
let _attributes = defaultArg attributes null
let _handledCache = defaultArg handledCache null
*)
-> unit
Parameters
- obj
- Type: Aloe.SystemFrameworks.DomainEntityObject
The object. - attributes (Optional)
- Type: System.Collections.GenericIEnumerableIDataAttribute
The attributes to recalculate or null to handle all attributes. - handledCache (Optional)
- Type: System.Collections.GenericDictionaryEntityObject, HashSetIDataAttribute
A cache of handled attributes by object. Used to prevent cyclic reference.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
EntityObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also