Show / Hide Table of Contents

    Class ChangeField

    Represents a modification made to a single field or property of a particular record or entity.

    Inheritance
    Object
    ChangeField
    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 sealed class ChangeField : IValidator, IExtensibleDataObject

    Constructors

    ChangeField()

    Initializes an empty instance.

    Declaration
    public ChangeField()

    ChangeField(String, Object, Object)

    Initializes new instance with provided field name, previous and new values.

    Declaration
    public ChangeField(string fieldName, object previousValue, object newValue)
    Parameters
    Type Name Description
    String fieldName

    Display name of the field.

    Object previousValue

    Previous value that has been replaced.

    Object newValue

    New value that has been assigned.

    Properties

    ChangeRecordId

    Gets or sets the identifier of the master change record describing the entity that has been updated.

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

    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

    FieldName

    Gets or sets the name of the property that has been updated.

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

    Id

    Gets or sets the change identifier.

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

    NewValue

    Gets or sets the property value after the updated was done.

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

    PreviousValue

    Gets or sets the property value before the update was done.

    Declaration
    public string PreviousValue { get; set; }
    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