Table of Contents

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

bool

CanResolveRight

Gets a value indicating whether the inconsistency can be automatically resolved modifying the right hand model only

public bool CanResolveRight { get; }

Property Value

bool

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 IInconsistency

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(ReferenceInconsistency<TLeft, TRight, TDepLeft, TDepRight>)

public bool Equals(ReferenceInconsistency<TLeft, TRight, TDepLeft, TDepRight> other)

Parameters

other ReferenceInconsistency<TLeft, TRight, TDepLeft, TDepRight>

Returns

bool

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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()