Class SqlStatement
Inheritance
System.Object
SqlStatement
Assembly: linq2db.dll
Syntax
public abstract class SqlStatement : object, IQueryElement, ISqlExpressionWalkable
Properties
|
Improve this Doc
View Source
DebugSqlText
Declaration
protected string DebugSqlText { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ElementType
Declaration
public abstract QueryElementType ElementType { get; }
Property Value
|
Improve this Doc
View Source
IsParameterDependent
Declaration
public abstract bool IsParameterDependent { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ParentStatement
Used internally for SQL Builder
Declaration
public SqlStatement ParentStatement { get; set; }
Property Value
|
Improve this Doc
View Source
QueryType
Declaration
public abstract QueryType QueryType { get; }
Property Value
|
Improve this Doc
View Source
SelectQuery
Declaration
public abstract SelectQuery SelectQuery { get; set; }
Property Value
|
Improve this Doc
View Source
SqlQueryExtensions
Declaration
public List<SqlQueryExtension>? SqlQueryExtensions { get; set; }
Property Value
|
Improve this Doc
View Source
SqlText
Declaration
public string SqlText { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Tag
Declaration
public SqlComment Tag { get; }
Property Value
Methods
|
Improve this Doc
View Source
CollectParameters()
Declaration
public SqlParameter[] CollectParameters()
Returns
|
Improve this Doc
View Source
GetTableSource(ISqlTableSource)
Declaration
public abstract ISqlTableSource GetTableSource(ISqlTableSource table)
Parameters
Returns
|
Improve this Doc
View Source
IsDependedOn(SqlTable)
Indicates when optimizer can not remove reference for particular table
Declaration
public virtual bool IsDependedOn(SqlTable table)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
PrepareQueryAndAliases(SqlStatement, AliasesContext, out AliasesContext)
Declaration
public static void PrepareQueryAndAliases(SqlStatement statement, AliasesContext prevAliasContext, out AliasesContext newAliasContext)
Parameters
|
Improve this Doc
View Source
ToString(StringBuilder, Dictionary<IQueryElement, IQueryElement>)
Declaration
public abstract StringBuilder ToString(StringBuilder sb, Dictionary<IQueryElement, IQueryElement> dic)
Parameters
Returns
Type |
Description |
StringBuilder |
|
|
Improve this Doc
View Source
Walk<TContext>(WalkOptions, TContext, Func<TContext, ISqlExpression, ISqlExpression>)
Declaration
public virtual ISqlExpression Walk<TContext>(WalkOptions options, TContext context, Func<TContext, ISqlExpression, ISqlExpression> func)
Parameters
Returns
Type Parameters
Name |
Description |
TContext |
|
|
Improve this Doc
View Source
WalkQueries<TContext>(TContext, Func<TContext, SelectQuery, SelectQuery>)
Declaration
public abstract void WalkQueries<TContext>(TContext context, Func<TContext, SelectQuery, SelectQuery> func)
Parameters
Type Parameters
Name |
Description |
TContext |
|
Implements
Extension Methods