AmountDataAttributeTObject Constructor |
Namespace:
Aloe.EnterpriseOne.Model.Core
Assembly:
Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntaxpublic AmountDataAttribute(
string name,
IColumnDataAttribute valueAttribute,
Func<TObject, Currency> currencyGetter,
bool readOnly = false,
DefaultValue defaultValue = null,
AttributeExpressions<TObject> expressions = null,
BaseAttributeInfo baseInfo = null
)
Public Sub New (
name As String,
valueAttribute As IColumnDataAttribute,
currencyGetter As Func(Of TObject, Currency),
Optional readOnly As Boolean = false,
Optional defaultValue As DefaultValue = Nothing,
Optional expressions As AttributeExpressions(Of TObject) = Nothing,
Optional baseInfo As BaseAttributeInfo = Nothing
)
public:
AmountDataAttribute(
String^ name,
IColumnDataAttribute^ valueAttribute,
Func<TObject, Currency^>^ currencyGetter,
bool readOnly = false,
DefaultValue^ defaultValue = nullptr,
AttributeExpressions<TObject>^ expressions = nullptr,
BaseAttributeInfo^ baseInfo = nullptr
)
new :
name : string *
valueAttribute : IColumnDataAttribute *
currencyGetter : Func<'TObject, Currency> *
?readOnly : bool *
?defaultValue : DefaultValue *
?expressions : AttributeExpressions<'TObject> *
?baseInfo : BaseAttributeInfo
(* Defaults:
let _readOnly = defaultArg readOnly false
let _defaultValue = defaultArg defaultValue null
let _expressions = defaultArg expressions null
let _baseInfo = defaultArg baseInfo null
*)
-> AmountDataAttribute
Parameters
- name
- Type: SystemString
The name. - valueAttribute
- Type: Aloe.SystemFrameworks.DomainIColumnDataAttribute
The value attribute. - currencyGetter
- Type: SystemFuncTObject, Currency
Expression, which returns the currency of the amount. - readOnly (Optional)
- Type: SystemBoolean
if set to true [read only]. - defaultValue (Optional)
- Type: Aloe.SystemFrameworks.DomainDefaultValue
The default value. - expressions (Optional)
- Type: Aloe.SystemFrameworks.Domain.AttributesAttributeExpressionsTObject
The expression used to recalculate the attribute value. - baseInfo (Optional)
- Type: Aloe.SystemFrameworks.Domain.AttributesBaseAttributeInfo
The base information.
Exceptions
See Also