Skip to content

DapperMaticValueSettings ​

Namespace: MJCZone.DapperMatic.AspNetCore.Models

Assembly: MJCZone.DapperMatic.AspNetCore

Summary ​

A value: fixed, or read with SQL when first used. Set one of Value and Sql.

sealed public

Contents ​

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

Constructors ​

DapperMaticValueSettings ​

csharp
DapperMaticValueSettings()

Methods ​

GetType ​

csharp
GetType()

ToString ​

csharp
ToString()

Equals ​

csharp
Equals()

GetHashCode ​

csharp
GetHashCode()

Properties ​

Value ​

Gets or sets a fixed value.

Type: string?

Sql ​

Gets or sets a query whose single column is the value: one row gives a value, several a list. It may read <c>@tenant.id</c>, <c>@tenant.name</c>, <c>@user.id</c>, <c>@claims.type</c> and <c>@values.name</c>, which are passed as parameters.

Type: string?

Datasource ​

Gets or sets the datasource the query runs against, or null for the request's.

Type: string?