Class ChangeField
Represents a modification made to a single field or property of a particular record or entity.
Inheritance
Inherited Members
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 |
|---|---|---|
| System.String | fieldName | Display name of the field. |
| System.Object | previousValue | Previous value that has been replaced. |
| System.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 |
|---|---|
| System.Int32 |
ErrorMessage
Gets the summary of validation errors populated by the call to Validate() method.
Declaration
public string ErrorMessage { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
ExtensionData
Gets or sets System.Runtime.Serialization.ExtensionDataObject that enables serialization roundtrips.
Declaration
public ExtensionDataObject ExtensionData { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Runtime.Serialization.ExtensionDataObject |
FieldName
Gets or sets the name of the property that has been updated.
Declaration
public string FieldName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Id
Gets or sets the change identifier.
Declaration
public int Id { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
NewValue
Gets or sets the property value after the updated was done.
Declaration
public string NewValue { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
PreviousValue
Gets or sets the property value before the update was done.
Declaration
public string PreviousValue { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
Validate()
Evaluates the state of this object.
Declaration
public bool Validate()
Returns
| Type | Description |
|---|---|
| System.Boolean | True if state is valid; otherwise, false. |