IdAttributeTObject Constructor |
Create new IdAttribute
Namespace:
Aloe.SystemFrameworks.Domain
Assembly:
Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntaxpublic IdAttribute(
string tableName,
string columnName,
Func<TObject, IBufferRow> getRowDelegate,
string attributeName = "Id",
BaseAttributeInfo baseInfo = null
)
Public Sub New (
tableName As String,
columnName As String,
getRowDelegate As Func(Of TObject, IBufferRow),
Optional attributeName As String = "Id",
Optional baseInfo As BaseAttributeInfo = Nothing
)
public:
IdAttribute(
String^ tableName,
String^ columnName,
Func<TObject, IBufferRow^>^ getRowDelegate,
String^ attributeName = L"Id",
BaseAttributeInfo^ baseInfo = nullptr
)
new :
tableName : string *
columnName : string *
getRowDelegate : Func<'TObject, IBufferRow> *
?attributeName : string *
?baseInfo : BaseAttributeInfo
(* Defaults:
let _attributeName = defaultArg attributeName "Id"
let _baseInfo = defaultArg baseInfo null
*)
-> IdAttribute
Parameters
- tableName
- Type: SystemString
The storage table name - columnName
- Type: SystemString
The name of the Id column - getRowDelegate
- Type: SystemFuncTObject, IBufferRow
Function, which returns the data row, given the object. - attributeName (Optional)
- Type: SystemString
Name of the data attribute in the domain class. - baseInfo (Optional)
- Type: Aloe.SystemFrameworks.Domain.AttributesBaseAttributeInfo
The base information.
See Also