Skip to content

DbContextModelLoader<T> 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<T>
: IModelLoader
TypeNameDescription
Task<Boolean>LoadModelAsync(DataModel model, String modelId)Loads the model from the DbContext object that we get from the DI container. NB: The model ID is not actually taking into account since the model is defined by a concrete DbContext type.