Class EnumColumn<T, TDbValue>
Base class for column which contains enum values.
Implements
System.Collections.Generic.IReadOnlyCollection<Column>
System.Collections.Generic.IEnumerable<Column>
System.Collections.IEnumerable
System.Collections.Generic.IComparer<DataRow>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: DevZest.Data.Primitives
Assembly: DevZest.Data.dll
Syntax
public abstract class EnumColumn<T, TDbValue> : EnumColumn<T>, IDesignable, IColumns, IReadOnlyCollection<Column>, IEnumerable<Column>, IEnumerable, IComparer<DataRow>, IColumn<DbReader, T? >, IColumn<DbReader>, IColumn where T : struct, IConvertible
Type Parameters
Name | Description |
---|---|
T | The enum type. |
TDbValue | The data type which is used in database. |
Methods
Name | Description |
---|---|
ConvertToDbValue(Nullable<T>) | Converts from enum value to database value. |
ConvertToEnum(TDbValue) | Converts from database value to enum value. |
DeserializeDbValue(JsonValue) | Deserializes JSON value into database value. |
DeserializeValue(JsonValue) | |
Read(DbReader) | Reads the value from database reader. |
SerializeDbValue(TDbValue) | Serializes the database value into JSON value. |
SerializeValue(Nullable<T>) |
Explicit Interface Implementations
Name | Description |
---|---|
IColumn<DbReader, Nullable<T>>.Item[DbReader] | |
IColumn<DbReader>.Read(DbReader, DataRow) |