IntEnumDataAttributeTObject, TEnum Constructor |
Creates new EnumDataAttribute
Namespace:
Aloe.SystemFrameworks.Domain
Assembly:
Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntaxpublic IntEnumDataAttribute(
string tableName,
string columnName,
Func<TObject, IBufferRow> getRowDelegate,
string attributeName = null,
bool readOnly = false,
DefaultValue defaultValue = null,
AttributeExpressions<TObject> expressions = null,
BaseAttributeInfo baseInfo = null
)
Public Sub New (
tableName As String,
columnName As String,
getRowDelegate As Func(Of TObject, IBufferRow),
Optional attributeName As String = Nothing,
Optional readOnly As Boolean = false,
Optional defaultValue As DefaultValue = Nothing,
Optional expressions As AttributeExpressions(Of TObject) = Nothing,
Optional baseInfo As BaseAttributeInfo = Nothing
)
public:
IntEnumDataAttribute(
String^ tableName,
String^ columnName,
Func<TObject, IBufferRow^>^ getRowDelegate,
String^ attributeName = nullptr,
bool readOnly = false,
DefaultValue^ defaultValue = nullptr,
AttributeExpressions<TObject>^ expressions = nullptr,
BaseAttributeInfo^ baseInfo = nullptr
)
new :
tableName : string *
columnName : string *
getRowDelegate : Func<'TObject, IBufferRow> *
?attributeName : string *
?readOnly : bool *
?defaultValue : DefaultValue *
?expressions : AttributeExpressions<'TObject> *
?baseInfo : BaseAttributeInfo
(* Defaults:
let _attributeName = defaultArg attributeName null
let _readOnly = defaultArg readOnly false
let _defaultValue = defaultArg defaultValue null
let _expressions = defaultArg expressions null
let _baseInfo = defaultArg baseInfo null
*)
-> IntEnumDataAttribute
Parameters
- tableName
- Type: SystemString
The storage table of the base column of the enum - columnName
- Type: SystemString
The base column in which to store the enum - getRowDelegate
- Type: SystemFuncTObject, IBufferRow
Delegate to return reference to the buffer row, containing the enum data locally - attributeName (Optional)
- Type: SystemString
The name of the enum attribute. If null, the column name is used - readOnly (Optional)
- Type: SystemBoolean
If the enum attribute is readonly - defaultValue (Optional)
- Type: Aloe.SystemFrameworks.DomainDefaultValue
The default value. - expressions (Optional)
- Type: Aloe.SystemFrameworks.Domain.AttributesAttributeExpressionsTObject
The attribute expressions. - baseInfo (Optional)
- Type: Aloe.SystemFrameworks.Domain.AttributesBaseAttributeInfo
The base information.
See Also