Table of Contents

Class MissingItemInconsistency<TSource, TTarget>

Namespace
NMF.Synchronizations.Inconsistencies
Assembly
NMF.Synchronizations.dll

Denotes the inconsistency that an element is missing in a synchronized collection

public class MissingItemInconsistency<TSource, TTarget> : IInconsistency, IEquatable<IInconsistency>

Type Parameters

TSource

The LHS type of elements

TTarget

The RHS type of elements

Inheritance
MissingItemInconsistency<TSource, TTarget>
Implements
Inherited Members

Constructors

MissingItemInconsistency(ISynchronizationContext, TransformationRuleBase<TSource, TTarget>, ICollection<TSource>, ICollection<TTarget>, TSource, bool)

Creates a new inconsistency

public MissingItemInconsistency(ISynchronizationContext context, TransformationRuleBase<TSource, TTarget> rule, ICollection<TSource> sourceCollection, ICollection<TTarget> targetCollection, TSource source, bool isLeftMissing)

Parameters

context ISynchronizationContext

The context in which the inconsistency was found

rule TransformationRuleBase<TSource, TTarget>

The synchronization rule for which the inconsistency was found

sourceCollection ICollection<TSource>

The source collection of elements

targetCollection ICollection<TTarget>

The target collection of elements

source TSource

The element that is missing

isLeftMissing bool

True, if the element is missing in the LHS, otherwise false

Properties

CanResolveLeft

Describes inconsistencies that can occur between the right hand and the left hand of a synchronization

public bool CanResolveLeft { get; }

Property Value

bool

CanResolveRight

Describes inconsistencies that can occur between the right hand and the left hand of a synchronization

public bool CanResolveRight { get; }

Property Value

bool

Context

Gets the context in which this inconsistency occured

public ISynchronizationContext Context { get; }

Property Value

ISynchronizationContext

IsLeftMissing

True, if the element is missing in the left side, otherwise false

public bool IsLeftMissing { get; }

Property Value

bool

Rule

Gets the transformation rule required to fix the inconsistency

public TransformationRuleBase<TSource, TTarget> Rule { get; }

Property Value

TransformationRuleBase<TSource, TTarget>

Source

Gets the source element that is missing

public TSource Source { get; }

Property Value

TSource

SourceCollection

Gets the source collection where the element is contained

public ICollection<TSource> SourceCollection { get; }

Property Value

ICollection<TSource>

TargetCollection

Gets the target collection where the element is missing

public ICollection<TTarget> TargetCollection { get; }

Property Value

ICollection<TTarget>

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

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

public override int GetHashCode()

Returns

int

ResolveLeft()

Describes inconsistencies that can occur between the right hand and the left hand of a synchronization

public void ResolveLeft()

ResolveRight()

Describes inconsistencies that can occur between the right hand and the left hand of a synchronization

public void ResolveRight()