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, _Attribute
- Inheritance
-
SkipValuesByListAttribute
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
SkipValuesByListAttribute(IEnumerable<object?>)
protected SkipValuesByListAttribute(IEnumerable<object?> values)
Parameters
values
IEnumerable<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
obj
objectThe object to check.
entityDescriptor
EntityDescriptorThe entity descriptor.
columnDescriptor
ColumnDescriptorThe column descriptor.
Returns
- bool
true
if object should be skipped for the operation.