Class CountryProvider
Force the country list to be sorted alphabetic
Inherited Members
Namespace: SuperOfficeCRMLists
Assembly: SoDataBase.BusinessLogic.dll
Syntax
[MDOProviderPlugin("Country")]
public class CountryProvider : MDOProviderBase, ISoListProvider, ISoList, IEnumerable<ISoListItem>, IEnumerable
Constructors
CountryProvider()
Declaration
public CountryProvider()
Fields
ProviderName
Declaration
public const string ProviderName = "Country"
Field Value
| Type | Description |
|---|---|
| string |
Properties
HistoryInfo
The HistoryInfo for the root provider is null; it's the HistoryInfo for our SupportedLists that is interesting
Declaration
public override HistoryInfo HistoryInfo { get; }
Property Value
| Type | Description |
|---|---|
| HistoryInfo |
Overrides
Methods
GetItemIconHint(ListTableRow)
Get a value for the field IconHint in ISoList for an item element
Declaration
protected override string GetItemIconHint(ListTableRow row)
Parameters
| Type | Name | Description |
|---|---|---|
| ListTableRow | row | The actual row for which the item is created |
Returns
| Type | Description |
|---|---|
| string | An icon hint text |
Overrides
GetPreferredSortOrderAsync(CancellationToken)
Tell the provider that we want sorting by name.
Declaration
protected override Task<MDOSortOrder> GetPreferredSortOrderAsync(CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| TaskMDOSortOrder |