Class ObjectComparison
- Namespace
- ArcanaDevelopment.adTempus.Shared.ObjectComparison
- Assembly
- ArcanaDevelopment.adTempus.Shared.dll
Contains comparison results for two versions of an object.
[DataContract]
public class ObjectComparison
- Inheritance
-
objectObjectComparison
Fields
FieldDifferences
Contains the results of comparing field values for the object.
[DataMember]
public List<FieldDifference> FieldDifferences
Field Value
- List<FieldDifference>
Remarks
The collection will only contain items for fields that had differences. Fields with matching values are not included.
HasDifferences
Indicates whether differences were found when comparing the versions.
[DataMember]
public bool HasDifferences
Field Value
- bool
LeftObject
Information about the "left" object in the comparison.
[DataMember]
public ObjectDescriptor LeftObject
Field Value
RelatedCollections
Contains the results of comparing related collections (one-to-many or many-to-many relations).
[DataMember]
public List<RelatedCollection> RelatedCollections
Field Value
- List<RelatedCollection>
Remarks
The collection will only contain items for relations that had differences. Relations with matching values are not included.
RelatedEntities
Contains the results of comparing related objects (one-to-one or many-to-one relations).
[DataMember]
public List<RelatedEntity> RelatedEntities
Field Value
- List<RelatedEntity>
Remarks
The collection will only contain items for relations that had differences. Relations with matching values are not included.
RightObject
Information about the "right" object in the comparison.
[DataMember]
public ObjectDescriptor RightObject
Field Value
SequenceNumber
If the object is a member of a sequenced collection (such as steps in a job), the SequenceNumber is set to the object's position in the sequence.
[DataMember]
public int? SequenceNumber
Field Value
- int?
Remarks
Most collections are non-sequenced (order of the members does not matter). For members of these collections the SequenceNumber is null.
TypeMismatch
Set to True if the objects were of different types. No further comparison was made in this case.
[DataMember]
public bool TypeMismatch
Field Value
- bool
Methods
CompareFields(string, string, object, object)
Compares the values for two fields and adds a FieldDifference if they do not match.
public void CompareFields(string fieldName, string fieldDisplayName, object leftValue, object rightValue)
Parameters
| Name | Type | Description |
|---|---|---|
fieldName |
string | |
fieldDisplayName |
string | |
leftValue |
object | |
rightValue |
object |
CompareObjects(string, string, OID, OID)
public void CompareObjects(string fieldName, string fieldDisplayName, OID leftValue, OID rightValue)
Parameters
| Name | Type | Description |
|---|---|---|
fieldName |
string | |
fieldDisplayName |
string | |
leftValue |
OID | |
rightValue |
OID |