Show / Hide Table of Contents

Class MissingItemInconsistency<TSource, TTarget>

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

Inheritance
object
MissingItemInconsistency<TSource, TTarget>
Implements
IInconsistency
IEquatable<IInconsistency>
Inherited Members
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: NMF.Synchronizations.Inconsistencies
Assembly: NMF.Synchronizations.dll
Syntax
public class MissingItemInconsistency<TSource, TTarget> : IInconsistency, IEquatable<IInconsistency>
Type Parameters
Name Description
TSource

The LHS type of elements

TTarget

The RHS type of elements

Constructors

| Edit this page View Source

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

Creates a new inconsistency

Declaration
public MissingItemInconsistency(ISynchronizationContext context, TransformationRuleBase<TSource, TTarget> rule, ICollection<TSource> sourceCollection, ICollection<TTarget> targetCollection, TSource source, bool isLeftMissing)
Parameters
Type Name Description
ISynchronizationContext context

The context in which the inconsistency was found

TransformationRuleBase<TSource, TTarget> rule

The synchronization rule for which the inconsistency was found

ICollection<TSource> sourceCollection

The source collection of elements

ICollection<TTarget> targetCollection

The target collection of elements

TSource source

The element that is missing

bool isLeftMissing

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

Properties

| Edit this page View Source

CanResolveLeft

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

Declaration
public bool CanResolveLeft { get; }
Property Value
Type Description
bool
| Edit this page View Source

CanResolveRight

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

Declaration
public bool CanResolveRight { get; }
Property Value
Type Description
bool
| Edit this page View Source

Context

Gets the context in which this inconsistency occured

Declaration
public ISynchronizationContext Context { get; }
Property Value
Type Description
ISynchronizationContext
| Edit this page View Source

IsLeftMissing

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

Declaration
public bool IsLeftMissing { get; }
Property Value
Type Description
bool
| Edit this page View Source

Rule

Gets the transformation rule required to fix the inconsistency

Declaration
public TransformationRuleBase<TSource, TTarget> Rule { get; }
Property Value
Type Description
TransformationRuleBase<TSource, TTarget>
| Edit this page View Source

Source

Gets the source element that is missing

Declaration
public TSource Source { get; }
Property Value
Type Description
TSource
| Edit this page View Source

SourceCollection

Gets the source collection where the element is contained

Declaration
public ICollection<TSource> SourceCollection { get; }
Property Value
Type Description
ICollection<TSource>
| Edit this page View Source

TargetCollection

Gets the target collection where the element is missing

Declaration
public ICollection<TTarget> TargetCollection { get; }
Property Value
Type Description
ICollection<TTarget>

Methods

| Edit this page View Source

Equals(IInconsistency)

Declaration
public bool Equals(IInconsistency other)
Parameters
Type Name Description
IInconsistency other
Returns
Type Description
bool
| Edit this page View Source

Equals(object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)
| Edit this page View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()
| Edit this page View Source

ResolveLeft()

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

Declaration
public void ResolveLeft()
| Edit this page View Source

ResolveRight()

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

Declaration
public void ResolveRight()

Implements

IInconsistency
IEquatable<T>
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX