Table of Contents

Class LookupDef

Namespace
Tripous.Data
Assembly
Tripous.Data.dll

Represents a lookup list.

Lookup list items may come from

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

string

ConnectionName

The connection name used in getting an SqlStore in order to execute the SqlText SELECT statement.

public string ConnectionName { get; set; }

Property Value

string

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

string

EnumTypeName

An enum type used in filling the list

public string EnumTypeName { get; set; }

Property Value

string

Form

The name of a form that displays the table.

public string Form { get; set; }

Property Value

string

SqlText

The SELECT statement

public string SqlText { get; set; }

Property Value

string

TableName

When not empty results in a SELECT statement like select * from TableName

public string TableName { get; set; }

Property Value

string

UseNullItem

When true then the first item in the list is a null item.

public bool UseNullItem { get; set; }

Property Value

bool

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

string

Methods

Create()

Creates and returns a LookupSource associated with this definition.

public LookupSource Create()

Returns

LookupSource