2 instantiations of SqlGenerator
System.Data.Entity (2)
System\Data\SqlClient\SqlGen\SqlGenerator.cs (2)
418
sqlGen = new
SqlGenerator
(sqlVersion);
431
sqlGen = new
SqlGenerator
(sqlVersion);
94 references to SqlGenerator
System.Data.Entity (94)
System\Data\SqlClient\SqlGen\DmlSqlGenerator.cs (3)
135
string columnType =
SqlGenerator
.GenerateSqlForStoreType(sqlVersion, column.TypeUsage);
283
sql =
SqlGenerator
.QuoteIdentifier(member.Name);
591
_commandText.Append(
SqlGenerator
.GetTargetTSql(expression.Target));
System\Data\SqlClient\SqlGen\ISqlFragment.cs (1)
44
void WriteSql(SqlWriter writer,
SqlGenerator
sqlGenerator);
System\Data\SqlClient\SqlGen\JoinSymbol.cs (2)
26
/// symbol represents a sql select statement. This is set by <see cref="
SqlGenerator
.AddDefaultColumns"/>. </item>
32
/// This is used by <see cref="
SqlGenerator
.Visit(DbPropertyExpression)"/> to flatten
System\Data\SqlClient\SqlGen\OptionalColumn.cs (2)
17
/// Such columns get added by <see cref="
SqlGenerator
.AddDefaultColumns"/>.
64
public bool WriteSqlIfUsed(SqlWriter writer,
SqlGenerator
sqlGenerator, string separator)
System\Data\SqlClient\SqlGen\SqlBuilder.cs (2)
65
/// Whether the builder is empty. This is used by the <see cref="
SqlGenerator
.Visit(DbProjectExpression)"/>
80
public virtual void WriteSql(SqlWriter writer,
SqlGenerator
sqlGenerator)
System\Data\SqlClient\SqlGen\SqlFunctionCallHandler.cs (62)
94
private delegate ISqlFragment FunctionHandler(
SqlGenerator
sqlgen, DbFunctionExpression functionExpr);
447
private static ISqlFragment HandleSpatialFromTextFunction(
SqlGenerator
sqlgen, DbFunctionExpression functionExpression)
464
private static ISqlFragment HandleSpatialFromGmlFunction(
SqlGenerator
sqlgen, DbFunctionExpression functionExpression)
469
private static ISqlFragment HandleSpatialFromBinaryFunction(
SqlGenerator
sqlgen, DbFunctionExpression functionExpression)
477
private static ISqlFragment HandleSpatialStaticMethodFunctionAppendSrid(
SqlGenerator
sqlgen, DbFunctionExpression functionExpression, string functionName)
495
internal static ISqlFragment GenerateFunctionCallSql(
SqlGenerator
sqlgen, DbFunctionExpression functionExpression)
577
private static ISqlFragment HandleFunctionDefault(
SqlGenerator
sqlgen, DbFunctionExpression e)
589
private static ISqlFragment HandleFunctionDefaultGivenName(
SqlGenerator
sqlgen, DbFunctionExpression e, string functionName)
622
private static ISqlFragment HandleFunctionDefaultCastReturnValue(
SqlGenerator
sqlgen, DbFunctionExpression e, string functionName, string returnType)
666
private static void HandleFunctionArgumentsDefault(
SqlGenerator
sqlgen, DbFunctionExpression e, SqlBuilder result)
681
private static void WriteFunctionArguments(
SqlGenerator
sqlgen, IEnumerable<DbExpression> functionArguments, SqlBuilder result)
701
private static ISqlFragment HandleFunctionGivenNameBasedOnVersion(
SqlGenerator
sqlgen, DbFunctionExpression e, string preKatmaiName, string katmaiName)
715
private static ISqlFragment HandleSpecialStoreFunction(
SqlGenerator
sqlgen, DbFunctionExpression e)
725
private static ISqlFragment HandleSpecialCanonicalFunction(
SqlGenerator
sqlgen, DbFunctionExpression e)
736
private static ISqlFragment HandleSpecialFunction(Dictionary<string, FunctionHandler> handlers,
SqlGenerator
sqlgen, DbFunctionExpression e)
742
private static ISqlFragment HandleSpatialCanonicalFunction(
SqlGenerator
sqlgen, DbFunctionExpression functionExpression, PrimitiveTypeKind spatialTypeKind)
755
private static ISqlFragment HandleSpatialCanonicalFunction(
SqlGenerator
sqlgen,
792
private static ISqlFragment WriteInstanceFunctionCall(
SqlGenerator
sqlgen, string functionName, DbFunctionExpression functionExpression, bool isPropertyAccess)
797
private static ISqlFragment WriteInstanceFunctionCall(
SqlGenerator
sqlgen, string functionName, DbFunctionExpression functionExpression, bool isPropertyAccess, string castReturnTypeTo)
837
private static ISqlFragment HandleSpecialFunctionToOperator(
SqlGenerator
sqlgen, DbFunctionExpression e, bool parenthesiseArguments)
877
private static ISqlFragment HandleConcatFunction(
SqlGenerator
sqlgen, DbFunctionExpression e)
888
private static ISqlFragment HandleCanonicalFunctionBitwise(
SqlGenerator
sqlgen, DbFunctionExpression e)
901
private static ISqlFragment HandleDatepartDateFunction(
SqlGenerator
sqlgen, DbFunctionExpression e)
958
private static ISqlFragment HandleCanonicalFunctionDatepart(
SqlGenerator
sqlgen, DbFunctionExpression e)
970
private static ISqlFragment HandleCanonicalFunctionGetTotalOffsetMinutes(
SqlGenerator
sqlgen, DbFunctionExpression e)
982
private static ISqlFragment HandleCanonicalFunctionDatepart(
SqlGenerator
sqlgen, string datepart, DbFunctionExpression e)
1005
private static ISqlFragment HandleCanonicalFunctionCurrentDateTime(
SqlGenerator
sqlgen, DbFunctionExpression e)
1018
private static ISqlFragment HandleCanonicalFunctionCurrentUtcDateTime(
SqlGenerator
sqlgen, DbFunctionExpression e)
1031
private static ISqlFragment HandleCanonicalFunctionCurrentDateTimeOffset(
SqlGenerator
sqlgen, DbFunctionExpression e)
1045
private static ISqlFragment HandleCanonicalFunctionCreateDateTime(
SqlGenerator
sqlgen, DbFunctionExpression e)
1059
private static ISqlFragment HandleCanonicalFunctionCreateDateTimeOffset(
SqlGenerator
sqlgen, DbFunctionExpression e)
1073
private static ISqlFragment HandleCanonicalFunctionCreateTime(
SqlGenerator
sqlgen, DbFunctionExpression e)
1106
private static ISqlFragment HandleCanonicalFunctionDateTimeTypeCreation(
SqlGenerator
sqlgen, string typeName, IList<DbExpression> args, bool hasDatePart, bool hasTimeZonePart)
1194
private static void AppendConvertToVarchar(
SqlGenerator
sqlgen, SqlBuilder result, DbExpression e)
1214
private static ISqlFragment HandleCanonicalFunctionTruncateTime(
SqlGenerator
sqlgen, DbFunctionExpression e)
1262
private static ISqlFragment HandleCanonicalFunctionDateAddKatmaiOrNewer(
SqlGenerator
sqlgen, DbFunctionExpression e)
1276
private static ISqlFragment HandleCanonicalFunctionDateAdd(
SqlGenerator
sqlgen, DbFunctionExpression e)
1297
private static ISqlFragment HandleCanonicalFunctionDateDiffKatmaiOrNewer(
SqlGenerator
sqlgen, DbFunctionExpression e)
1311
private static ISqlFragment HandleCanonicalFunctionDateDiff(
SqlGenerator
sqlgen, DbFunctionExpression e)
1332
private static ISqlFragment HandleCanonicalFunctionIndexOf(
SqlGenerator
sqlgen, DbFunctionExpression e)
1343
private static ISqlFragment HandleCanonicalFunctionNewGuid(
SqlGenerator
sqlgen, DbFunctionExpression e)
1354
private static ISqlFragment HandleCanonicalFunctionLength(
SqlGenerator
sqlgen, DbFunctionExpression e)
1370
private static ISqlFragment HandleCanonicalFunctionRound(
SqlGenerator
sqlgen, DbFunctionExpression e)
1382
private static ISqlFragment HandleCanonicalFunctionTruncate(
SqlGenerator
sqlgen, DbFunctionExpression e)
1393
private static ISqlFragment HandleCanonicalFunctionRoundOrTruncate(
SqlGenerator
sqlgen, DbFunctionExpression e, bool round)
1445
private static ISqlFragment HandleCanonicalFunctionAbs(
SqlGenerator
sqlgen, DbFunctionExpression e)
1466
private static ISqlFragment HandleCanonicalFunctionTrim(
SqlGenerator
sqlgen, DbFunctionExpression e)
1486
private static ISqlFragment HandleCanonicalFunctionToLower(
SqlGenerator
sqlgen, DbFunctionExpression e)
1497
private static ISqlFragment HandleCanonicalFunctionToUpper(
SqlGenerator
sqlgen, DbFunctionExpression e)
1512
private static void TranslateConstantParameterForLike(
SqlGenerator
sqlgen, DbExpression targetExpression, DbConstantExpression constSearchParamExpression, SqlBuilder result, bool insertPercentStart, bool insertPercentEnd)
1541
private static ISqlFragment HandleCanonicalFunctionContains(
SqlGenerator
sqlgen, DbFunctionExpression e)
1553
private static SqlBuilder HandleCanonicalFunctionContains(
SqlGenerator
sqlgen, IList<DbExpression> args, SqlBuilder result)
1584
private static ISqlFragment HandleCanonicalFunctionStartsWith(
SqlGenerator
sqlgen, DbFunctionExpression e)
1596
private static SqlBuilder HandleCanonicalFunctionStartsWith(
SqlGenerator
sqlgen, IList<DbExpression> args, SqlBuilder result)
1628
private static ISqlFragment HandleCanonicalFunctionEndsWith(
SqlGenerator
sqlgen, DbFunctionExpression e)
1640
private static SqlBuilder HandleCanonicalFunctionEndsWith(
SqlGenerator
sqlgen, IList<DbExpression> args, SqlBuilder result)
1678
private static ISqlFragment WrapPredicate(Func<
SqlGenerator
, IList<DbExpression>, SqlBuilder, SqlBuilder> predicateTranslator,
SqlGenerator
sqlgen, DbFunctionExpression e)
1724
result.Append(
SqlGenerator
.QuoteIdentifier(function.NamespaceName));
1728
result.Append(
SqlGenerator
.QuoteIdentifier(function.Schema));
1731
result.Append(
SqlGenerator
.QuoteIdentifier(storeFunctionName));
1761
private static bool CastReturnTypeToInt32(
SqlGenerator
sqlgen, DbFunctionExpression e)
System\Data\SqlClient\SqlGen\SqlGenerator.cs (9)
103
/// <see cref="
SqlGenerator
.AddDefaultColumns"/>.
123
/// <c>alias.column</c> form. <see cref="
SqlGenerator
.Visit(DbPropertyExpression)"/>
150
/// <see cref="
SqlGenerator
.Visit(DbVariableReferenceExpression)"/> to create a
410
SqlGenerator
sqlGen;
1277
builder.Append(
SqlGenerator
.QuoteIdentifier(entitySetBase.Schema));
1282
builder.Append(
SqlGenerator
.QuoteIdentifier(entitySetBase.EntityContainer.Name));
1288
builder.Append(
SqlGenerator
.QuoteIdentifier(entitySetBase.Table));
1292
builder.Append(
SqlGenerator
.QuoteIdentifier(entitySetBase.Name));
2721
foreach (DbExpression argument in
SqlGenerator
.FlattenAssociativeExpression(expressionKind, left, right))
System\Data\SqlClient\SqlGen\SqlSelectClauseBuilder.cs (2)
103
public override void WriteSql(SqlWriter writer,
SqlGenerator
sqlGenerator)
156
private bool WriteOptionalColumns(SqlWriter writer,
SqlGenerator
sqlGenerator)
System\Data\SqlClient\SqlGen\SqlSelectStatement.cs (2)
46
/// It is set by <see cref="
SqlGenerator
.Visit(DbVariableReferenceExpression)"/>.
190
public void WriteSql(SqlWriter writer,
SqlGenerator
sqlGenerator)
System\Data\SqlClient\SqlGen\Symbol.cs (3)
35
/// This allows <see cref="
SqlGenerator
.AddFromSymbol(SqlSelectStatement, string, Symbol, bool)"/> to add the column list
142
public void WriteSql(SqlWriter writer,
SqlGenerator
sqlGenerator)
169
writer.Write(
SqlGenerator
.QuoteIdentifier(this.NewName));
System\Data\SqlClient\SqlGen\SymbolPair.cs (3)
23
/// <see cref="
SqlGenerator
.Visit(DbPropertyExpression)"/>
34
/// This is returned by <see cref="
SqlGenerator
.Visit(DbPropertyExpression)"/>,
50
public void WriteSql(SqlWriter writer,
SqlGenerator
sqlGenerator)
System\Data\SqlClient\SqlGen\SymbolTable.cs (1)
33
/// Symbols represent names <see cref="
SqlGenerator
.Visit(DbVariableReferenceExpression)"/> to be resolved,
System\Data\SqlClient\SqlGen\TopClause.cs (1)
81
public void WriteSql(SqlWriter writer,
SqlGenerator
sqlGenerator)
System\Data\SqlClient\SqlProviderServices.cs (1)
101
command.CommandText = System.Data.SqlClient.SqlGen.
SqlGenerator
.GenerateSql(commandTree, sqlVersion, out parameters, out commandType, out paramsToForceNonUnicode);