Table of Contents

Class SkipValuesByListAttribute

Namespace
LinqToDB.Mapping
Assembly
linq2db.dll

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

HashSet<object>

Methods

GetObjectID()

Returns mapping attribute id, based on all attribute options.

public override string GetObjectID()

Returns

string

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 object

The object to check.

entityDescriptor EntityDescriptor

The entity descriptor.

columnDescriptor ColumnDescriptor

The column descriptor.

Returns

bool

true if object should be skipped for the operation.