Click or drag to resize

IDataAttribute Interface

Abstract interface to data attribute of a domain object

Namespace:  Aloe.SystemFrameworks.Domain
Assembly:  Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntax
public interface IDataAttribute

The IDataAttribute type exposes the following members.

Properties
  NameDescription
Public propertyBaseInfo
Gets the base information.
Public propertyDefaultValue
Gets the default value of the attribute.
Public propertyExpressions
Gets the recalc expression.
Public propertyIsBlob
Gets a value indicating whether this attribute data is BLOB.
Public propertyIsPersistent
Gets a value indicating whether this attribute is persistent. Only persistent attributes support track changes.
Public propertyLocalizedName
Gets the name of the attribute in the current UI culture.
Public propertyName
Gets the name of the data attribute
Public propertyPrimitiveValueType
Gets the primitive type or null. Used in public APIs to represent a complex value as a primitive value. For example Quantity and Amount attributes may have Decimal primitive type.
Public propertyReadOnly
Is the Property read-only
Public propertySupportsGet
Gets a value indicating whether the attribute supports getting a value.
Public propertySupportsSet
Gets a value indicating whether the attribute supports setting a value.
Public propertyValueType
Returns the Type of the data, that this attribute stores
Top
Methods
  NameDescription
Public methodFilterBy
Creates and returns filter condition for the data attribute
Public methodGetComplexTypeAccessor
Gets the complex type value accessor or null if the attribute does not support it. Complex type values are frequently used in Entity Data Models.
Public methodGetDisplayValueAccessor
Gets the display text accessor or null if the attribute does not support it. The display value is localized in the current thread culture and is suitable for displaying and modification by end users.
Public methodGetInvariantStringAccessor
Gets the text value accessor or null if the attribute does not support it. The text value is used when importing from or exporting to text files or streams.
Public methodGetPrimitiveValueAccessor
Gets the primitive value accessor or null if the attribute does not support it. The type of the value is represented by PrimitiveValueType.
Public methodGetUntypedValue
Gets the value of the data attribute for the specified domain object
Public methodOnDataAttributeChanged
Raises the DataAttributeChanged event.
Public methodPrepare
Performs attribute-specific work to prepare the attribute. For example calculated attributes must be compiled. Called by the system after the attribute is added to the repository.
Public methodSetDefaultValue
Sets the attribute to its default value.
Public methodSetUntypedValue
Sets the value of the data attribute for the specified entity object
Public methodShouldRecalculateLateDefault
Returns true if the attribute should be recalculated for the specified object.
Top
Events
  NameDescription
Public eventDataAttributeChanged
The data attribute changed event. Fired after the data attribute changes for an object.
Top
Extension Methods
  NameDescription
Public Extension MethodGetUntypedValueAccessor
Gets the untyped value accessor.
(Defined by IDataAttributeExtensions.)
Public Extension MethodIsNull
Determines whether value of the attribute of the specified object is null.
(Defined by IDataAttributeExtensions.)
Top
Remarks
Data attributes map the data between domain attributes and underlying data storage structures. Data attributes contain storage logic and should NOT contain business logic. For example, it is ok to transform enums into numbers and vice versa, but it is not ok to put domain validation logic in the attribute itself.
See Also