Table of Contents

Class SqlField

Namespace
LinqToDB.Internal.SqlQuery
Assembly
linq2db.dll
public sealed class SqlField : SqlFieldBase, ISqlExpression, IQueryElement, IEquatable<ISqlExpression>
Inheritance
object
SqlField
Implements
Inherited Members
Extension Methods

Constructors

SqlField(DbDataType, string?, bool)

public SqlField(DbDataType dbDataType, string? name, bool canBeNull)

Parameters

dbDataType DbDataType
name string
canBeNull bool

SqlField(ISqlTableSource, string)

public SqlField(ISqlTableSource table, string name)

Parameters

table ISqlTableSource
name string

SqlField(SqlField)

public SqlField(SqlField field)

Parameters

field SqlField

SqlField(ColumnDescriptor)

public SqlField(ColumnDescriptor column)

Parameters

column ColumnDescriptor

SqlField(string, string)

public SqlField(string name, string physicalName)

Parameters

name string
physicalName string

Properties

BasedOn

public SqlField? BasedOn { get; set; }

Property Value

SqlField

CanBeNull

public bool CanBeNull { get; set; }

Property Value

bool

ColumnDescriptor

public ColumnDescriptor ColumnDescriptor { get; set; }

Property Value

ColumnDescriptor

CreateFormat

public string? CreateFormat { get; set; }

Property Value

string

CreateOrder

public int? CreateOrder { get; set; }

Property Value

int?

ElementType

AST node type.

public override QueryElementType ElementType { get; }

Property Value

QueryElementType

IsDynamic

public bool IsDynamic { get; set; }

Property Value

bool

IsIdentity

public bool IsIdentity { get; set; }

Property Value

bool

IsInsertable

public bool IsInsertable { get; set; }

Property Value

bool

IsPrimaryKey

public bool IsPrimaryKey { get; set; }

Property Value

bool

IsUpdatable

public bool IsUpdatable { get; set; }

Property Value

bool

NamedTable

The ISqlNamedTable this field belongs to, if any. Returns null for fields bound to a non-named source (e.g. a SelectQuery).

public override ISqlNamedTable? NamedTable { get; }

Property Value

ISqlNamedTable

PhysicalName

public string PhysicalName { get; set; }

Property Value

string

PrimaryKeyOrder

public int PrimaryKeyOrder { get; set; }

Property Value

int

SkipOnEntityFetch

public bool SkipOnEntityFetch { get; set; }

Property Value

bool

Table

public ISqlTableSource? Table { get; set; }

Property Value

ISqlTableSource

Methods

Accept(QueryElementVisitor)

Visitor support.

public override IQueryElement Accept(QueryElementVisitor visitor)

Parameters

visitor QueryElementVisitor

Returns

IQueryElement

Assign(SqlField)

public void Assign(SqlField source)

Parameters

source SqlField

CanBeNullable(NullabilityContext)

public override bool CanBeNullable(NullabilityContext nullability)

Parameters

nullability NullabilityContext

Returns

bool

GetElementHashCode()

public override int GetElementHashCode()

Returns

int

ToString(QueryElementTextWriter)

Generates debug text representation of AST node.

public override QueryElementTextWriter ToString(QueryElementTextWriter writer)

Parameters

writer QueryElementTextWriter

Returns

QueryElementTextWriter