Skip to content

DapperMaticSchemaCache ​

Namespace: MJCZone.DapperMatic.AspNetCore.Caching

Assembly: MJCZone.DapperMatic.AspNetCore

Summary ​

The descriptions of tables and views that query and row requests read from each datasource's catalog, kept for SchemaCacheDuration. DapperMatic's own schema endpoints forget a datasource's descriptions when they change it; a change made elsewhere is seen when the duration runs out, or at once after String).

sealed public

Contents ​

Constructors (1) | Methods (6)

Constructors ​

DapperMaticSchemaCache ​

Initializes a new instance of the DapperMaticSchemaCache class.

csharp
DapperMaticSchemaCache(TimeSpan duration, TimeProvider clock)

Parameters ​

  • duration (TimeSpan) - How long a description is kept; zero keeps none.
  • clock (TimeProvider) - The clock, or null for the system's.

Methods ​

MethodSummary
InvalidateForgets every description read from a datasource.
ClearForgets every description.
GetType
ToString
Equals
GetHashCode

Invalidate ​

Forgets every description read from a datasource.

csharp
void Invalidate(string datasourceId)

Parameters ​

  • datasourceId (string) - The datasource.

Clear ​

Forgets every description.

csharp
void Clear()

GetType ​

csharp
GetType()

ToString ​

csharp
ToString()

Equals ​

csharp
Equals()

GetHashCode ​

csharp
GetHashCode()