Interface IDuplicateRule
Common interface for all rules to be used in the duplicate detector system
Namespace: SuperOffice.CRM.Data.Util.Duplicates
Assembly: SoDataBase.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 |
IsActive
Indicates if this is an active rule that should be asked for duplicates
Declaration
bool IsActive { get; set; }
Property Value
Type | Description |
---|---|
bool |
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 |
GetDuplicates(params string[])
Get duplicates based on the specified value
Declaration
DuplicateEntry[] GetDuplicates(params string[] searchValue)
Parameters
Type | Name | Description |
---|---|---|
string[] | searchValue | Value to use for matching |
Returns
Type | Description |
---|---|
DuplicateEntry[] | List of detected duplicates |