Table of Contents

Class SqlField

Namespace
LinqToDB.Internal.SqlQuery
Assembly
linq2db.dll
public sealed class SqlField : SqlExpressionBase, ISqlExpression, IQueryElement, IEquatable<ISqlExpression>
Inheritance
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

Alias

public string? Alias { get; set; }

Property Value

string

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

Name

public string Name { get; set; }

Property Value

string

PhysicalName

public string PhysicalName { get; set; }

Property Value

string

Precedence

public override int Precedence { get; }

Property Value

int

PrimaryKeyOrder

public int PrimaryKeyOrder { get; set; }

Property Value

int

SkipOnEntityFetch

public bool SkipOnEntityFetch { get; set; }

Property Value

bool

SystemType

public override Type SystemType { get; }

Property Value

Type

Table

public ISqlTableSource? Table { get; set; }

Property Value

ISqlTableSource

Type

public DbDataType Type { get; set; }

Property Value

DbDataType

Methods

Assign(SqlField)

public void Assign(SqlField source)

Parameters

source SqlField

CanBeNullable(NullabilityContext)

public override bool CanBeNullable(NullabilityContext nullability)

Parameters

nullability NullabilityContext

Returns

bool

Equals(ISqlExpression, Func<ISqlExpression, ISqlExpression, bool>)

public override bool Equals(ISqlExpression other, Func<ISqlExpression, ISqlExpression, bool> comparer)

Parameters

other ISqlExpression
comparer Func<ISqlExpression, ISqlExpression, bool>

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