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
| Name | Type | Description |
|---|---|---|
FileModelLoader(string dataPath) | void | Initializes a new instance of the Korzh.EasyQuery.Services.FileModelLoader class. |
FileModelLoader(IOptions<FileModelLoaderSettings> options) | void | Initializes a new instance of the Korzh.EasyQuery.Services.FileModelLoader class. |
Methods
| Name | Type | Description |
|---|---|---|
LoadModelAsync(DataModel model, string modelId, CancellationToken ct = null) | Task<bool> | Loads the model by its ID. |