Class MissingItemInconsistency<TSource, TTarget>
Denotes the inconsistency that an element is missing in a synchronized collection
Inherited Members
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 SourceMissingItemInconsistency(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 SourceCanResolveLeft
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 |
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 |
Context
Gets the context in which this inconsistency occured
Declaration
public ISynchronizationContext Context { get; }
Property Value
Type | Description |
---|---|
ISynchronizationContext |
IsLeftMissing
True, if the element is missing in the left side, otherwise false
Declaration
public bool IsLeftMissing { get; }
Property Value
Type | Description |
---|---|
bool |
Rule
Gets the transformation rule required to fix the inconsistency
Declaration
public TransformationRuleBase<TSource, TTarget> Rule { get; }
Property Value
Type | Description |
---|---|
TransformationRuleBase<TSource, TTarget> |
Source
Gets the source element that is missing
Declaration
public TSource Source { get; }
Property Value
Type | Description |
---|---|
TSource |
SourceCollection
Gets the source collection where the element is contained
Declaration
public ICollection<TSource> SourceCollection { get; }
Property Value
Type | Description |
---|---|
ICollection<TSource> |
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 SourceEquals(IInconsistency)
Declaration
public bool Equals(IInconsistency other)
Parameters
Type | Name | Description |
---|---|---|
IInconsistency | other |
Returns
Type | Description |
---|---|
bool |
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
Overrides
| Edit this page View SourceResolveLeft()
Describes inconsistencies that can occur between the right hand and the left hand of a synchronization
Declaration
public void ResolveLeft()
ResolveRight()
Describes inconsistencies that can occur between the right hand and the left hand of a synchronization
Declaration
public void ResolveRight()