TdsQueryRootWriteHandlers<T> Class

Handles the INSERT, UPDATE and DELETE statements that target a query root.

public sealed class TdsQueryRootWriteHandlers<T>

Type parameters

T
The type of the rows of the query root.

Remarks

A statement whose handler is null returns an error.

Constructors

NameDescription
TdsQueryRootWriteHandlers()

TdsQueryRootWriteHandlers()

public TdsQueryRootWriteHandlers()

No documentation is available.

Properties

NameDescription
DeleteGets or sets the handler of DELETE statements. It receives the rows returned by the query root that match the statement.
InsertGets or sets the handler of INSERT statements. It receives the new rows, created with the public parameterless constructor of T and the values of the statement.
UpdateGets or sets the handler of UPDATE statements. It receives the rows returned by the query root that match the statement, after the engine has assigned their new values.

Gets or sets the handler of DELETE statements. It receives the rows returned by the query root that match the statement.

public TdsQueryRootRowsHandler<T>? Delete { get; set; }

Gets or sets the handler of INSERT statements. It receives the new rows, created with the public parameterless constructor of T and the values of the statement.

public TdsQueryRootRowsHandler<T>? Insert { get; set; }

Gets or sets the handler of UPDATE statements. It receives the rows returned by the query root that match the statement, after the engine has assigned their new values.

public TdsQueryRootRowsHandler<T>? Update { get; set; }