Skip to content

DapperMaticRelation ​

Namespace: MJCZone.DapperMatic.AspNetCore.Models

Assembly: MJCZone.DapperMatic.AspNetCore

Summary ​

A relation query requests may follow from a table: in conditions (<c>customer/country eq 'FR'</c>, <c>lines/any(l: l/qty gt 5)</c>), orderings and <c>$expand</c>. A request can follow only the relations declared: none is inferred from the database's foreign keys.

sealed public

Contents ​

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

Constructors ​

DapperMaticRelation ​

csharp
DapperMaticRelation()

Methods ​

GetType ​

csharp
GetType()

ToString ​

csharp
ToString()

Equals ​

csharp
Equals()

GetHashCode ​

csharp
GetHashCode()

Properties ​

DatasourceId ​

Gets or sets the datasource it applies to, or null for every datasource.

Type: string?

SchemaName ​

Gets or sets the schema of the table it is a relation of, or null for any.

Type: string?

TableName ​

Gets or sets the table it is a relation of.

Type: string

Name ​

Gets or sets the name requests use for it.

Type: string

OtherSchemaName ​

Gets or sets the related table's schema, or null for the table's own.

Type: string?

OtherTableName ​

Gets or sets the related table.

Type: string

Columns ​

Gets or sets the table's key columns, in pair order with OtherColumns.

Type: string[]

OtherColumns ​

Gets or sets the related table's key columns.

Type: string[]

Many ​

Gets or sets a value indicating whether a row relates to many rows of the related table.

Type: bool