Show / Hide Table of Contents

    Class ChangeRecord

    Represents a change or a set of changes that has been done to a record or entity within a single operation.

    Inheritance
    Object
    ChangeRecord
    ChangeRecordDefinition
    Implements
    IValidator
    IExtensibleDataObject
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Nevatech.Vsb.Repository.Entities
    Assembly: Nevatech.Vsb.Repository.dll
    Syntax
    public class ChangeRecord : IValidator, IExtensibleDataObject

    Constructors

    ChangeRecord()

    Initializes an empty instance.

    Declaration
    public ChangeRecord()

    ChangeRecord(ChangeRecord, Boolean)

    Initializes new instance from provided record.

    Declaration
    public ChangeRecord(ChangeRecord record, bool exactCopy)
    Parameters
    Type Name Description
    ChangeRecord record

    Record to be initialized from.

    Boolean exactCopy

    Flag indicating that all properties including user information must be copied.

    Properties

    ChangeSetId

    Gets or sets the identifier of the changeset containing this change.

    Declaration
    public int ChangeSetId { get; set; }
    Property Value
    Type Description
    Int32

    ChangeType

    Gets or sets the type of the change that has been made to the entity.

    Declaration
    public ChangeTypes ChangeType { get; set; }
    Property Value
    Type Description
    ChangeTypes

    Created

    Gets the date and time when modification(s) were done.

    Declaration
    public DateTime Created { get; }
    Property Value
    Type Description
    DateTime

    EntityId

    Gets or sets the identifier of the entity that has been modified.

    Declaration
    public int EntityId { get; set; }
    Property Value
    Type Description
    Int32

    EntityName

    Gets or sets the friendly description of the entity that has been modified.

    Declaration
    public string EntityName { get; set; }
    Property Value
    Type Description
    String

    EntityType

    Gets or sets the type of the entity that has been modified.

    Declaration
    public EntityType EntityType { get; set; }
    Property Value
    Type Description
    EntityType

    ErrorMessage

    Gets the summary of validation errors populated by the call to Validate() method.

    Declaration
    public string ErrorMessage { get; }
    Property Value
    Type Description
    String

    ExtensionData

    Gets or sets ExtensionDataObject that enables serialization roundtrips.

    Declaration
    public ExtensionDataObject ExtensionData { get; set; }
    Property Value
    Type Description
    ExtensionDataObject

    Id

    Gets or sets the change identifier.

    Declaration
    public int Id { get; set; }
    Property Value
    Type Description
    Int32

    IdentityName

    Gets the name of identity that was used to authenticate the user.

    Declaration
    public string IdentityName { get; }
    Property Value
    Type Description
    String

    MajorEntityId

    Gets or sets the identifier of the major entity containing this (minor) entity. If this is a major entity itself then EntityId and MajorEntityId are the same.

    Declaration
    public int MajorEntityId { get; set; }
    Property Value
    Type Description
    Int32

    MajorEntityName

    Gets the friendly name of the major entity containing this entity.

    Declaration
    public string MajorEntityName { get; }
    Property Value
    Type Description
    String

    MajorEntityType

    Gets or sets the type of the major entity containing this (minor) entity. If this is a major entity itself then EntityType and MajorEntityType are the same.

    Declaration
    public EntityType MajorEntityType { get; set; }
    Property Value
    Type Description
    EntityType

    UserId

    Gets the identifier of the user who made the change. Identifier can be Null for system-initiated changes.

    Declaration
    public int? UserId { get; }
    Property Value
    Type Description
    Nullable<Int32>

    UserName

    Gets the full name of the user who made the change.

    Declaration
    public string UserName { get; }
    Property Value
    Type Description
    String

    Methods

    Validate()

    Evaluates the state of this object.

    Declaration
    public bool Validate()
    Returns
    Type Description
    Boolean

    True if state is valid; otherwise, false.

    Implements

    IValidator
    System.Runtime.Serialization.IExtensibleDataObject
    Back to top Nevatech Sentinet 6.5 Online Documentation