Class TableRowLoadHandler
This class is used for fetching extra values from a row custom query where other tables and fields are joined into the query.
Implements
Inherited Members
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public class TableRowLoadHandler : ITableRowLoadHandler
Examples
Example of how to use TableRowLoadHandler to get additional values from the row custom query.
TextTableInfo t1 = TablesInfo.GetTextTableInfo();
ExternalEventRow.CustomSearch query = new ExternalEventRow.CustomSearch();
query.ReturnFields.Add(t1.Text);
query.JoinRestriction.LeftOuterJoin(query.TableInfo.SignOffConfTextId.Equal(t1.TextId));
ExtRowHelper extRowHelper = new ExtRowHelper(t1.Text);
ExternalEventRow row = query.ToExternalEventRow(extRowHelper);
//Get the string for t1.text:
string s = (string)extRowHelper[row.ExternalEventId][t1.Text];
Constructors
TableRowLoadHandler(params FieldInfo[])
Constructor.
Declaration
public TableRowLoadHandler(params FieldInfo[] extraFieldInfos)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo[] | extraFieldInfos | Array of FieldInfo describing extra fields to get values for |
Properties
this[int]
This class is used for fetching extra values from a row custom query where other tables and fields are joined into the query.
Declaration
public Dictionary<FieldInfo, object> this[int rowId] { get; }
Parameters
Type | Name | Description |
---|---|---|
int | rowId |
Property Value
Type | Description |
---|---|
Dictionary<FieldInfo, object> |