Class ContactInterestHelper
Contact interest helper. The helpers provide functionality that combines MDO list and 'what is actually selected', i.e., they combine entity subcollections with mdo lists. See the base class InterestHelper for more information!
Inherited Members
Namespace: SuperOffice.CRM.Entities
Assembly: SoDataBase.dll
Syntax
public sealed class ContactInterestHelper : InterestHelper, ISoListProvider, ISoList, IEnumerable<ISoListItem>, IEnumerable
Properties
HistoryInfo
History information for the supported list
Declaration
public override HistoryInfo HistoryInfo { get; }
Property Value
Type | Description |
---|---|
HistoryInfo |
Overrides
Methods
CreateInterest(int)
Create a new link row for the given interest, using the protected _parentEntityId as the entity id. ALSO: Add to the _selectedInterests collection, since TableRowsBase does not have a public Add operator.
Declaration
protected override TableRowBase CreateInterest(int interestId)
Parameters
Type | Name | Description |
---|---|---|
int | interestId | Interest id to link to |
Returns
Type | Description |
---|---|
TableRowBase | New row, which has already been added to the entity's link table collections |
Overrides
GetInterestDate(TableRowBase)
Get the interest date from the link row (which must be castable to the correct type)
Declaration
protected override DateTime GetInterestDate(TableRowBase row)
Parameters
Type | Name | Description |
---|---|---|
TableRowBase | row | Row, castable to the type needed by the subclass |
Returns
Type | Description |
---|---|
DateTime | Last changed date extracted from the row |
Overrides
GetInterestId(TableRowBase)
Get the interest id from the link row (which must be castable to the correct type)
Declaration
protected override int GetInterestId(TableRowBase row)
Parameters
Type | Name | Description |
---|---|---|
TableRowBase | row | Row, castable to the type needed by the subclass |
Returns
Type | Description |
---|---|
int | Interest ID the row links to |