Skip to content

ColumnDto ​

Namespace: MJCZone.DapperMatic.AspNetCore.Models.Dtos

Assembly: MJCZone.DapperMatic.AspNetCore

Summary ​

Data transfer object representing a database column optimized for API responses.

public

Contents ​

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

Constructors ​

ColumnDto ​

csharp
ColumnDto()

Methods ​

GetType ​

csharp
GetType()

ToString ​

csharp
ToString()

Equals ​

csharp
Equals()

GetHashCode ​

csharp
GetHashCode()

Properties ​

ColumnName ​

Gets or sets the column name.

Type: string

DotnetTypeName ​

Gets or sets the friendly .NET type name (e.g., "string", "int?", "Dictionary<string, object>").

Type: string?

ProviderDataType ​

Gets or sets the provider-specific data type (e.g., "VARCHAR(255)", "INTEGER", "DECIMAL(10,2)").

Type: string

Length ​

Gets or sets the length of the column.

Type: int?

Precision ​

Gets or sets the precision of the column.

Type: int?

Scale ​

Gets or sets the scale of the column.

Type: int?

CheckExpression ​

Gets or sets the check constraint expression.

Type: string?

DefaultExpression ​

Gets or sets the default value expression.

Type: string?

IsNullable ​

Gets or sets a value indicating whether the column is nullable.

Type: bool?

IsPrimaryKey ​

Gets or sets a value indicating whether the column is a primary key.

Type: bool?

IsAutoIncrement ​

Gets or sets a value indicating whether the column is auto-incremented.

Type: bool?

IsUnique ​

Gets or sets a value indicating whether the column is unique.

Type: bool?

IsUnicode ​

Gets or sets a value indicating whether the column explicitly supports unicode characters.

Type: bool?

IsFixedLength ​

Gets or sets a value indicating whether the column is of a fixed length.

Type: bool?

IsIndexed ​

Gets or sets a value indicating whether the column is indexed.

Type: bool?

IsForeignKey ​

Gets or sets a value indicating whether the column is a foreign key.

Type: bool?

ReferencedTableName ​

Gets or sets the referenced table name (if this is a foreign key).

Type: string?

ReferencedColumnName ​

Gets or sets the referenced column name (if this is a foreign key).

Type: string?