5 implementations of ISqlFragment
System.Data.Entity (5)
System\Data\SqlClient\SqlGen\SqlBuilder.cs (1)
27
internal class SqlBuilder :
ISqlFragment
System\Data\SqlClient\SqlGen\SqlSelectStatement.cs (1)
51
internal sealed class SqlSelectStatement :
ISqlFragment
System\Data\SqlClient\SqlGen\Symbol.cs (1)
39
internal class Symbol :
ISqlFragment
System\Data\SqlClient\SqlGen\SymbolPair.cs (1)
37
class SymbolPair :
ISqlFragment
System\Data\SqlClient\SqlGen\TopClause.cs (1)
27
class TopClause :
ISqlFragment
121 references to ISqlFragment
System.Data.Entity (121)
System\Data\SqlClient\SqlGen\SqlBuilder.cs (2)
93
ISqlFragment
sqlFragment = (o as
ISqlFragment
);
System\Data\SqlClient\SqlGen\SqlFunctionCallHandler.cs (51)
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)
639
private static
ISqlFragment
WrapWithCast(string returnType, Action<SqlBuilder> toWrap)
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)
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)
1541
private static
ISqlFragment
HandleCanonicalFunctionContains(SqlGenerator sqlgen, DbFunctionExpression e)
1584
private static
ISqlFragment
HandleCanonicalFunctionStartsWith(SqlGenerator sqlgen, DbFunctionExpression e)
1628
private static
ISqlFragment
HandleCanonicalFunctionEndsWith(SqlGenerator sqlgen, DbFunctionExpression e)
1678
private static
ISqlFragment
WrapPredicate(Func<SqlGenerator, IList<DbExpression>, SqlBuilder, SqlBuilder> predicateTranslator, SqlGenerator sqlgen, DbFunctionExpression e)
System\Data\SqlClient\SqlGen\SqlGenerator.cs (65)
34
/// fragments for the various nodes in the tree <see cref="
ISqlFragment
"/>.
208
internal sealed class SqlGenerator : DbExpressionVisitor<
ISqlFragment
>
521
ISqlFragment
result;
560
private string WriteSql(
ISqlFragment
sqlStatement)
579
public override
ISqlFragment
Visit(DbAndExpression e)
590
public override
ISqlFragment
Visit(DbApplyExpression e)
625
public override
ISqlFragment
Visit(DbArithmeticExpression e)
667
public override
ISqlFragment
Visit(DbCaseExpression e)
699
public override
ISqlFragment
Visit(DbCastExpression e)
723
public override
ISqlFragment
Visit(DbComparisonExpression e)
903
private
ISqlFragment
VisitConstant(DbConstantExpression e, bool isCastOptional)
1155
public override
ISqlFragment
Visit(DbConstantExpression e)
1165
public override
ISqlFragment
Visit(DbDerefExpression e)
1177
public override
ISqlFragment
Visit(DbDistinctExpression e)
1199
public override
ISqlFragment
Visit(DbElementExpression e)
1216
public override
ISqlFragment
Visit(DbExceptExpression e)
1228
public override
ISqlFragment
Visit(DbExpression e)
1240
public override
ISqlFragment
Visit(DbScanExpression e)
1321
public override
ISqlFragment
Visit(DbFilterExpression e)
1341
public override
ISqlFragment
Visit(DbFunctionExpression e)
1346
public override
ISqlFragment
Visit(DbLambdaExpression expression)
1356
public override
ISqlFragment
Visit(DbEntityRefExpression e)
1366
public override
ISqlFragment
Visit(DbRefKeyExpression e)
1416
public override
ISqlFragment
Visit(DbGroupByExpression e)
1471
ISqlFragment
keySql = key.Accept(this);
1516
ISqlFragment
translatedAggregateArgument = aggregate.Arguments[0].Accept(this);
1541
ISqlFragment
aggregateResult = VisitAggregate(aggregate, aggregateArgument);
1565
public override
ISqlFragment
Visit(DbIntersectExpression e)
1581
public override
ISqlFragment
Visit(DbIsEmptyExpression e)
1594
public override
ISqlFragment
Visit(DbIsNullExpression e)
1604
public override
ISqlFragment
Visit(DbIsOfExpression e)
1614
public override
ISqlFragment
Visit(DbCrossJoinExpression e)
1624
public override
ISqlFragment
Visit(DbJoinExpression e)
1661
public override
ISqlFragment
Visit(DbLikeExpression e)
1690
public override
ISqlFragment
Visit(DbLimitExpression e)
1706
ISqlFragment
topCount = HandleCountExpression(e.Limit) ;
1759
public override
ISqlFragment
Visit(DbNewInstanceExpression e)
1780
public override
ISqlFragment
Visit(DbNotExpression e)
1830
public override
ISqlFragment
Visit(DbNullExpression e)
1866
public override
ISqlFragment
Visit(DbOfTypeExpression e)
1878
public override
ISqlFragment
Visit(DbOrExpression e)
1880
ISqlFragment
result = null;
1896
private bool TryTranslateIntoIn(DbOrExpression e, out
ISqlFragment
sqlFragment)
2200
public override
ISqlFragment
Visit(DbParameterReferenceExpression e)
2231
public override
ISqlFragment
Visit(DbProjectExpression e)
2303
public override
ISqlFragment
Visit(DbPropertyExpression e)
2307
ISqlFragment
instanceSql = e.Instance.Accept(this);
2395
public override
ISqlFragment
Visit(DbQuantifierExpression e)
2427
public override
ISqlFragment
Visit(DbRefExpression e)
2437
public override
ISqlFragment
Visit(DbRelationshipNavigationExpression e)
2454
public override
ISqlFragment
Visit(DbSkipExpression e)
2560
public override
ISqlFragment
Visit(DbSortExpression e)
2590
public override
ISqlFragment
Visit(DbTreatExpression e)
2605
public override
ISqlFragment
Visit(DbUnionAllExpression e)
2619
public override
ISqlFragment
Visit(DbVariableReferenceExpression e)
2846
ISqlFragment
sqlFragment = inputExpression.Accept(this);
2911
private
ISqlFragment
VisitCollectionConstructor(DbNewInstanceExpression e)
3017
private
ISqlFragment
VisitJoinExpression(IList<DbExpressionBinding> inputs, DbExpressionKind joinKind,
3067
ISqlFragment
fromExtentFragment = input.Expression.Accept(this);
3134
private void ProcessJoinInputResult(
ISqlFragment
fromExtentFragment, SqlSelectStatement result,
3257
private
ISqlFragment
VisitNewInstanceExpression(DbNewInstanceExpression e, bool aliasesNeedRenaming, out Dictionary<string, Symbol> newColumns)
3319
private
ISqlFragment
VisitSetOpExpression(DbExpression left, DbExpression right, string separator)
3893
private
ISqlFragment
HandleCountExpression(DbExpression e)
3895
ISqlFragment
result;
4196
private static void WrapNonQueryExtent(SqlSelectStatement result,
ISqlFragment
sqlFragment, DbExpressionKind expressionKind)
System\Data\SqlClient\SqlGen\TopClause.cs (3)
29
ISqlFragment
topCount;
43
internal
ISqlFragment
TopCount
53
internal TopClause(
ISqlFragment
topCount, bool withTies)