Class SavedQueryService<TContext>
- Namespace
- Innova.Data.AppSettings.Services
- Assembly
- Innova.Data.dll
Service for managing saved queries.
public class SavedQueryService<TContext> : ISavedQueryService where TContext : DbContext
Type Parameters
TContext
The type of the database context.
- Inheritance
-
SavedQueryService<TContext>
- Implements
Constructors
- SavedQueryService(IDbContextFactory<TContext>, ICurrentUser)
Initializes a new instance of the SavedQueryService<TContext> class.
Properties
- DefaultSavedQuerySetting
Gets or sets the default saved query setting.
- SavedQuerySetting
Gets or sets the saved query setting.
Methods
- Get(string, string)
Retrieves the saved query type for the specified entity type and view key. If the query type does not exist, it creates a new one.
- GetDefault(string, string)
Retrieves the default saved query type for the specified entity type and view key. If the query type does not exist, it creates a new one.
- Save()
Saves the changes made to the saved queries of the current user.
- SaveDefaults()
Saves the changes made to the default saved queries.