Class LocatorDef
Declarative definition of a locator resolution process.
public class LocatorDef : BaseDef, IDef, IJsonLoadable, INotifyPropertyChanged
- Inheritance
-
LocatorDef
- Implements
- Inherited Members
- Extension Methods
Constructors
LocatorDef()
Constructor.
public LocatorDef()
Properties
ClassName
Gets or sets the class name of the locator implementation.
public string ClassName { get; set; }
Property Value
Fields
Gets or sets the fields that may participate in locator input, output or display.
public DefList<LocatorFieldDef> Fields { get; set; }
Property Value
Form
Gets or sets the desktop form name used by reference menus.
public string Form { get; set; }
Property Value
KeyField
Gets or sets the field that provides the canonical identity returned by this locator.
public string KeyField { get; set; }
Property Value
ListVisibleFields
Gets or sets the fields displayed by locator list UIs.
public List<string> ListVisibleFields { get; set; }
Property Value
MaximumResultCount
Gets or sets the maximum number of result rows returned before a result is considered too broad.
public int MaximumResultCount { get; set; }
Property Value
MinimumSearchLength
Gets or sets the minimum search text length required before resolution may run.
public int MinimumSearchLength { get; set; }
Property Value
MultiRowSearchFields
Gets or sets the business reference fields used for resolution by a multi-row locator UI.
public List<string> MultiRowSearchFields { get; set; }
Property Value
OrderBy
Gets or sets the ORDER BY clause.
public string OrderBy { get; set; }
Property Value
ResultFields
Gets or sets the fields returned as locator output.
public List<string> ResultFields { get; set; }
Property Value
SingleRowSearchFields
Gets or sets the business reference fields used for resolution by a single-row locator UI.
public List<string> SingleRowSearchFields { get; set; }
Property Value
Source
Gets or sets the provider-neutral source reference used by the locator.
Depending on the locator implementation it may be a table name, SELECT statement, service URL, object list name, or any other source reference.
public string Source { get; set; }
Property Value
WebForm
Gets or sets the web form name used by web reference menus.
public string WebForm { get; set; }
Property Value
Methods
Add(string)
Adds a string field to the locator.
public LocatorFieldDef Add(string Name)
Parameters
Namestring
Returns
Add(string, DataFieldType)
Adds a field to the locator.
public LocatorFieldDef Add(string Name, DataFieldType DataType)
Parameters
NamestringDataTypeDataFieldType
Returns
AddFields(params string[])
Adds string fields to the locator.
public void AddFields(params string[] Names)
Parameters
Namesstring[]
AddListVisibleFields(params string[])
Adds fields to the list-visible field list.
public void AddListVisibleFields(params string[] Names)
Parameters
Namesstring[]
AddMultiRowSearchFields(params string[])
Adds fields to the multi-row search field list.
public void AddMultiRowSearchFields(params string[] Names)
Parameters
Namesstring[]
AddResultFields(params string[])
Adds fields to the result field list.
public void AddResultFields(params string[] Names)
Parameters
Namesstring[]
AddSearchFields(params string[])
Adds fields to both single-row and multi-row search field lists.
public void AddSearchFields(params string[] Names)
Parameters
Namesstring[]
AddSingleRowSearchFields(params string[])
Adds fields to the single-row search field list.
public void AddSingleRowSearchFields(params string[] Names)
Parameters
Namesstring[]
CheckDescriptor()
Throws an exception if this descriptor is not fully defined.
public override void CheckDescriptor()
GetAllSearchFields()
Returns the union of all search fields.
public List<string> GetAllSearchFields()
Returns
GetListVisibleFields()
Returns the fields displayed by locator list UIs.
public List<string> GetListVisibleFields()
Returns
GetResultFields()
Returns the result fields.
public List<string> GetResultFields()
Returns
GetSearchFields(bool)
Returns the search fields to use for single-row or multi-row locator resolution.
public List<string> GetSearchFields(bool IsMultiRow)
Parameters
IsMultiRowbool
Returns
UpdateReferences()
Updates references such as when an instance has references to other instances.
public override void UpdateReferences()