Skip to content

IQueryStore interface

Defines the basic operations of a query store.

public interface Korzh.EasyQuery.Services.IQueryStore

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

Assembly: Korzh.EasyQuery.dll

NameTypeDescription
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.