Skip to main content

dbmodelextensions-class

Contains several DbModel extensions

public static class Korzh.EasyQuery.Db.DbModelExtensions

Assembly: Korzh.EasyQuery.Db.dll

Static Methods

NameTypeDescription
FillByDataTable(this DbModel model, DataTable dataTable, bool createEntity)voidFills the Korzh.EasyQuery.Db.DbModel by database table represented by System.Data.DataTable object.
FillByDbGate(this [DbModel](/korzh-easyquery-db-namespace/dbmodel-class) model, [DbGate](/korzh-easyquery-db-namespace/dbgate-class) dbGate, [DbConnectionModelLoaderOptions](/korzh-easyquery-db-namespace/dbconnectionmodelloaderoptions-class) options = null)voidFills the model by database gate.
LoadFromConnection(this [DbModel](/korzh-easyquery-db-namespace/dbmodel-class) model, `DbConnection` connection, [DbConnectionModelLoaderOptions](/korzh-easyquery-db-namespace/dbconnectionmodelloaderoptions-class) options = null)voidPopulates model by information from database connection.