Skip to content

TQueryCrudExtensions_Update_SIykhQKQpb7CtXSLtcz+Dw

Jacob Spitzer edited this page Aug 28, 2022 · 2 revisions

TQueryCrudExtensions.Update<Table>(DbEc<Table>, Table, string) Method

Updates an entity in table.

public static void Update<Table>(this DbEasyConnect.DbEc<Table> tQuery, Table entity, string keyColumnName="Id");

Type parameters

Table
The type of the records of table class. need to be a class with the [Table("")] attribute.

Parameters

tQuery DbEasyConnect.DbEc<Table>
An DbEc<T> to perform the update command.

entity Table
An single entity to update.

keyColumnName System.String
The column name of the primary key.

Clone this wiki locally