Class ResultsComparerFactory
Creates IResultsComparer and keeps track of 'static' Comparer information.
Inherited Members
Namespace: LemonEdge.Connections.Database.Model
Assembly: LemonEdge.Database.Connector.dll
Syntax
public class ResultsComparerFactory : IResultsComparerFactory, IHaveAddInListeners
Constructors
ResultsComparerFactory(IDomainContextEventHandler, IReflectionHelper, IFactoryInjector)
Declaration
public ResultsComparerFactory(IDomainContextEventHandler eventHandler, IReflectionHelper reflectionHelper, IFactoryInjector factoryInjector)
Parameters
Type | Name | Description |
---|---|---|
IDomainContextEventHandler | eventHandler | |
IReflectionHelper | reflectionHelper | |
IFactoryInjector | factoryInjector |
Properties
ComparerInfo
Comparer info for types.
Declaration
public Dictionary<(Type, Type), ITableResultComparer> ComparerInfo { get; }
Property Value
Type | Description |
---|---|
Dictionary<(Type, Type), ITableResultComparer> |
Methods
AddAddInListeners()
Adds listeners.
Declaration
public void AddAddInListeners()
Create(IDatabaseInfo, IDatabaseInfo, bool)
Creates an IResultsComparer.
Declaration
public 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
public 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
public 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 |
RemoveAddInListeners()
Removes listeners.
Declaration
public void RemoveAddInListeners()