Skip to content

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

NameTypeDescription
DbConnectionModelLoader(DbConnection connection)voidInitializes a new instance of the Korzh.EasyQuery.Services.DbConnectionModelLoader class.
DbConnectionModelLoader(DbConnection connection, DbConnectionModelLoaderOptions options)voidInitializes a new instance of the Korzh.EasyQuery.Services.DbConnectionModelLoader class.
NameTypeDescription
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.