Class PrefDescLineProvider
PrefDesc creates a MDO list of prefdesclines for a given prefdesc id.
Inherited Members
Namespace: SuperOffice.CRM.Lists
Assembly: SoDataBase.dll
Syntax
[MDOProviderPlugin("PrefDescLine")]
[MDOAdditionalInfo("Pref desc id (required)", 123)]
public class PrefDescLineProvider : AnyTableListProviderBase, ISoListProvider, ISoList, IPlugin
Constructors
PrefDescLineProvider()
Declaration
public PrefDescLineProvider()
Fields
ProviderName
The name of the provider.
Declaration
public const string ProviderName = "PrefDescLine"
Field Value
Type | Description |
---|---|
System.String |
Properties
TableInfo
The table info of the query. This is used by subclasses (e.g. this class) when restricting history data.
Declaration
protected override TableInfo TableInfo { get; }
Property Value
Type | Description |
---|---|
TableInfo |
Overrides
Methods
GetMainQuery()
Get the query to retrieve prefdesclines in the database.
Declaration
protected override Select GetMainQuery()
Returns
Type | Description |
---|---|
Select |
Overrides
Init()
Initiate the provider after the Construct(String, String, Int32[], Boolean, String, Boolean) method is called.
Declaration
protected override void Init()
Overrides
OnRead(SoDataReader, Int16)
Raised every time a new row has been read from the database.
The implementation should read the results from the reader
and populate an object implementing ISoListItem.
Declaration
protected override ISoListItem OnRead(SoDataReader reader, short lastRank)
Parameters
Type | Name | Description |
---|---|---|
SoDataReader | reader | Reader to reaf from. |
System.Int16 | lastRank | Value of the last rank populated. |
Returns
Type | Description |
---|---|
ISoListItem | Data read from the reader. |
Overrides
SetSearchRestriction(Select, String)
If the input searchValue enables searching on the PrefDescLineTableInfo prefValue field.
Declaration
protected override void SetSearchRestriction(Select sql, string searchValue)
Parameters
Type | Name | Description |
---|---|---|
Select | sql | The initial query |
System.String | searchValue | This search value specifies the starting string of the field |