Skip to content

DapperMaticCachedTable ​

Namespace: MJCZone.DapperMatic.AspNetCore.Models

Assembly: MJCZone.DapperMatic.AspNetCore

Summary ​

A table or view whose query results are kept, for at most Duration. A write made through DapperMatic (its row and batch endpoints, or <c>DapperMaticCallerDb</c>) makes them stale at once; a write made elsewhere is seen when the duration runs out, or at once after <c>DapperMaticResultCache.InvalidateAsync</c>.

sealed public

Contents ​

Constructors (1) | Methods (4) | Properties (5)

Constructors ​

DapperMaticCachedTable ​

csharp
DapperMaticCachedTable()

Methods ​

GetType ​

csharp
GetType()

ToString ​

csharp
ToString()

Equals ​

csharp
Equals()

GetHashCode ​

csharp
GetHashCode()

Properties ​

DatasourceId ​

Gets or sets the datasource, or null for the table in every datasource.

Type: string?

SchemaName ​

Gets or sets the table's schema, or null for the table in every schema.

Type: string?

TableName ​

Gets or sets the table's or view's name.

Type: string

Duration ​

Gets or sets the longest its results are kept.

Type: TimeSpan

Reads ​

Gets or sets, for a view, the tables it reads (<c>table</c> or <c>schema.table</c>): a write to one of them makes the view's results stale. A view's rows change with its tables, which DapperMatic cannot read from its definition.

Type: string[]