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
Assembly: Korzh.EasyQuery.Db.dll
Constructors
| Name | Type | Description |
|---|---|---|
DbConnectionModelLoader(DbConnection connection, DbConnectionModelLoaderOptions options) | void | Initializes a new instance of the Korzh.EasyQuery.Services.DbConnectionModelLoader class. |
DbConnectionModelLoader(Func<DbConnection> connectionResolver, DbConnectionModelLoaderOptions options) | void | Initializes a new instance of the Korzh.EasyQuery.Services.DbConnectionModelLoader class. |
Methods
| Name | Type | Description |
|---|---|---|
LoadModelAsync(DataModel model, string modelId, CancellationToken ct = null) | Task<bool> | Loads the model from the connection passed in the loader's constructor. NB: The model ID is not actually taking into account. |