DbContextModelLoader class

Represents a IModelLoader implementation which allows to load the model from a DbContext object. Implements the Korzh.EasyQuery.Services.IModelLoader

public class Korzh.EasyQuery.Services.DbContextModelLoader
    : IModelLoader

Package: Korzh.EasyQuery.EntityFramework6 (targets: net461)

Assembly: Korzh.EasyQuery.EntityFramework6.dll

Constructors

Name Type Description
DbContextModelLoader(DbContext dbContext, DbContextModelExtractorOptions options) void Initializes a new instance of the Korzh.EasyQuery.Services.DbContextModelLoader class.

Methods

Name Type Description
LoadModelAsync(DataModel model, string modelId) Task<bool> Loads the model from the DbContext object. NB: The model ID is not actually taking into account since the model is defined by a concrete DbContext type.