DatabaseDapperMaticAccessRepository
Namespace: MJCZone.DapperMatic.AspNetCore.Repositories
Assembly: MJCZone.DapperMatic.AspNetCore
Summary
Keeps policies and tenants in a database table, one row each, as JSON: every instance of the application reads the same ones. The table is created when first used.
Inheritance
Implemented Interfaces:
public
Contents
Constructors (1) | Methods (14)
Constructors
DatabaseDapperMaticAccessRepository
Initializes a new instance of the DatabaseDapperMaticAccessRepository class.
csharp
DatabaseDapperMaticAccessRepository(
string provider,
string connectionString,
IDbConnectionFactory connectionFactory,
string schemaName,
string tableName)Parameters
- provider (string) - The database provider.
- connectionString (string) - The connection string.
- connectionFactory (IDbConnectionFactory) - The connection factory.
- schemaName (string) - The schema of the table, or null for the default one.
- tableName (string) - The table's name.
Methods
GetAsync
csharp
Task<DapperMaticAccessDocument> GetAsync()Returns
Type: Task<DapperMaticAccessDocument>
SavePolicyAsync
csharp
Task SavePolicyAsync()Returns
Type: Task
DeletePolicyAsync
csharp
Task<bool> DeletePolicyAsync()Returns
Type: Task<bool>
SaveTenantAsync
csharp
Task SaveTenantAsync()Returns
Type: Task
DeleteTenantAsync
csharp
Task<bool> DeleteTenantAsync()Returns
Type: Task<bool>
SaveWebhookAsync
csharp
Task SaveWebhookAsync()Returns
Type: Task
DeleteWebhookAsync
csharp
Task<bool> DeleteWebhookAsync()Returns
Type: Task<bool>
SaveServiceAccountAsync
csharp
Task SaveServiceAccountAsync()Returns
Type: Task
DeleteServiceAccountAsync
csharp
Task<bool> DeleteServiceAccountAsync()Returns
Type: Task<bool>
ReplaceAsync
csharp
Task ReplaceAsync()Returns
Type: Task
GetType
csharp
GetType()ToString
csharp
ToString()Equals
csharp
Equals()GetHashCode
csharp
GetHashCode()