Show / Hide Table of Contents

Class SelectionSoundexDuplicateRule

Match selections by soundex name

Inheritance
object
SelectionSoundexDuplicateRule
Implements
ISelectionDuplicateRule
IDuplicateRule
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Data.Util.Duplicates
Assembly: SoDataBase.BusinessLogic.dll
Syntax
[SelectionDuplicateRulePlugin("SelectionSoundExDuplicateRule")]
public class SelectionSoundexDuplicateRule : ISelectionDuplicateRule, IDuplicateRule

Constructors

SelectionSoundexDuplicateRule()

Match selections by soundex name

Declaration
public SelectionSoundexDuplicateRule()

Properties

DisplayName

Display name of rule

Declaration
public string DisplayName { get; }
Property Value
Type Description
string

DisplayTooltip

Description of rule

Declaration
public string DisplayTooltip { get; }
Property Value
Type Description
string

Name

Unique identifying name for rule

Declaration
public string Name { get; }
Property Value
Type Description
string

Methods

CreateNewEntity(DuplicateEntry)

This operation is not supported for this rule

Declaration
public int CreateNewEntity(DuplicateEntry entry)
Parameters
Type Name Description
DuplicateEntry entry

Entry to create selection from

Returns
Type Description
int

Primary key of selection from superoffice database

GetDuplicatesAsync(CancellationToken, params string[])

Get matching records in the superoffice database, using a soundex value

Declaration
public Task<DuplicateEntry[]> GetDuplicatesAsync(CancellationToken cancellationToken, params string[] selectionName)
Parameters
Type Name Description
CancellationToken cancellationToken
string[] selectionName

Name of selection to lookup

Returns
Type Description
Task<DuplicateEntry[]>

Any duplicates found in the database

GetIsActiveAsync(CancellationToken)

Indicates if this is an active rule that should be asked for duplicates

Declaration
public 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
public Task SetIsActiveAsync(bool isActive, CancellationToken cancellationToken = default)
Parameters
Type Name Description
bool isActive
CancellationToken cancellationToken
Returns
Type Description
Task

Implements

ISelectionDuplicateRule
IDuplicateRule

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top