IQueryStore interface
Defines the basic operations of a query store.
public interface Korzh.EasyQuery.Services.IQueryStorePackage: Korzh.EasyQuery (targets: netstandard2.0)
Assembly: Korzh.EasyQuery.dll
Methods
Section titled “Methods”| Name | Type | Description |
|---|---|---|
| AddQueryAsync(Query query) | Task<bool> | Adds a new query to the storage. |
GetAllQueriesAsync(string modelId) | Task<IEnumerable<QueryListItem>> | Gets the list of all queries available in the storage for the specified model. |
LoadQueryAsync(Query query, string queryId) | Task<bool> | Loads the query from the storage |
RemoveQueryAsync(string modelId, string queryId) | Task<bool> | Removes from the storage the query specified by model ID and query ID. |
SaveQueryAsync(Query query, bool createIfNotExists = True) | Task<bool> | Saves the query passed in the parameter. |