Class SkipValuesByListAttribute
Abstract Attribute to be used for skipping value for SkipValuesOnInsertAttribute based on Insert or SkipValuesOnUpdateAttribute based on Update/> or a custom Attribute derived from this to override ShouldSkip(object, EntityDescriptor, ColumnDescriptor)
[CLSCompliant(false)]
public abstract class SkipValuesByListAttribute : SkipBaseAttribute
- Inheritance
-
SkipValuesByListAttribute
- Derived
- Inherited Members
- Extension Methods
Constructors
SkipValuesByListAttribute(IEnumerable<object?>)
protected SkipValuesByListAttribute(IEnumerable<object?> values)
Parameters
valuesIEnumerable<object>
Properties
Values
Gets collection with values to skip.
protected HashSet<object?> Values { get; set; }
Property Value
Methods
GetObjectID()
Returns mapping attribute id, based on all attribute options.
public override string GetObjectID()
Returns
ShouldSkip(object, EntityDescriptor, ColumnDescriptor)
Check if object contains values that should be skipped.
public override bool ShouldSkip(object obj, EntityDescriptor entityDescriptor, ColumnDescriptor columnDescriptor)
Parameters
objobjectThe object to check.
entityDescriptorEntityDescriptorThe entity descriptor.
columnDescriptorColumnDescriptorThe column descriptor.
Returns
- bool
trueif object should be skipped for the operation.