Click or drag to resize

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
Syntax
public static void FillMissingDefaults(
	this EntityObject obj,
	IEnumerable<IDataAttribute> attributes = null,
	Dictionary<EntityObject, HashSet<IDataAttribute>> handledCache = null
)

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