CalculatedDataAttribute Constructor |
Namespace:
Aloe.SystemFrameworks.Domain
Assembly:
Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntaxpublic CalculatedDataAttribute(
string name,
Func<string> localizedNameFunc,
Func<(Func<DomainObject, Object> , Type )> compile,
BaseAttributeInfo baseInfo = null
)
Public Sub New (
name As String,
localizedNameFunc As Func(Of String),
compile As Func(Of ( As Func(Of DomainObject, Object), As Type)),
Optional baseInfo As BaseAttributeInfo = Nothing
)
public:
CalculatedDataAttribute(
String^ name,
Func<String^>^ localizedNameFunc,
Func<ValueTuple<Func<DomainObject^, Object^>^, Type^>^>^ compile,
BaseAttributeInfo^ baseInfo = nullptr
)
new :
name : string *
localizedNameFunc : Func<string> *
compile : Func<ValueTuple<Func<DomainObject, Object>, Type>> *
?baseInfo : BaseAttributeInfo
(* Defaults:
let _baseInfo = defaultArg baseInfo null
*)
-> CalculatedDataAttribute
Parameters
- name
- Type: SystemString
The name of the attribute. - localizedNameFunc
- Type: SystemFuncString
Function, returning the name in the current thread language. - compile
- Type: SystemFuncValueTupleFuncDomainObject, Object, Type
Function returning the expression and the value type. - baseInfo (Optional)
- Type: Aloe.SystemFrameworks.Domain.AttributesBaseAttributeInfo
The base information.
See Also