Class TypedProviderHelper<RowType>
Parameterized helper class for typed archive providers. It uses reflection via the RowType parameter to determine standard columns (based on const string ColumnXXX declarations in the typed row class), and provider DesiredColumns adjustment to always include the standard columns.
Inherited Members
Namespace: SuperOffice.CRM.ArchiveLists
Assembly: SoDataBase.dll
Syntax
public static class TypedProviderHelper<RowType> where RowType : ArchiveRow
Type Parameters
Name | Description |
---|---|
RowType | Archive row type |
Methods
AdjustDesiredColumns(string[])
Return the incoming desired columns + standard columns as defined by the typed return row. Duplicates are removed from the result
Declaration
public static string[] AdjustDesiredColumns(string[] externalDesiredColumns)
Parameters
Type | Name | Description |
---|---|---|
string[] | externalDesiredColumns | Desired columns |
Returns
Type | Description |
---|---|
string[] | Duplicate-free union of desired and standard columns |
GetStandardColumnNames()
Get the standard column names of the RowType, using reflection on the ColumnXXX string constants that name the columns
Declaration
public static string[] GetStandardColumnNames()
Returns
Type | Description |
---|---|
string[] | List of standard column names |