Interface IResultsComparerFactory
Creates IResultsComparer and keeps track of 'static' Comparer information.
Namespace: LemonEdge.Connections.Database.Model
Assembly: LemonEdge.Database.Connector.dll
Syntax
public interface IResultsComparerFactory
Properties
ComparerInfo
Comparer info for types.
Declaration
Dictionary<(Type, Type), ITableResultComparer> ComparerInfo { get; }
Property Value
Type | Description |
---|---|
Dictionary<(Type, Type), ITableResultComparer> |
Methods
Create(IDatabaseInfo, IDatabaseInfo, bool)
Creates an IResultsComparer.
Declaration
IResultsComparer Create(IDatabaseInfo info1, IDatabaseInfo info2, bool includeAccountId)
Parameters
Type | Name | Description |
---|---|---|
IDatabaseInfo | info1 | The first database to compare |
IDatabaseInfo | info2 | The second database to compare |
bool | includeAccountId | Whether to include accountId |
Returns
Type | Description |
---|---|
IResultsComparer |
DefaultPropertiesToIgnore(Type, Type)
Returns a list of properties to ignore, given a type.
Declaration
string[] DefaultPropertiesToIgnore(Type entityType, Type forType)
Parameters
Type | Name | Description |
---|---|---|
Type | entityType | The type |
Type | forType | If entityType is a permission, this would be the type that the permission is for. You would typically use EntityType. |
Returns
Type | Description |
---|---|
string[] | A list of property names |
OverrideKeys(Type, Type)
Gets any overridden Key columns for the given type.
Declaration
string[] OverrideKeys(Type entityType, Type forType)
Parameters
Type | Name | Description |
---|---|---|
Type | entityType | The type |
Type | forType | If entityType is a permission, this would be the type that the permission is for. You would typically use EntityType. |
Returns
Type | Description |
---|---|
string[] | A list of property names |