Namespace: Semata.DataStore.ObjectModel
Class: AttributeProperty<V>
Constructs a new instance of AttributeProperty
public AttributeProperty(ItemObject itemObject, string attributeTypeName, string propertyName, bool required, bool unique, Func<object, object> onChanged, Func<object, object> onWriting)
Parameters
Type | Name | Description |
ItemObject | itemObject | The ItemObject of which this is a property |
string | attributeTypeName | The name of the AttributeType from which this property was derived |
string | propertyName | Name of the property as it appears on the ItemObject |
bool | required | If true, value cannot be null |
bool | unique | If true, a non-null value needs to be unique |
Func<object, object> | onChanged | delegate that takes the value being set, after it has been converted, and returns a value |
Func<object, object> | onWriting | delegate that takes the value being written, prior to it being written, and returns a value |