Skip to 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

Package: Korzh.EasyQuery (targets: netstandard2.0)

Assembly: Korzh.EasyQuery.dll

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.
NameTypeDescription
LoadModelAsync(DataModel model, string modelId)Task<bool>Loads the model by its ID.