Skip to main content

filemodelloader-class

Represents a IModelLoader implemenation which allows to load data model definitions (either XML or JSON) from the file system. Implements the Korzh.EasyQuery.Services.IModelLoader

public class Korzh.EasyQuery.Services.FileModelLoader
: IModelLoader

Assembly: Korzh.EasyQuery.dll

Constructors

NameTypeDescription
FileModelLoader(string dataPath)voidInitializes a new instance of the Korzh.EasyQuery.Services.FileModelLoader class.
FileModelLoader(IOptions<FileModelLoaderSettings> options)voidInitializes a new instance of the Korzh.EasyQuery.Services.FileModelLoader class.

Methods

NameTypeDescription
LoadModelAsync(DataModel model, string modelId, CancellationToken ct = null)Task<bool>Loads the model by its ID.