Class LookupDef
Represents a lookup list.
Lookup list items may come from
- a SELECT statement, given in the SqlText property
- a SELECT statement constructed using the TableName
- a DataTable passed to LoadFrom(DataTable)() method
- an enum type, given in the EnumTypeName property
- a LookupSource derived class, given in the ClassName property
- as a last resort using the Name as a TableName
public class LookupDef : BaseDef, IDef, IJsonLoadable, INotifyPropertyChanged
- Inheritance
-
LookupDef
- Implements
- Inherited Members
- Extension Methods
Constructors
LookupDef()
Constructor
public LookupDef()
Properties
ClassName
The class name of a LookupSource derived class.
public string ClassName { get; set; }
Property Value
ConnectionName
public string ConnectionName { get; set; }
Property Value
DisplayField
The field used in getting the display value.
Used only when TableName or SqlText is defined or the list is loaded using Select(string) or LoadFrom(DataTable) a DataTable
public string DisplayField { get; set; }
Property Value
EnumTypeName
An enum type used in filling the list
public string EnumTypeName { get; set; }
Property Value
Form
The name of a form that displays the table.
public string Form { get; set; }
Property Value
SqlText
The SELECT statement
public string SqlText { get; set; }
Property Value
TableName
When not empty results in a SELECT statement like select * from TableName
public string TableName { get; set; }
Property Value
UseNullItem
When true then the first item in the list is a null item.
public bool UseNullItem { get; set; }
Property Value
ValueField
The field used in getting the value.
Used only when TableName or SqlText is defined or the list is loaded using Select(string) or LoadFrom(DataTable) a DataTable
public string ValueField { get; set; }
Property Value
Methods
Create()
Creates and returns a LookupSource associated with this definition.
public LookupSource Create()