Click or drag to resize

QuantityDataAttributeTObject Constructor

Namespace:  Aloe.EnterpriseOne.Model.Core
Assembly:  Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntax
public QuantityDataAttribute(
	string name,
	IColumnDataAttribute valueAttribute,
	Func<TObject, MeasurementUnit> unitGetter,
	bool readOnly = false,
	DefaultValue defaultValue = null,
	AttributeExpressions<TObject> expressions = null,
	BaseAttributeInfo baseInfo = null
)

Parameters

name
Type: SystemString
The name.
valueAttribute
Type: Aloe.SystemFrameworks.DomainIColumnDataAttribute
The attribute, containing the quantity value.
unitGetter
Type: SystemFuncTObject, MeasurementUnit
Expression, which gets the measurement unit.
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 recalc expression.
baseInfo (Optional)
Type: Aloe.SystemFrameworks.Domain.AttributesBaseAttributeInfo
The base information.
Exceptions
ExceptionCondition
InvalidOperationExceptionvalueAttribute can be only decimal or decimal?
InvalidOperationExceptionTValue can be only decimal or decimal?
See Also