DbConnectionModelLoader class
Represents a IModelLoader implementation which allows to load the model directly from a connection (using DB meta data)
public class Korzh.EasyQuery.Services.DbConnectionModelLoader : IModelLoader
Package: Korzh.EasyQuery.Db
(targets: netstandard2.0
)
Assembly: Korzh.EasyQuery.Db.dll
Constructors
Section titled “Constructors”Name | Type | Description |
---|---|---|
DbConnectionModelLoader(DbConnection connection) | void | Initializes a new instance of the Korzh.EasyQuery.Services.DbConnectionModelLoader class. |
DbConnectionModelLoader(DbConnection connection, DbConnectionModelLoaderOptions options) | void | Initializes a new instance of the Korzh.EasyQuery.Services.DbConnectionModelLoader class. |
Methods
Section titled “Methods”Name | Type | Description |
---|---|---|
LoadModelAsync(DataModel model, string modelId) | Task <bool > | Loads the model from the connection passed in the loader’s constructor. NB: The model ID is not actually taking into account. |