Class Country2Provider
Same as CountryProvider, but with icon hints based on the countrys name.
Inherited Members
Namespace: SuperOffice.CRM.Lists
Assembly: SoDataBase.BusinessLogic.dll
Syntax
[MDOProviderPlugin("Country2")]
public class Country2Provider : CountryProvider, ISoListProvider, ISoList, IEnumerable<ISoListItem>, IEnumerable
Constructors
Country2Provider()
Same as CountryProvider, but with icon hints based on the countrys name.
Declaration
public Country2Provider()
Fields
ProviderName
Same as CountryProvider, but with icon hints based on the countrys name.
Declaration
public const string ProviderName = "Country2"
Field Value
| Type | Description |
|---|---|
| string |
Methods
ConstructAsync(string, string, int[], bool, string, bool, CancellationToken)
Initializes all class members.
Declaration
public override Task ConstructAsync(string tableName, string additionalInfo, int[] historyIDs, bool onlyReadHistory, string searchValue, bool forceFlatList, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | tableName | Name of the table holding the MDO list values, like Category, Business, etc. Note that this really has to be a valid table name. |
| string | additionalInfo | |
| int[] | historyIDs | List of history id's (primary keys of the table holding the MDO list values). |
| bool | onlyReadHistory | Only read history nodes. |
| string | searchValue | Search value (case insensetive string used like '%[searchValue]%'. The result when using this is allways a flat list without hisotry elements. |
| bool | forceFlatList | State that a forced flat list should be returned. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
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 |