dbmodelextensions-class
Contains several DbModel extensions
public static class Korzh.EasyQuery.Db.DbModelExtensions
Assembly: Korzh.EasyQuery.Db.dll
Static Methods
Name | Type | Description |
---|---|---|
FillByDataTable(this DbModel model, DataTable dataTable, bool createEntity) | void | Fills 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) | void | Fills 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) | void | Populates model by information from database connection. |