Table of Contents

Class SqlColumn

Namespace
LinqToDB.SqlQuery
Assembly
linq2db.dll
public class SqlColumn : IEquatable<SqlColumn>, ISqlExpression, IQueryElement, IEquatable<ISqlExpression>, ISqlExpressionWalkable
Inheritance
SqlColumn
Implements
Extension Methods

Constructors

SqlColumn(SelectQuery, ISqlExpression)

public SqlColumn(SelectQuery builder, ISqlExpression expression)

Parameters

builder SelectQuery
expression ISqlExpression

SqlColumn(SelectQuery?, ISqlExpression, string?)

public SqlColumn(SelectQuery? parent, ISqlExpression expression, string? alias)

Parameters

parent SelectQuery
expression ISqlExpression
alias string

Properties

Alias

public string? Alias { get; set; }

Property Value

string

CanBeNull

public bool CanBeNull { get; }

Property Value

bool

ElementType

public QueryElementType ElementType { get; }

Property Value

QueryElementType

Expression

public ISqlExpression Expression { get; set; }

Property Value

ISqlExpression

Parent

public SelectQuery? Parent { get; set; }

Property Value

SelectQuery

Precedence

public int Precedence { get; }

Property Value

int

SystemType

public Type? SystemType { get; }

Property Value

Type

Methods

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

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

Parameters

other ISqlExpression
comparer Func<ISqlExpression, ISqlExpression, bool>

Returns

bool

Equals(SqlColumn?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(SqlColumn? other)

Parameters

other SqlColumn

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Serves as a hash function for a particular type.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

UnderlyingExpression()

public ISqlExpression UnderlyingExpression()

Returns

ISqlExpression

Walk<TContext>(WalkOptions, TContext, Func<TContext, ISqlExpression, ISqlExpression>)

public ISqlExpression Walk<TContext>(WalkOptions options, TContext context, Func<TContext, ISqlExpression, ISqlExpression> func)

Parameters

options WalkOptions
context TContext
func Func<TContext, ISqlExpression, ISqlExpression>

Returns

ISqlExpression

Type Parameters

TContext