Search Results for

    Show / Hide Table of Contents

    Class ResultsComparerFactory

    Creates IResultsComparer and keeps track of 'static' Comparer information.

    Inheritance
    object
    ResultsComparerFactory
    Implements
    IResultsComparerFactory
    IHaveAddInListeners
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    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()

    Implements

    IResultsComparerFactory
    IHaveAddInListeners

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.