SqlServerQuerySqlGenerator SqlServerQuerySqlGenerator Class

Definition

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public class SqlServerQuerySqlGenerator : DefaultQuerySqlGenerator, ISqlExpressionVisitor, IQuerySqlGenerator, ISqlServerExpressionVisitor
Public Class SqlServerQuerySqlGenerator
    Inherits DefaultQuerySqlGenerator
    Implements ISqlExpressionVisitor, IQuerySqlGenerator, ISqlServerExpressionVisitor
Inheritance
System.ObjectSystem.Object
SqlServerQuerySqlGeneratorSqlServerQuerySqlGenerator
Implements

Constructors

SqlServerQuerySqlGenerator(IRelationalCommandBuilderFactory, ISqlGenerationHelper, IParameterNameGeneratorFactory, IRelationalTypeMapper, SelectExpression) SqlServerQuerySqlGenerator(IRelationalCommandBuilderFactory, ISqlGenerationHelper, IParameterNameGeneratorFactory, IRelationalTypeMapper, SelectExpression)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public SqlServerQuerySqlGenerator(IRelationalCommandBuilderFactory relationalCommandBuilderFactory, ISqlGenerationHelper sqlGenerationHelper, IParameterNameGeneratorFactory parameterNameGeneratorFactory, IRelationalTypeMapper relationalTypeMapper, SelectExpression selectExpression)
Public Sub New(relationalCommandBuilderFactory As IRelationalCommandBuilderFactory, sqlGenerationHelper As ISqlGenerationHelper, parameterNameGeneratorFactory As IParameterNameGeneratorFactory, relationalTypeMapper As IRelationalTypeMapper, selectExpression As SelectExpression)
Parameters

Methods

CreateUnhandledItemException(T, String) CreateUnhandledItemException(Of T)(T, String)

Inherited from DefaultQuerySqlGenerator

CreateValueBufferFactory(IRelationalValueBufferFactoryFactory, DbDataReader) CreateValueBufferFactory(IRelationalValueBufferFactoryFactory, DbDataReader)

Creates a relational value buffer factory.

(Inherited from DefaultQuerySqlGenerator)

ExtractNonNullExpressionValues(IReadOnlyList) ExtractNonNullExpressionValues(IReadOnlyList(Of Expression))

Extracts the non null expression values from a list of expressions.

(Inherited from DefaultQuerySqlGenerator)

GenerateBinaryOperator(ExpressionType) GenerateBinaryOperator(ExpressionType)

Generates SQL for a given binary operation type.

(Inherited from DefaultQuerySqlGenerator)

GenerateFromSql(String, Expression, IReadOnlyDictionary) GenerateFromSql(String, Expression, IReadOnlyDictionary(Of String, Object))

Generate SQL corresponding to a FromSql query.

(Inherited from DefaultQuerySqlGenerator)

GenerateLimitOffset(SelectExpression) GenerateLimitOffset(SelectExpression)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

protected override void GenerateLimitOffset(SelectExpression selectExpression)
Protected Overrides Sub GenerateLimitOffset(selectExpression As SelectExpression)
Parameters
Overrides

GenerateOperator(Expression) GenerateOperator(Expression)

Generates an SQL operator for a given expression.

(Inherited from DefaultQuerySqlGenerator)

GenerateOrderBy(IReadOnlyList) GenerateOrderBy(IReadOnlyList(Of Ordering))

Generates the ORDER BY SQL.

(Inherited from DefaultQuerySqlGenerator)

GenerateSql(IReadOnlyDictionary) GenerateSql(IReadOnlyDictionary(Of String, Object))

Generates SQL for the given parameter values.

(Inherited from DefaultQuerySqlGenerator)

GenerateTop(SelectExpression) GenerateTop(SelectExpression)

Generates the TOP part of the SELECT statement,

(Inherited from DefaultQuerySqlGenerator)

InferTypeMappingFromColumn(Expression) InferTypeMappingFromColumn(Expression)

