Sana Assistant (online)
Table of Contents

ErpFieldValue class

This article provides reference material about ErpFieldValue class which representing a field value which can be used in ERP.

ErpFieldValue class

Methods

AsBoolean

Converts field value to bool type. Returns the converted value or null in case value cannot be converted.

AsDate

Converts field value to DateOnly type. Returns the converted value or null in case value cannot be converted.

AsDateTime

Converts field value to DateTime type. Returns the converted value or null in case value cannot be converted.

AsDecimal

Converts field value to decimal type. Returns the converted value or null in case value cannot be converted.

AsGuid

Converts field value to Guid type. Returns the converted value or null in case value cannot be converted.

AsInt

Converts field value to int type. Returns the converted value or null in case value cannot be converted.

AsLong

Converts field value to long type. Returns the converted value or null in case value cannot be converted.

AsObject

Converts field value to object type.

AsString

Converts field value to string type. Returns the converted value or null in case value cannot be converted.

FromBoolean

Creates ErpFieldValue based on value of bool type.

FromDate

Creates ErpFieldValue based on value of DateOnly type.

FromDateTime

Creates ErpFieldValue based on value of DateTime type.

FromDecimal

Creates ErpFieldValue based on value of decimal type.

FromGuid

Creates ErpFieldValue based on value of Guid type.

FromInt

Creates ErpFieldValue based on value of int type.

FromLong

Creates ErpFieldValue based on value of long type.

FromString

Creates ErpFieldValue based on value of string type.