Interface IDuplicateRule
Common interface for all rules to be used in the duplicate detector system
Namespace: SuperOffice.CRM.Data.Util.Duplicates
Assembly: SoDataBase.BusinessLogic.dll
Syntax
public interface IDuplicateRule
Properties
DisplayName
Common interface for all rules to be used in the duplicate detector system
Declaration
string DisplayName { get; }
Property Value
| Type | Description |
|---|---|
| string |
DisplayTooltip
Common interface for all rules to be used in the duplicate detector system
Declaration
string DisplayTooltip { get; }
Property Value
| Type | Description |
|---|---|
| string |
Name
Common interface for all rules to be used in the duplicate detector system
Declaration
string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
CreateNewEntity(DuplicateEntry)
Create a new entity in the SuperOffice database based on the duplicate
Declaration
int CreateNewEntity(DuplicateEntry entry)
Parameters
| Type | Name | Description |
|---|---|---|
| DuplicateEntry | entry | Duplicate entry to create entity from |
Returns
| Type | Description |
|---|---|
| int | The primary key of the superoffice entity |
GetDuplicatesAsync(CancellationToken, params string[])
Get duplicates based on the specified value
Declaration
Task<DuplicateEntry[]> GetDuplicatesAsync(CancellationToken cancellationToken, params string[] searchValue)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | |
| string[] | searchValue | Value to use for matching |
Returns
| Type | Description |
|---|---|
| Task<DuplicateEntry[]> | List of detected duplicates |
GetIsActiveAsync(CancellationToken)
Indicates if this is an active rule that should be asked for duplicates
Declaration
Task<bool> GetIsActiveAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<bool> |
SetIsActiveAsync(bool, CancellationToken)
Indicates if this is an active rule that should be asked for duplicates
Declaration
Task SetIsActiveAsync(bool isActive, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | isActive | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |