Search Results for

    Show / Hide Table of Contents

    Class CompareDatabaseParameters

    The server task parameters for comparing databases

    Holds the parameter for another database alias to compare this current database to

    Compares all tables between two databases and results on any differences by table/key.
    Inheritance
    object
    SerializedParam
    ServerTaskParameter
    CompareDatabaseParameters
    Implements
    ICloneable
    ICloneable<CompareDatabaseParameters>
    INotifyPropertyChanged
    Inherited Members
    ServerTaskParameter.ShouldAutomaticallyCreateTask(IHasSaveProcessingTask, IEntityUpdater)
    ServerTaskParameter.DisplayUserParamOnSave(IHasSaveProcessingTask, IEntityUpdater)
    ServerTaskParameter.AllowSaveWithNoChangesForTaskCreation(IHasSaveProcessingTask, IEntityUpdater)
    ServerTaskParameter.AllowAutoCreateOnLockedItems
    SerializedParam.GetParam<T>(string)
    SerializedParam.GetParam<T>(byte[])
    SerializedParam.GetParam(string)
    SerializedParam.GetParam(string, bool)
    SerializedParam.GetParam(byte[])
    SerializedParam.ToSerializedString()
    SerializedParam.ToSerializedBytes()
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.API.Core.Tasks.Parameters
    Assembly: LemonEdge.API.dll
    Syntax
    [DataContract]
    [ServerTaskParameters("Compare Databases", "1B830EBD-35B2-4400-9A04-A21A48FC2CFB", Description = "Compares all tables between two databases and results on any differences by table/key.")]
    public class CompareDatabaseParameters : ServerTaskParameter, ICloneable, ICloneable<CompareDatabaseParameters>, INotifyPropertyChanged

    Constructors

    CompareDatabaseParameters()

    Declaration
    public CompareDatabaseParameters()

    Fields

    UNIQUE_TASK_ID

    The unique id of the compare databases calculation server task

    Declaration
    public const string UNIQUE_TASK_ID = "1B830EBD-35B2-4400-9A04-A21A48FC2CFB"
    Field Value
    Type Description
    string

    Properties

    DatabaseAlias

    The database alias to connect to and compare to the current system.

    If this is running from a service this needs to be one of the database aliases that service connects to.

    If directly connected to the database, this can be a name of a database on the same server
    Declaration
    public string DatabaseAlias { get; set; }
    Property Value
    Type Description
    string

    Methods

    Clone()

    Creates a new instance of this class (of type CompareDatabaseParameters) with all the same property values as this instance

    Declaration
    public CompareDatabaseParameters Clone()
    Returns
    Type Description
    CompareDatabaseParameters

    A new instance of this class with all the same property values as this instance

    CopyFromParam(SerializedParam)

    Should be overridden by inheriting implementations to ensure all parameters values are copied from the specified source

    Declaration
    protected override void CopyFromParam(SerializedParam source)
    Parameters
    Type Name Description
    SerializedParam source

    The source instance of a SerializedParam that is of the same type as this one to copy parameter values from

    Overrides
    SerializedParam.CopyFromParam(SerializedParam)
    Remarks

    Used by the generic implementation of Clone()

    CopyFromSource(CompareDatabaseParameters)

    Updates all properties in this item to have the same properties as the source object.

    Declaration
    public void CopyFromSource(CompareDatabaseParameters source)
    Parameters
    Type Name Description
    CompareDatabaseParameters source

    The source object to copy all values from.

    CreateNewParam()

    Must be implemented by inheriting classes to provide a new instance of the current class type.

    Used when cloning this SerializedParam to create a new instance of the same type

    Declaration
    protected override SerializedParam CreateNewParam()
    Returns
    Type Description
    SerializedParam

    A new instance of the current SerializedParam type

    Overrides
    SerializedParam.CreateNewParam()

    GetUserFriendlyTaskInstanceIdentityInfo(IServerTask)

    Returns that this is a compare database task against the specified database alias

    Declaration
    public override string GetUserFriendlyTaskInstanceIdentityInfo(IServerTask task)
    Parameters
    Type Name Description
    IServerTask task

    The server task for processing this algorithm

    Returns
    Type Description
    string

    A string stating that this is a compare database task against the specified database alias

    Overrides
    ServerTaskParameter.GetUserFriendlyTaskInstanceIdentityInfo(IServerTask)

    Events

    PropertyChanged

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type Description
    PropertyChangedEventHandler

    Implements

    ICloneable
    ICloneable<T>
    INotifyPropertyChanged

    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.