Infers a type mapping from a column expression.

(Inherited from DefaultQuerySqlGenerator)

ProcessInExpressionValues(IEnumerable) ProcessInExpressionValues(IEnumerable(Of Expression))

Process the InExpression values.

(Inherited from DefaultQuerySqlGenerator)

TryGenerateBinaryOperator(ExpressionType, String) TryGenerateBinaryOperator(ExpressionType, String)

Attempts to generate binary operator for a given expression type.

(Inherited from DefaultQuerySqlGenerator)

VisitAlias(AliasExpression) VisitAlias(AliasExpression)

Visits an AliasExpression.

(Inherited from DefaultQuerySqlGenerator)

VisitBinary(BinaryExpression) VisitBinary(BinaryExpression)

Visit a BinaryExpression.

(Inherited from DefaultQuerySqlGenerator)

VisitColumn(ColumnExpression) VisitColumn(ColumnExpression)

Visits a ColumnExpression.

(Inherited from DefaultQuerySqlGenerator)

VisitConditional(ConditionalExpression) VisitConditional(ConditionalExpression)

Visit a ConditionalExpression.

(Inherited from DefaultQuerySqlGenerator)

VisitConstant(ConstantExpression) VisitConstant(ConstantExpression)

Visits a ConstantExpression.

(Inherited from DefaultQuerySqlGenerator)

VisitCount(CountExpression) VisitCount(CountExpression)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public override Expression VisitCount(CountExpression countExpression)
Public Overrides Function VisitCount(countExpression As CountExpression) As Expression
Parameters
Returns
System.Linq.Expressions.Expression System.Linq.Expressions.Expression
Overrides

VisitCrossJoin(CrossJoinExpression) VisitCrossJoin(CrossJoinExpression)

Visit a CrossJoin expression.

(Inherited from DefaultQuerySqlGenerator)

VisitDatePartExpression(DatePartExpression) VisitDatePartExpression(DatePartExpression)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual Expression VisitDatePartExpression(DatePartExpression datePartExpression)
Public Overridable Function VisitDatePartExpression(datePartExpression As DatePartExpression) As Expression
Parameters
Returns
System.Linq.Expressions.Expression System.Linq.Expressions.Expression

VisitExists(ExistsExpression) VisitExists(ExistsExpression)

Visit an ExistsExpression.

(Inherited from DefaultQuerySqlGenerator)

VisitExplicitCast(ExplicitCastExpression) VisitExplicitCast(ExplicitCastExpression)

Visit a SQL ExplicitCastExpression.

(Inherited from DefaultQuerySqlGenerator)

VisitFromSql(FromSqlExpression) VisitFromSql(FromSqlExpression)

Visit a FromSqlExpression.

(Inherited from DefaultQuerySqlGenerator)

VisitIn(InExpression) VisitIn(InExpression)

Visit an InExpression.

(Inherited from DefaultQuerySqlGenerator)

VisitInnerJoin(InnerJoinExpression) VisitInnerJoin(InnerJoinExpression)

Visit an InnerJoinExpression.

(Inherited from DefaultQuerySqlGenerator)

VisitIsNotNull(IsNullExpression) VisitIsNotNull(IsNullExpression)

Visits an IsNotNullExpression.

(Inherited from DefaultQuerySqlGenerator)

VisitIsNull(IsNullExpression) VisitIsNull(IsNullExpression)

Visits an IsNullExpression.

(Inherited from DefaultQuerySqlGenerator)

VisitLateralJoin(LateralJoinExpression) VisitLateralJoin(LateralJoinExpression)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public override Expression VisitLateralJoin(LateralJoinExpression lateralJoinExpression)
Public Overrides Function VisitLateralJoin(lateralJoinExpression As LateralJoinExpression) As Expression
Parameters
Returns
System.Linq.Expressions.Expression System.Linq.Expressions.Expression
Overrides

