Table of Contents

Class Column

Namespace
LinqToDB.Schema
Assembly
linq2db.Tools.dll

Table or view column descriptor.

public sealed record Column : IEquatable<Column>
Inheritance
Column
Implements
Extension Methods

Constructors

Column(string, string?, DatabaseType, bool, bool, bool, int?)

Table or view column descriptor.

public Column(string Name, string? Description, DatabaseType Type, bool Nullable, bool Insertable, bool Updatable, int? Ordinal)

Parameters

Name string

Column name.

Description string

Optional column description.

Type DatabaseType

Column type.

Nullable bool

Column allows NULL values.

Insertable bool

Flag indicating that column accepts user-provided values for insert operations.

Updatable bool

Flag indicating that column accepts user-provided values for update operations.

Ordinal int?

Column ordinal.

Properties

Description

Optional column description.

public string? Description { get; init; }

Property Value

string

Insertable

Flag indicating that column accepts user-provided values for insert operations.

public bool Insertable { get; init; }

Property Value

bool

Name

Column name.

public string Name { get; init; }

Property Value

string

Nullable

Column allows NULL values.

public bool Nullable { get; init; }

Property Value

bool

Ordinal

Column ordinal.

public int? Ordinal { get; init; }

Property Value

int?

Type

Column type.

public DatabaseType Type { get; init; }

Property Value

DatabaseType

Updatable

Flag indicating that column accepts user-provided values for update operations.

public bool Updatable { get; init; }

Property Value

bool

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.