Skip to main content

iquerystore-interface

Defines the basic operations of a query store.

public interface Korzh.EasyQuery.Services.IQueryStore

Assembly: Korzh.EasyQuery.dll

Methods

NameTypeDescription
AddQueryAsync(Query query, CancellationToken ct = null)Task<bool>Adds a new query to the storage.
GetAllQueriesAsync(string modelId, CancellationToken ct = null)Task<IEnumerable<QueryListItem>>Gets the list of all queries available in the storage for the specified model.
LoadQueryAsync(Query query, string queryId, CancellationToken ct = null)Task<bool>Loads the query from the storage
RemoveQueryAsync(string modelId, string queryId, CancellationToken ct = null)Task<bool>Removes from the storage the query specified by model ID and query ID.
SaveQueryAsync(Query query, bool createIfNotExists = True, CancellationToken ct = null)Task<bool>Saves the query passed in the parameter.