GenericValueField<TValue> class

namespace: Serenity.Data   assemblySerenity.Net.Entity

Base class for fields with a value type value

public abstract class GenericValueField<TValue> : Field, IEnumTypeField
    where TValue : struct, IComparable<TValue>
parameter description
TValue The type of the value.

Public Members

name description
EnumType { get; set; } Gets or sets the type of the enum.
Item { get; set; } Gets or sets the value of this field with the specified row.
override ValueType { get; } Gets the type of the value.
override AsObject(…) Gets the value of this field in specified row as object. (2 methods)
override ConvertValue(…) Converts the value.
override Copy(…) Copies the specified source.
override IndexCompare(…) Compares the field values for two rows for an ascending index sort

Protected Members

name description
_enumType The enum type
_getValue The get value
_setValue The set value
override GetIsNull(…) Gets if the field value is null.

See Also