Table of Contents

Delegate InsertOrUpdateColumnFilter<T>

Namespace
LinqToDB
Assembly
linq2db.dll

Defines signature for column filter for insert or update/replace operations.

public delegate bool InsertOrUpdateColumnFilter<T>(T entity, ColumnDescriptor column, bool isInsert)

Parameters

entity T

Entity instance.

column ColumnDescriptor

Descriptor of column.

isInsert bool

If true, filter applied to insert operation, otherwise to update/replace.

Returns

bool

true, if column should be included in operation and false otherwise.

Type Parameters

T

Entity type.

Extension Methods

Constructors

InsertOrUpdateColumnFilter(object, nint)

public InsertOrUpdateColumnFilter(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(T, ColumnDescriptor, bool, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(T entity, ColumnDescriptor column, bool isInsert, AsyncCallback callback, object @object)

Parameters

entity T
column ColumnDescriptor
isInsert bool
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual bool EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

bool

Invoke(T, ColumnDescriptor, bool)

public virtual bool Invoke(T entity, ColumnDescriptor column, bool isInsert)

Parameters

entity T
column ColumnDescriptor
isInsert bool

Returns

bool