VisitLeftOuterJoin(LeftOuterJoinExpression) VisitLeftOuterJoin(LeftOuterJoinExpression)

Visit an LeftOuterJoinExpression.

(Inherited from DefaultQuerySqlGenerator)

VisitLike(LikeExpression) VisitLike(LikeExpression)

Visit a LikeExpression.

(Inherited from DefaultQuerySqlGenerator)

VisitMax(MaxExpression) VisitMax(MaxExpression)

Visit a MaxExpression.

(Inherited from DefaultQuerySqlGenerator)

VisitMin(MinExpression) VisitMin(MinExpression)

Visit a MinExpression.

(Inherited from DefaultQuerySqlGenerator)

VisitNotIn(InExpression) VisitNotIn(InExpression)

Visit a negated InExpression.

(Inherited from DefaultQuerySqlGenerator)

VisitParameter(ParameterExpression) VisitParameter(ParameterExpression)

Visits a ParameterExpression.

(Inherited from DefaultQuerySqlGenerator)

VisitProjection(IReadOnlyList) VisitProjection(IReadOnlyList(Of Expression))

Visit the projection.

(Inherited from DefaultQuerySqlGenerator)

VisitPropertyParameter(PropertyParameterExpression) VisitPropertyParameter(PropertyParameterExpression)

Visits a PropertyParameterExpression.

(Inherited from DefaultQuerySqlGenerator)

VisitRowNumber(RowNumberExpression) VisitRowNumber(RowNumberExpression)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual Expression VisitRowNumber(RowNumberExpression rowNumberExpression)
Public Overridable Function VisitRowNumber(rowNumberExpression As RowNumberExpression) As Expression
Parameters
Returns
System.Linq.Expressions.Expression System.Linq.Expressions.Expression

VisitSelect(SelectExpression) VisitSelect(SelectExpression)

Visit a top-level SelectExpression.

(Inherited from DefaultQuerySqlGenerator)

VisitSqlFunction(SqlFunctionExpression) VisitSqlFunction(SqlFunctionExpression)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public override Expression VisitSqlFunction(SqlFunctionExpression sqlFunctionExpression)
Public Overrides Function VisitSqlFunction(sqlFunctionExpression As SqlFunctionExpression) As Expression
Parameters
Returns
System.Linq.Expressions.Expression System.Linq.Expressions.Expression
Overrides

VisitStringCompare(StringCompareExpression) VisitStringCompare(StringCompareExpression)

Visit a StringCompareExpression.

(Inherited from DefaultQuerySqlGenerator)

VisitSum(SumExpression) VisitSum(SumExpression)

Visit a SumExpression.

(Inherited from DefaultQuerySqlGenerator)

VisitTable(TableExpression) VisitTable(TableExpression)

Visit a TableExpression.

(Inherited from DefaultQuerySqlGenerator)

VisitUnary(UnaryExpression) VisitUnary(UnaryExpression)

Visits a UnaryExpression.

(Inherited from DefaultQuerySqlGenerator)

Properties

ConcatOperator ConcatOperator

The default string concatenation operator SQL.

(Inherited from DefaultQuerySqlGenerator)

IsCacheable IsCacheable

Gets or sets a value indicating whether this SQL query is cacheable.

(Inherited from DefaultQuerySqlGenerator)

ParameterValues ParameterValues

Gets the parameter values.

(Inherited from DefaultQuerySqlGenerator)

SelectExpression SelectExpression

Gets the select expression.

(Inherited from DefaultQuerySqlGenerator)

Sql Sql

The generated SQL.

(Inherited from DefaultQuerySqlGenerator)

SqlGenerator SqlGenerator

Gets the SQL generation helper.

(Inherited from DefaultQuerySqlGenerator)

TypedFalseLiteral TypedFalseLiteral

The default false literal SQL.

(Inherited from DefaultQuerySqlGenerator)

TypedTrueLiteral TypedTrueLiteral

The default true literal SQL.

(Inherited from DefaultQuerySqlGenerator)