Class ReferenceInconsistency<TLeft, TRight, TDepLeft, TDepRight>
- Namespace
- NMF.Synchronizations.Inconsistencies
- Assembly
- NMF.Synchronizations.dll
Denotes an inconsistency in a reference
public class ReferenceInconsistency<TLeft, TRight, TDepLeft, TDepRight> : IInconsistency, IEquatable<IInconsistency>
Type Parameters
TLeft
TRight
TDepLeft
TDepRight
- Inheritance
-
ReferenceInconsistency<TLeft, TRight, TDepLeft, TDepRight>
- Implements
- Inherited Members
Properties
BaseCorrespondence
The correspondence of elements on the basis of which the inconsistency was found
public SynchronizationComputation<TLeft, TRight> BaseCorrespondence { get; }
Property Value
- SynchronizationComputation<TLeft, TRight>
CanResolveLeft
Gets a value indicating whether the inconsistency can be automatically resolved modifying the left hand model only
public bool CanResolveLeft { get; }
Property Value
CanResolveRight
Gets a value indicating whether the inconsistency can be automatically resolved modifying the right hand model only
public bool CanResolveRight { get; }
Property Value
LeftValue
Gets the LHS dependent element
public TDepLeft LeftValue { get; }
Property Value
- TDepLeft
RightValue
Gets the RHS dependent element
public TDepRight RightValue { get; }
Property Value
- TDepRight
Methods
Equals(IInconsistency)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(IInconsistency other)
Parameters
other
IInconsistencyAn object to compare with this object.
Returns
Equals(ReferenceInconsistency<TLeft, TRight, TDepLeft, TDepRight>)
public bool Equals(ReferenceInconsistency<TLeft, TRight, TDepLeft, TDepRight> other)
Parameters
other
ReferenceInconsistency<TLeft, TRight, TDepLeft, TDepRight>
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ResolveLeft()
Resolves the inconsistency modifying the left hand side model
public void ResolveLeft()
ResolveRight()
Resolves the inconsistency modifying the right hand side model
public void ResolveRight()