Table of Contents

Class SqlSelectClause

Namespace
LinqToDB.SqlQuery
Assembly
linq2db.dll
public class SqlSelectClause : ClauseBase, IQueryElement, ISqlExpressionWalkable
Inheritance
SqlSelectClause
Implements
Inherited Members
Extension Methods

Properties

Columns

public List<SqlColumn> Columns { get; }

Property Value

List<SqlColumn>

ElementType

public QueryElementType ElementType { get; }

Property Value

QueryElementType

HasModifier

public bool HasModifier { get; }

Property Value

bool

IsDistinct

public bool IsDistinct { get; set; }

Property Value

bool

OptimizeDistinct

public bool OptimizeDistinct { get; set; }

Property Value

bool

SkipValue

public ISqlExpression? SkipValue { get; set; }

Property Value

ISqlExpression

TakeHints

public TakeHints? TakeHints { get; }

Property Value

TakeHints?

TakeValue

public ISqlExpression? TakeValue { get; }

Property Value

ISqlExpression

Methods

Add(ISqlExpression)

public int Add(ISqlExpression expr)

Parameters

expr ISqlExpression

Returns

int

Add(ISqlExpression, string?)

public int Add(ISqlExpression expr, string? alias)

Parameters

expr ISqlExpression
alias string

Returns

int

AddColumn(ISqlExpression)

public SqlColumn AddColumn(ISqlExpression expr)

Parameters

expr ISqlExpression

Returns

SqlColumn

AddNew(ISqlExpression, string?)

public int AddNew(ISqlExpression expr, string? alias = null)

Parameters

expr ISqlExpression
alias string

Returns

int

AddNewColumn(ISqlExpression)

public SqlColumn AddNewColumn(ISqlExpression expr)

Parameters

expr ISqlExpression

Returns

SqlColumn

Expr(ISqlExpression)

public SqlSelectClause Expr(ISqlExpression expr)

Parameters

expr ISqlExpression

Returns

SqlSelectClause

Expr(ISqlExpression, string)

public SqlSelectClause Expr(ISqlExpression expr, string alias)

Parameters

expr ISqlExpression
alias string

Returns

SqlSelectClause

Expr(string, params ISqlExpression[])

public SqlSelectClause Expr(string expr, params ISqlExpression[] values)

Parameters

expr string
values ISqlExpression[]

Returns

SqlSelectClause

Expr(string, int, params ISqlExpression[])

public SqlSelectClause Expr(string expr, int priority, params ISqlExpression[] values)

Parameters

expr string
priority int
values ISqlExpression[]

Returns

SqlSelectClause

Expr(string, string, int, params ISqlExpression[])

public SqlSelectClause Expr(string alias, string expr, int priority, params ISqlExpression[] values)

Parameters

alias string
expr string
priority int
values ISqlExpression[]

Returns

SqlSelectClause

Expr(Type, string, params ISqlExpression[])

public SqlSelectClause Expr(Type systemType, string expr, params ISqlExpression[] values)

Parameters

systemType Type
expr string
values ISqlExpression[]

Returns

SqlSelectClause

Expr(Type, string, int, params ISqlExpression[])

public SqlSelectClause Expr(Type systemType, string expr, int priority, params ISqlExpression[] values)

Parameters

systemType Type
expr string
priority int
values ISqlExpression[]

Returns

SqlSelectClause

Expr(Type, string, string, int, params ISqlExpression[])

public SqlSelectClause Expr(Type systemType, string alias, string expr, int priority, params ISqlExpression[] values)

Parameters

systemType Type
alias string
expr string
priority int
values ISqlExpression[]

Returns

SqlSelectClause

ExprNew(ISqlExpression)

public SqlSelectClause ExprNew(ISqlExpression expr)

Parameters

expr ISqlExpression

Returns

SqlSelectClause

Expr<T>(ISqlExpression, string, ISqlExpression)

public SqlSelectClause Expr<T>(ISqlExpression expr1, string operation, ISqlExpression expr2)

Parameters

expr1 ISqlExpression
operation string
expr2 ISqlExpression

Returns

SqlSelectClause

Type Parameters

T

Expr<T>(ISqlExpression, string, ISqlExpression, int)

public SqlSelectClause Expr<T>(ISqlExpression expr1, string operation, ISqlExpression expr2, int priority)

Parameters

expr1 ISqlExpression
operation string
expr2 ISqlExpression
priority int

Returns

SqlSelectClause

Type Parameters

T

Expr<T>(string, ISqlExpression, string, ISqlExpression, int)

public SqlSelectClause Expr<T>(string alias, ISqlExpression expr1, string operation, ISqlExpression expr2, int priority)

Parameters

alias string
expr1 ISqlExpression
operation string
expr2 ISqlExpression
priority int

Returns

SqlSelectClause

Type Parameters

T

Field(SqlField)

public SqlSelectClause Field(SqlField field)

Parameters

field SqlField

Returns

SqlSelectClause

Field(SqlField, string)

public SqlSelectClause Field(SqlField field, string alias)

Parameters

field SqlField
alias string

Returns

SqlSelectClause

Skip(ISqlExpression)

public SqlSelectClause Skip(ISqlExpression value)

Parameters

value ISqlExpression

Returns

SqlSelectClause

Skip(int)

public SqlSelectClause Skip(int value)

Parameters

value int

Returns

SqlSelectClause

SubQuery(SelectQuery)

public SqlSelectClause SubQuery(SelectQuery subQuery)

Parameters

subQuery SelectQuery

Returns

SqlSelectClause

SubQuery(SelectQuery, string)

public SqlSelectClause SubQuery(SelectQuery selectQuery, string alias)

Parameters

selectQuery SelectQuery
alias string

Returns

SqlSelectClause

Take(ISqlExpression?, TakeHints?)

public SqlSelectClause Take(ISqlExpression? value, TakeHints? hints)

Parameters

value ISqlExpression
hints TakeHints?

Returns

SqlSelectClause

Take(int, TakeHints?)

public SqlSelectClause Take(int value, TakeHints? hints)

Parameters

value int
hints TakeHints?

Returns

SqlSelectClause