Skip to content

GenericValueField<TValue> class

namespace: Serenity.Data   assemblySerenity.Net.Services

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(…) Sets the value of this field in specified row as object.
override AsObjectNoCheck(…)
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.
override IsNullNoCheck(…)

Protected Members

name description
_enumType The enum type.
_getValue The get value.
_setValue The set value.

See Also