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
TSourceThe LHS type of elements
TTargetThe RHS type of elements
- Inheritance
-
MissingItemInconsistency<TSource, TTarget>
- Implements
- Inherited Members
Constructors
MissingItemInconsistency(object, object, IInconsistencyDescriptor<object, object, object, object>, ISynchronizationContext, TransformationRuleBase<TSource, TTarget>, ICollection<TSource>, ICollection<TTarget>, TSource, bool)
Creates a new inconsistency
public MissingItemInconsistency(object sourceElement, object targetElement, IInconsistencyDescriptor<object, object, object, object> descriptor, ISynchronizationContext context, TransformationRuleBase<TSource, TTarget> rule, ICollection<TSource> sourceCollection, ICollection<TTarget> targetCollection, TSource source, bool isLeftMissing)
Parameters
sourceElementobjectthe source element
targetElementobjectthe target element
descriptorIInconsistencyDescriptor<object, object, object, object>A descriptor used to give human-readable descriptions of the inconsistency
contextISynchronizationContextThe context in which the inconsistency was found
ruleTransformationRuleBase<TSource, TTarget>The synchronization rule for which the inconsistency was found
sourceCollectionICollection<TSource>The source collection of elements
targetCollectionICollection<TTarget>The target collection of elements
sourceTSourceThe element that is missing
isLeftMissingboolTrue, 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
CanResolveRight
Describes inconsistencies that can occur between the right hand and the left hand of a synchronization
public bool CanResolveRight { get; }
Property Value
Context
Gets the context in which this inconsistency occured
public ISynchronizationContext Context { get; }
Property Value
IsLeftMissing
True, if the element is missing in the left side, otherwise false
public bool IsLeftMissing { get; }
Property Value
LeftElement
Describes inconsistencies that can occur between the right hand and the left hand of a synchronization
public object LeftElement { get; }
Property Value
RightElement
Describes inconsistencies that can occur between the right hand and the left hand of a synchronization
public object RightElement { get; }
Property Value
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
DescribeLeft()
Describes inconsistencies that can occur between the right hand and the left hand of a synchronization
public string DescribeLeft()
Returns
DescribeRight()
Describes inconsistencies that can occur between the right hand and the left hand of a synchronization
public string DescribeRight()
Returns
Equals(IInconsistency)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(IInconsistency other)
Parameters
otherIInconsistencyAn object to compare with this object.
Returns
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
objobject
Returns
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
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()