EnumField<TEnum> constructor

namespace: Serenity.Data   assemblySerenity.Net.Entity

Initializes a new instance of the EnumField class.

public EnumField(ICollection<Field> collection, string name, LocalText caption = null, 
    int size = 0, FieldFlags flags = FieldFlags.Default, Func<IRow, int?> getValue = null, 
    Action<IRow, int?> setValue = null)
parameter description
collection The collection.
name The name.
caption The caption.
size The size.
flags The flags.
getValue The get value.
setValue The set value.

Exceptions

exception condition
InvalidProgramException

See Also