383 references to DbExpressionBuilder
System.Data.Entity (379)
System\Data\Common\CommandTrees\AbstractExpressions.cs (31)
407
return ExpressionBuilder.
DbExpressionBuilder
.CreatePrimitiveNullExpression(PrimitiveTypeKind.Binary);
409
return ExpressionBuilder.
DbExpressionBuilder
.Constant(value);
426
return ExpressionBuilder.
DbExpressionBuilder
.CreatePrimitiveNullExpression(PrimitiveTypeKind.Boolean);
428
return (value.Value ? ExpressionBuilder.
DbExpressionBuilder
.True : ExpressionBuilder.
DbExpressionBuilder
.False);
445
return ExpressionBuilder.
DbExpressionBuilder
.CreatePrimitiveNullExpression(PrimitiveTypeKind.Byte);
447
return ExpressionBuilder.
DbExpressionBuilder
.Constant(value.Value);
464
return ExpressionBuilder.
DbExpressionBuilder
.CreatePrimitiveNullExpression(PrimitiveTypeKind.DateTime);
466
return ExpressionBuilder.
DbExpressionBuilder
.Constant(value.Value);
483
return ExpressionBuilder.
DbExpressionBuilder
.CreatePrimitiveNullExpression(PrimitiveTypeKind.DateTimeOffset);
485
return ExpressionBuilder.
DbExpressionBuilder
.Constant(value.Value);
502
return ExpressionBuilder.
DbExpressionBuilder
.CreatePrimitiveNullExpression(PrimitiveTypeKind.Decimal);
504
return ExpressionBuilder.
DbExpressionBuilder
.Constant(value.Value);
521
return ExpressionBuilder.
DbExpressionBuilder
.CreatePrimitiveNullExpression(PrimitiveTypeKind.Double);
523
return ExpressionBuilder.
DbExpressionBuilder
.Constant(value.Value);
540
return ExpressionBuilder.
DbExpressionBuilder
.CreatePrimitiveNullExpression(PrimitiveTypeKind.Geography);
542
return ExpressionBuilder.
DbExpressionBuilder
.Constant(value);
559
return ExpressionBuilder.
DbExpressionBuilder
.CreatePrimitiveNullExpression(PrimitiveTypeKind.Geometry);
561
return ExpressionBuilder.
DbExpressionBuilder
.Constant(value);
578
return ExpressionBuilder.
DbExpressionBuilder
.CreatePrimitiveNullExpression(PrimitiveTypeKind.Guid);
580
return ExpressionBuilder.
DbExpressionBuilder
.Constant(value.Value);
597
return ExpressionBuilder.
DbExpressionBuilder
.CreatePrimitiveNullExpression(PrimitiveTypeKind.Int16);
599
return ExpressionBuilder.
DbExpressionBuilder
.Constant(value.Value);
616
return ExpressionBuilder.
DbExpressionBuilder
.CreatePrimitiveNullExpression(PrimitiveTypeKind.Int32);
618
return ExpressionBuilder.
DbExpressionBuilder
.Constant(value.Value);
635
return ExpressionBuilder.
DbExpressionBuilder
.CreatePrimitiveNullExpression(PrimitiveTypeKind.Int64);
637
return ExpressionBuilder.
DbExpressionBuilder
.Constant(value.Value);
669
return ExpressionBuilder.
DbExpressionBuilder
.CreatePrimitiveNullExpression(PrimitiveTypeKind.Single);
671
return ExpressionBuilder.
DbExpressionBuilder
.Constant(value.Value);
688
return ExpressionBuilder.
DbExpressionBuilder
.CreatePrimitiveNullExpression(PrimitiveTypeKind.String);
690
return ExpressionBuilder.
DbExpressionBuilder
.Constant(value);
System\Data\Common\CommandTrees\DbLambda.cs (19)
66
return
DbExpressionBuilder
.Lambda(body, variables);
86
return
DbExpressionBuilder
.Lambda(body, variables);
106
return
DbExpressionBuilder
.Lambda(body, variables);
129
return
DbExpressionBuilder
.Lambda(body, variables);
154
return
DbExpressionBuilder
.Lambda(body, variables);
181
return
DbExpressionBuilder
.Lambda(body, variables);
210
return
DbExpressionBuilder
.Lambda(body, variables);
242
return
DbExpressionBuilder
.Lambda(body, variables);
276
return
DbExpressionBuilder
.Lambda(body, variables);
312
return
DbExpressionBuilder
.Lambda(body, variables);
351
return
DbExpressionBuilder
.Lambda(body, variables);
392
return
DbExpressionBuilder
.Lambda(body, variables);
435
return
DbExpressionBuilder
.Lambda(body, variables);
481
return
DbExpressionBuilder
.Lambda(body, variables);
529
return
DbExpressionBuilder
.Lambda(body, variables);
579
return
DbExpressionBuilder
.Lambda(body, variables);
632
return
DbExpressionBuilder
.Lambda(body, variables);
687
return
DbExpressionBuilder
.Lambda(body, variables);
693
string[] paramNames =
DbExpressionBuilder
.ExtractAliases(lambdaMethod);
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (73)
17
using CqtBuilder = System.Data.Common.CommandTrees.ExpressionBuilder.
DbExpressionBuilder
;
71
result =
CqtBuilder
.BindAs(newInput, binding.VariableName);
91
result =
CqtBuilder
.GroupBindAs(newInput, binding.VariableName, binding.GroupVariableName);
109
result = (clause.Ascending ?
CqtBuilder
.ToSortClause(newExpression, clause.Collation) :
CqtBuilder
.ToSortClauseDescending(newExpression, clause.Collation));
113
result = (clause.Ascending ?
CqtBuilder
.ToSortClause(newExpression) :
CqtBuilder
.ToSortClauseDescending(newExpression));
153
result =
CqtBuilder
.AggregateDistinct(newFunction, newArguments[0]);
157
result =
CqtBuilder
.Aggregate(newFunction, newArguments[0]);
174
result =
CqtBuilder
.GroupAggregate(newArguments[0]);
190
return
CqtBuilder
.Variable(newVarType, varRef.VariableName);
205
result =
CqtBuilder
.Lambda(newBody, newFormals);
305
return
CqtBuilder
.CreateRelatedEntityRef(newSource, newTarget, newTargetRef);
390
return VisitTerminal(expression, newType =>
CqtBuilder
.Constant(newType, expression.GetValue()));
397
return VisitTerminal(expression,
CqtBuilder
.Null);
418
return VisitTerminal(expression, newType =>
CqtBuilder
.Parameter(newType, expression.ParameterName));
431
result =
CqtBuilder
.Invoke(newFunction, newArguments);
449
result =
CqtBuilder
.Invoke(newLambda, newArguments);
463
result =
CqtBuilder
.Property(newInstance, expression.Property.Name);
476
return this.VisitBinary(expression,
CqtBuilder
.Equal);
479
return this.VisitBinary(expression,
CqtBuilder
.NotEqual);
482
return this.VisitBinary(expression,
CqtBuilder
.GreaterThan);
485
return this.VisitBinary(expression,
CqtBuilder
.GreaterThanOrEqual);
488
return this.VisitBinary(expression,
CqtBuilder
.LessThan);
491
return this.VisitBinary(expression,
CqtBuilder
.LessThanOrEqual);
512
result =
CqtBuilder
.Like(newArgument, newPattern, newEscape);
531
result =
CqtBuilder
.Limit(newArgument, newLimit);
546
return
CqtBuilder
.CreateIsNullExpressionAllowingRowTypeArgument(exp);
550
return
CqtBuilder
.IsNull(exp);
567
result =
CqtBuilder
.Divide(newArguments[0], newArguments[1]);
571
result =
CqtBuilder
.Minus(newArguments[0], newArguments[1]);
575
result =
CqtBuilder
.Modulo(newArguments[0], newArguments[1]);
579
result =
CqtBuilder
.Multiply(newArguments[0], newArguments[1]);
583
result =
CqtBuilder
.Plus(newArguments[0], newArguments[1]);
587
result =
CqtBuilder
.UnaryMinus(newArguments[0]);
602
return VisitBinary(expression,
CqtBuilder
.And);
609
return VisitBinary(expression,
CqtBuilder
.Or);
616
return VisitUnary(expression,
CqtBuilder
.Not);
623
return VisitUnary(expression,
CqtBuilder
.Distinct);
634
resultConstructor =
CqtBuilder
.CreateElementExpressionUnwrapSingleProperty;
638
resultConstructor =
CqtBuilder
.Element;
648
return VisitUnary(expression,
CqtBuilder
.IsEmpty);
655
return VisitBinary(expression,
CqtBuilder
.UnionAll);
662
return VisitBinary(expression,
CqtBuilder
.Intersect);
669
return VisitBinary(expression,
CqtBuilder
.Except);
676
return this.VisitTypeUnary(expression, expression.ResultType,
CqtBuilder
.TreatAs);
685
return this.VisitTypeUnary(expression, expression.OfType,
CqtBuilder
.IsOfOnly);
689
return this.VisitTypeUnary(expression, expression.OfType,
CqtBuilder
.IsOf);
697
return this.VisitTypeUnary(expression, expression.ResultType,
CqtBuilder
.CastTo);
714
result =
CqtBuilder
.Case(newWhens, newThens, newElse);
726
return this.VisitTypeUnary(expression, expression.OfType,
CqtBuilder
.OfTypeOnly);
730
return this.VisitTypeUnary(expression, expression.OfType,
CqtBuilder
.OfType);
748
result =
CqtBuilder
.CreateNewEntityWithRelationshipsExpression((EntityType)newType.EdmType, newArguments, newRefs);
755
result =
CqtBuilder
.New(newType, System.Linq.Enumerable.ToArray(newArguments));
777
result =
CqtBuilder
.RefFromKey(newSet, newArgument, newType);
798
result =
CqtBuilder
.Navigate(newNavSource, newFrom, newTo);
808
return this.VisitUnary(expression,
CqtBuilder
.Deref);
815
return this.VisitUnary(expression,
CqtBuilder
.GetRefKey);
822
return this.VisitUnary(expression,
CqtBuilder
.GetEntityRef);
834
result =
CqtBuilder
.Scan(newSet);
852
result =
CqtBuilder
.Filter(input, predicate);
870
result =
CqtBuilder
.Project(input, projection);
885
result =
CqtBuilder
.CrossJoin(newInputs);
910
result =
CqtBuilder
.InnerJoin(newLeft, newRight, newCondition);
914
result =
CqtBuilder
.LeftOuterJoin(newLeft, newRight, newCondition);
919
result =
CqtBuilder
.FullOuterJoin(newLeft, newRight, newCondition);
941
result =
CqtBuilder
.CrossApply(newInput, newApply);
946
result =
CqtBuilder
.OuterApply(newInput, newApply);
977
result =
CqtBuilder
.GroupBy(newInput, boundKeys, boundAggs);
998
result =
CqtBuilder
.Skip(newInput, newSortOrder, newCount);
1017
result =
CqtBuilder
.Sort(newInput, newSortOrder);
1038
result =
CqtBuilder
.All(input, predicate);
1043
result =
CqtBuilder
.Any(input, predicate);
System\Data\Common\CommandTrees\ExpressionBindings.cs (1)
133
_groupAggregate =
DbExpressionBuilder
.GroupAggregate(this.GroupVariable);
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (65)
84
return
DbExpressionBuilder
.BindAs(input, _bindingAliases.Next());
112
return
DbExpressionBuilder
.GroupBindAs(input, alias, string.Format(CultureInfo.InvariantCulture, "Group{0}", alias));
837
return
DbExpressionBuilder
.UnaryMinus(argument);
862
return
DbExpressionBuilder
.CreateComparison(DbExpressionKind.Equals, left, right);
877
return
DbExpressionBuilder
.CreateComparison(DbExpressionKind.NotEquals, left, right);
892
return
DbExpressionBuilder
.CreateComparison(DbExpressionKind.GreaterThan, left, right);
907
return
DbExpressionBuilder
.CreateComparison(DbExpressionKind.LessThan, left, right);
922
return
DbExpressionBuilder
.CreateComparison(DbExpressionKind.GreaterThanOrEquals, left, right);
937
return
DbExpressionBuilder
.CreateComparison(DbExpressionKind.LessThanOrEquals, left, right);
964
DbExpression escape =
DbExpressionBuilder
.Null(pattern.ResultType);
1786
DbExpressionBinding binding =
DbExpressionBuilder
.BindAs(source, alias);
1798
DbExpressionBinding leftBinding =
DbExpressionBuilder
.BindAs(left, aliases[0]);
1799
DbExpressionBinding rightBinding =
DbExpressionBuilder
.BindAs(right, aliases[1]);
1858
constantOrNullExpression =
DbExpressionBuilder
.Null(resultType);
1862
constantOrNullExpression =
DbExpressionBuilder
.Constant(resultType, value);
1900
return
DbExpressionBuilder
.NewRow(columnValues);
1911
DbExpressionBinding applyBinding =
DbExpressionBuilder
.BindAs(applyTemplate.Value, applyTemplate.Key);
1937
return
DbExpressionBuilder
.All(input, predicateExp);
1949
return
DbExpressionBuilder
.Exists(source);
1961
return
DbExpressionBuilder
.Not(
DbExpressionBuilder
.IsEmpty(argument));
1986
return
DbExpressionBuilder
.Any(input, predicateExp);
2006
return CreateApply(source, apply,
DbExpressionBuilder
.CrossApply);
2029
return CreateApply(source, apply,
DbExpressionBuilder
.OuterApply);
2068
return
DbExpressionBuilder
.FullOuterJoin(inputs[0], inputs[1], condExp);
2102
return
DbExpressionBuilder
.InnerJoin(inputs[0], inputs[1], condExp);
2136
return
DbExpressionBuilder
.LeftOuterJoin(inputs[0], inputs[1], condExp);
2171
DbExpression joinCondition =
DbExpressionBuilder
.Equal(leftOperand, rightOperand);
2173
return
DbExpressionBuilder
.InnerJoin(leftBinding, rightBinding, joinCondition);
2225
DbJoinExpression joinExpression =
DbExpressionBuilder
.Join(outer, inner, outerKey, innerKey);
2231
DbExpressionBinding joinBinding =
DbExpressionBuilder
.Bind(joinExpression);
2232
DbExpression left =
DbExpressionBuilder
.Property(joinBinding.Variable, joinExpression.Left.VariableName);
2233
DbExpression right =
DbExpressionBuilder
.Property(joinBinding.Variable, joinExpression.Right.VariableName);
2235
DbExpression projection =
DbExpressionBuilder
.ResolveToExpression(intermediateSelector);
2238
return
DbExpressionBuilder
.Project(joinBinding, projection);
2262
DbSortClause sortClause =
DbExpressionBuilder
.ToSortClause(keyExpression);
2263
return
DbExpressionBuilder
.Sort(input, new DbSortClause[] { sortClause });
2289
DbSortClause sortClause =
DbExpressionBuilder
.ToSortClause(keyExpression, collation);
2290
return
DbExpressionBuilder
.Sort(input, new DbSortClause[] { sortClause });
2314
DbSortClause sortClause =
DbExpressionBuilder
.ToSortClauseDescending(keyExpression);
2315
return
DbExpressionBuilder
.Sort(input, new DbSortClause[] { sortClause });
2341
DbSortClause sortClause =
DbExpressionBuilder
.ToSortClauseDescending(keyExpression, collation);
2342
return
DbExpressionBuilder
.Sort(input, new DbSortClause[] { sortClause });
2374
return
DbExpressionBuilder
.Project(input, projectionExp);
2398
DbExpressionBinding functorBinding =
DbExpressionBuilder
.Bind(functorResult);
2399
DbApplyExpression intermediateApply =
DbExpressionBuilder
.CrossApply(inputBinding, functorBinding);
2401
DbExpressionBinding projectionBinding =
DbExpressionBuilder
.Bind(intermediateApply);
2402
return
DbExpressionBuilder
.Project(projectionBinding,
DbExpressionBuilder
.Property(projectionBinding.Variable, functorBinding.VariableName));
2443
DbExpressionBinding functorBinding =
DbExpressionBuilder
.Bind(functorResult);
2444
DbApplyExpression intermediateApply =
DbExpressionBuilder
.CrossApply(inputBinding, functorBinding);
2446
DbExpressionBinding projectionBinding =
DbExpressionBuilder
.Bind(intermediateApply);
2447
DbExpression left =
DbExpressionBuilder
.Property(projectionBinding.Variable, inputBinding.VariableName);
2448
DbExpression right =
DbExpressionBuilder
.Property(projectionBinding.Variable, functorBinding.VariableName);
2451
return
DbExpressionBuilder
.Project(projectionBinding, projection);
2470
return
DbExpressionBuilder
.Skip(argument.Input, argument.SortOrder, count);
2487
return
DbExpressionBuilder
.Limit(argument, count);
2498
sortClause = (ascending ?
DbExpressionBuilder
.ToSortClause(sortKeyResult, collation) :
DbExpressionBuilder
.ToSortClauseDescending(sortKeyResult, collation));
2502
sortClause = (ascending ?
DbExpressionBuilder
.ToSortClause(sortKeyResult) :
DbExpressionBuilder
.ToSortClauseDescending(sortKeyResult));
2509
return
DbExpressionBuilder
.Sort(source.Input, newSortOrder);
2633
return
DbExpressionBuilder
.Filter(input, predicateExp);
2646
return
DbExpressionBuilder
.Distinct(
DbExpressionBuilder
.UnionAll(left, right));
System\Data\Common\CommandTrees\ExpressionBuilder\EdmFunctions.cs (1)
65
return
DbExpressionBuilder
.Invoke(foundFunction, arguments);
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (1)
1156
keyConstructor =
DbExpressionBuilder
.NewRow(keyColumns);
System\Data\Common\CommandTrees\ExpressionBuilder\Row.cs (3)
17
/// The Row class is intended to provide a constructor-like means of calling <see cref="
DbExpressionBuilder
.NewRow"/>.
38
/// <seealso cref="
DbExpressionBuilder
.NewRow"/>
41
return
DbExpressionBuilder
.NewRow(this.arguments);
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (3)
230
result =
DbExpressionBuilder
.Property(newInstance, endMember);
239
result =
DbExpressionBuilder
.Property(newInstance, navProp);
248
result =
DbExpressionBuilder
.Property(newInstance, prop);
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (6)
235
entityConstructor =
DbExpressionBuilder
.CreateNewEntityWithRelationshipsExpression(constructedEntityType, entityConstructor.Arguments, relatedRefs);
265
result = entityProject.Input.Project(
DbExpressionBuilder
.Case(whens, thens, constructors[conditions.Count]));
323
DbRelatedEntityRef result =
DbExpressionBuilder
.CreateRelatedEntityRef(fkConstraint.ToRole, fkConstraint.FromRole, principalRef);
483
DbExpression newDiscriminatorPredicate = Helpers.BuildBalancedTreeInPlace<DbExpression>(new List<DbExpression>(inputPredicateMap.Values), (left, right) =>
DbExpressionBuilder
.Or(left, right));
507
DbCaseExpression newEntitySelector =
DbExpressionBuilder
.Case(newWhens, newThens, newElse);
585
caseExpression =
DbExpressionBuilder
.Case(rewrittenPredicates, caseExpression.Then, caseExpression.Else);
System\Data\Common\EntitySql\SemanticAnalyzer.cs (46)
107
DbLambda lambda =
DbExpressionBuilder
.Lambda(expression, _sr.Variables.Values);
490
return
DbExpressionBuilder
.Lambda(body, functionInfo.Parameters);
588
leftExpr =
DbExpressionBuilder
.Null(rightExpr.ResultType);
593
rightExpr =
DbExpressionBuilder
.Null(leftExpr.ResultType);
615
return new ValueExpression(
DbExpressionBuilder
.Constant(GetLiteralTypeUsage(literal), literal.Value));
963
inlineFunctionCall = new ValueExpression(
DbExpressionBuilder
.Invoke(overload.GetLambda(sr), args));
1296
functionAggregate =
DbExpressionBuilder
.AggregateDistinct(functionType, args[0]);
1300
functionAggregate =
DbExpressionBuilder
.Aggregate(functionType, args[0]);
1366
args[idx] =
DbExpressionBuilder
.Null(memberModelTypeUsage);
1420
newInstance =
DbExpressionBuilder
.CreateNewEntityWithRelationshipsExpression(entityType, args, relshipExprList);
1424
newInstance =
DbExpressionBuilder
.New(TypeHelpers.GetReadOnlyType(type), args);
1525
args[i] =
DbExpressionBuilder
.Null(getParameterTypeUsage(parametersMetadata[i]));
1663
return
DbExpressionBuilder
.CreateRelatedEntityRef(fromEnd, toEnd, targetEntityRef);
1697
sourceEntityRef =
DbExpressionBuilder
.GetEntityRef(sourceEntityRef);
1921
converted =
DbExpressionBuilder
.RefFromKey(entitySet, keyRowExpression, (EntityType)targetTypeUsage.EdmType);
1928
converted =
DbExpressionBuilder
.RefFromKey(entitySet, keyRowExpression);
2058
leftExpr =
DbExpressionBuilder
.Null(sr.TypeResolver.BooleanType);
2067
rightExpr =
DbExpressionBuilder
.Null(sr.TypeResolver.BooleanType);
2287
leftExpr =
DbExpressionBuilder
.Null(elementType);
2566
return new ValueExpression(
DbExpressionBuilder
.New(TypeHelpers.CreateRowTypeUsage(rowColumns, true /* readOnly */), fieldExprs));
2613
mSetExprs[i] =
DbExpressionBuilder
.Null(commonType);
2617
return new ValueExpression(
DbExpressionBuilder
.New(TypeHelpers.CreateCollectionTypeUsage(commonType, true /* readOnly */), mSetExprs));
2686
thenExprList[i] =
DbExpressionBuilder
.Null(resultType);
2697
elseExpr =
DbExpressionBuilder
.NewEmptyCollection(resultType);
2702
elseExpr =
DbExpressionBuilder
.Null(resultType);
2706
return new ValueExpression(
DbExpressionBuilder
.Case(whenExprList, thenExprList, elseExpr));
2927
projectExpression = source.Project(
DbExpressionBuilder
.NewRow(projectionItems));
3209
onExpr =
DbExpressionBuilder
.True;
3221
DbExpressionBuilder
.CreateJoinExpressionByKind(
3270
DbExpressionBuilder
.CreateApplyExpressionByKind(
3802
DbExpression projectExpression =
DbExpressionBuilder
.NewRow(projectionItems);
4314
return
DbExpressionBuilder
.False;
4773
thenExpr.Add(
DbExpressionBuilder
.Null(sr.TypeResolver.BooleanType));
4775
DbExpression left =
DbExpressionBuilder
.Case(whenExpr, thenExpr,
DbExpressionBuilder
.False);
4808
thenExpr.Add(
DbExpressionBuilder
.Null(sr.TypeResolver.BooleanType));
4810
DbExpression left =
DbExpressionBuilder
.Case(whenExpr, thenExpr,
DbExpressionBuilder
.True);
4852
return isNullExpr != null ? (DbExpression)isNullExpr.IsNull() :
DbExpressionBuilder
.True;
4872
return isNullExpr != null ? (DbExpression)isNullExpr.IsNull().Not() :
DbExpressionBuilder
.False;
4986
exprToTreat =
DbExpressionBuilder
.Null(typeToTreatTo);
5042
return
DbExpressionBuilder
.Null(typeToCastTo);
5138
matchExpr =
DbExpressionBuilder
.Null(sr.TypeResolver.StringType);
5148
patternExpr =
DbExpressionBuilder
.Null(sr.TypeResolver.StringType);
5160
escapeExpr =
DbExpressionBuilder
.Null(sr.TypeResolver.StringType);
5236
valueExpr =
DbExpressionBuilder
.Null(rangeCommonType);
System\Data\Common\EntitySql\SemanticResolver.cs (1)
626
propertyExpr =
DbExpressionBuilder
.CreatePropertyExpressionFromMember(valueExpr, member);
System\Data\EntityKey.cs (2)
746
new[] {
DbExpressionBuilder
.Constant(Helper.GetModelTypeUsage(singletonKeyMember), _singletonKeyValue)
759
keyColumns[i] =
DbExpressionBuilder
.Constant(Helper.GetModelTypeUsage(keyMember), _compositeKeyValues[i]).As(keyMember.Name);
System\Data\Mapping\FunctionImportMappingComposable.cs (1)
341
DbExpression typeConstructors =
DbExpressionBuilder
.Case(
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (2)
331
ends.Add(dependentSet.RefFromKey(
DbExpressionBuilder
.NewRow(keyValues), dependentType));
342
ends.Add(principalSet.RefFromKey(
DbExpressionBuilder
.NewRow(keyValues), principalType));
System\Data\Mapping\Update\Internal\DynamicUpdateCommand.cs (1)
188
DbSetClause newClause = new DbSetClause(inputIdentifier.Value.Property,
DbExpressionBuilder
.Constant(value));
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (4)
324
returning =
DbExpressionBuilder
.NewRow(returningArguments);
442
return
DbExpressionBuilder
.Null(Helper.GetModelTypeUsage(property));
450
return
DbExpressionBuilder
.Null(Helper.GetModelTypeUsage(property));
481
return
DbExpressionBuilder
.Constant(propertyType, principalValue);
System\Data\Mapping\ViewGeneration\CqlGeneration\BooleanProjectedSlot.cs (3)
87
return
DbExpressionBuilder
.Case(new DbExpression[] { m_expr.AsCqt(row) }, new DbExpression[] {
DbExpressionBuilder
.True },
DbExpressionBuilder
.False);
System\Data\Mapping\ViewGeneration\CqlGeneration\CqlBlock.cs (1)
198
return
DbExpressionBuilder
.NewRow(
System\Data\Mapping\ViewGeneration\Structures\BoolExpressionVisitors.cs (4)
328
return
DbExpressionBuilder
.True;
333
return
DbExpressionBuilder
.False;
349
DbExpression cqt = VisitAndOr(expression,
DbExpressionBuilder
.And);
356
DbExpression cqt = VisitAndOr(expression,
DbExpressionBuilder
.Or);
System\Data\Mapping\ViewGeneration\Structures\CaseStatement.cs (2)
280
return
DbExpressionBuilder
.Case(conditions, values, elseValue);
344
return
DbExpressionBuilder
.CreateNewEntityWithRelationshipsExpression(
System\Data\Mapping\ViewGeneration\Structures\MemberPath.cs (1)
451
cqt =
DbExpressionBuilder
.Property(cqt, memberName);
System\Data\Mapping\ViewGeneration\Structures\NegatedConstant.cs (1)
141
() => cqt =
DbExpressionBuilder
.True,
System\Data\Mapping\ViewGeneration\Structures\WithStatement.cs (1)
96
return
DbExpressionBuilder
.CreateRelatedEntityRef(
System\Data\Objects\ELinq\ExpressionConverter.cs (10)
738
return
DbExpressionBuilder
.Null(expression.ResultType);
743
return
DbExpressionBuilder
.Constant(expression.ResultType, objParam.Value);
1228
return
DbExpressionBuilder
.False;
1257
return
DbExpressionBuilder
.False;
1265
return
DbExpressionBuilder
.False;
1267
return
DbExpressionBuilder
.True;
1383
translatedPatternExpression =
DbExpressionBuilder
.Constant(constantExpression.ResultType, preparedValue);
1392
var escapeExpression =
DbExpressionBuilder
.Constant(EdmProviderManifest.Instance.GetCanonicalModelTypeUsage(PrimitiveTypeKind.String), new String(new char[] { escapeChar }));
1393
result =
DbExpressionBuilder
.Like(translatedInputExpression, translatedPatternExpression, escapeExpression);
1397
result =
DbExpressionBuilder
.Like(translatedInputExpression, translatedPatternExpression);
System\Data\Objects\ELinq\MethodCallTranslator.cs (29)
640
DbExpressionBinding bindingExpr =
DbExpressionBuilder
.BindAs(argumentExpr, parent.AliasGenerator.Next());
644
newExpr =
DbExpressionBuilder
.Project(bindingExpr, normalizedExpr);
671
newExpr =
DbExpressionBuilder
.NewRow(newColumns);
898
recreatedArgument =
DbExpressionBuilder
.Constant(updatedType, ((DbConstantExpression)argument).Value);
901
recreatedArgument =
DbExpressionBuilder
.Parameter(updatedType, ((DbParameterReferenceExpression)argument).ParameterName);
904
recreatedArgument =
DbExpressionBuilder
.Null(updatedType);
999
DbComparisonExpression comparisonExpression = indexOfExpression.GreaterThan(
DbExpressionBuilder
.Constant(0));
1020
CqtExpression minusExpression = indexOfExpression.Minus(
DbExpressionBuilder
.Constant(1));
1051
.Equal(
DbExpressionBuilder
.Constant(1));
1085
.Equal(
DbExpressionBuilder
.Constant(1));
1111
DbExpression fromIndex = arg1.Plus(
DbExpressionBuilder
.Constant(1));
1154
DbExpressionBuilder
.Constant(1),
1170
arg1.Plus(arg2).Plus(
DbExpressionBuilder
.Constant(1));
1232
DbExpressionBuilder
.Constant(1),
1239
arg1.Plus(
DbExpressionBuilder
.Constant(1)),
1276
.Equal(
DbExpressionBuilder
.Constant(0));
1981
DbProjectExpression constantProject = operand.BindAs(parent.AliasGenerator.Next()).Project(
DbExpressionBuilder
.Constant(1));
1988
DbExpression constantExpression =
DbExpressionBuilder
.Constant(1);
2184
DbExpression left =
DbExpressionBuilder
.NewCollection(new DbExpression[] { 1 });
2196
DbExpression join =
DbExpressionBuilder
.LeftOuterJoin(leftBinding, rightBinding, true);
2203
projection =
DbExpressionBuilder
.Case(new[] { projection.Property("sentinel").IsNull() }, new[] { defaultValue }, projection.Property("value"));
2296
return parent.Limit(expression,
DbExpressionBuilder
.Constant(1));
2339
thenExpressions.Add(
DbExpressionBuilder
.Constant(element.ResultType, defaultValue));
2340
DbCaseExpression caseExpression =
DbExpressionBuilder
.Case(whenExpressions, thenExpressions, element);
2377
return parent.Limit(expression,
DbExpressionBuilder
.Constant(2));
2398
return parent.Limit(expression,
DbExpressionBuilder
.Constant(1));
2468
return parent.Limit(expression,
DbExpressionBuilder
.Constant(2));
2796
CqtExpression topLevelProject = groupByBinding.Project(
DbExpressionBuilder
.New(rowTypeUsage, projectionTerms));
2888
CqtExpression joinProjection =
DbExpressionBuilder
.NewRow(recordColumns);
System\Data\Objects\ELinq\OrderByLifter.cs (20)
192
DbLambda secondLambda =
DbExpressionBuilder
.Lambda(second.Projection, second.Input.Variable);
205
DbLambda secondLambda =
DbExpressionBuilder
.Lambda(second.Predicate, second.Input.Variable);
227
return
DbExpressionBuilder
.Limit(input, newCount);
234
return
DbExpressionBuilder
.Limit(input, newCount);
430
DbExpressionBuilder
.Limit(_skip, _limit.Limit),
442
DbExpressionBuilder
.Limit(_skip, _limit.Limit),
462
DbExpressionBuilder
.Limit(
464
DbExpressionBuilder
.Limit(_skip, _limit.Limit),
491
DbExpressionBuilder
.Limit(_skip, _limit.Limit),
529
DbExpressionBuilder
.Limit(_sort, _limit.Limit),
540
DbExpressionBuilder
.Limit(_sort, _limit.Limit),
559
DbExpressionBuilder
.Limit(
561
DbExpressionBuilder
.Limit(_sort, _limit.Limit),
573
DbExpressionBuilder
.Limit(_sort, _limit.Limit),
610
return
DbExpressionBuilder
.Limit(_root, k);
665
return
DbExpressionBuilder
.Limit(_root, k);
720
return
DbExpressionBuilder
.Limit(_root, k);
760
return
DbExpressionBuilder
.Limit(_root, k);
792
return
DbExpressionBuilder
.OfType(_root, type);
797
return
DbExpressionBuilder
.Limit(_root, k);
System\Data\Objects\ELinq\Translator.cs (11)
132
return
DbExpressionBuilder
.Null(type);
150
return
DbExpressionBuilder
.Constant(type, value);
739
recordColumns.Add(
DbExpressionBuilder
.True.As(KeyColumnName));
764
return
DbExpressionBuilder
.NewCollection(linq.Expressions.Select(e => parent.TranslateExpression(e)));
774
return
DbExpressionBuilder
.NewEmptyCollection(typeUsage);
781
return
DbExpressionBuilder
.NewEmptyCollection(typeUsage);
806
return
DbExpressionBuilder
.NewCollection(linq.Initializers.Select(i => parent.TranslateExpression(i.Arguments[0])));
851
recordColumns.Add(
DbExpressionBuilder
.Constant(true).As(KeyColumnName));
878
return
DbExpressionBuilder
.Case(whenExpressions, thenExpressions, elseExpression);
941
DbExpression caseExpression =
DbExpressionBuilder
.Case(whenExpressions,
1014
if (leftIsNull && rightIsNull) { return
DbExpressionBuilder
.True; }
System\Data\Objects\Internal\EntitySqlQueryState.cs (1)
196
plan = ObjectQueryExecutionPlan.Prepare(this.ObjectContext, tree, this.ElementType, mergeOption, this.Span, null,
DbExpressionBuilder
.AliasGenerator);
System\Data\Objects\Internal\ObjectQueryExecutionPlan.cs (1)
225
ObjectQueryExecutionPlan execPlan = ObjectQueryExecutionPlan.Prepare(context, query, typeof(TResultType), mergeOption, null, null, System.Data.Common.CommandTrees.ExpressionBuilder.
DbExpressionBuilder
.AliasGenerator);
System\Data\Objects\Internal\ObjectSpanRewriter.cs (6)
304
DbExpression spannedExpression =
DbExpressionBuilder
.NewRow(tracking.ColumnDefinitions);
437
DbExpression condition =
DbExpressionBuilder
.CreateIsNullExpressionAllowingRowTypeArgument(expression);
438
DbExpression nullExpression =
DbExpressionBuilder
.Null(rewrittenRowTypeUsage);
439
rewritten =
DbExpressionBuilder
.Case(
537
result =
DbExpressionBuilder
.Invoke(
DbExpressionBuilder
.Lambda(result, formals), args);
System\Data\Objects\ObjectContext.cs (2)
2211
DbExpression keyFilter =
DbExpressionBuilder
.NewRow(keyValueColumns);
2223
DbExpression entitySetFilter = Helpers.BuildBalancedTreeInPlace(keyFilters,
DbExpressionBuilder
.Or);
System\Data\Query\PlanCompiler\CTreeGenerator.cs (23)
591
paramRef =
DbExpressionBuilder
.Parameter(paramVar.Type, paramVar.ParameterName);
677
return
DbExpressionBuilder
.Constant(op.Type, op.Value);
692
return
DbExpressionBuilder
.Null(op.Type);
706
return
DbExpressionBuilder
.True.Equal(op.IsTrue ?
DbExpressionBuilder
.True :
DbExpressionBuilder
.False);
817
elseExpr =
DbExpressionBuilder
.Null(op.Type);
835
return
DbExpressionBuilder
.Case(whens, thens, elseExpr);
967
return
DbExpressionBuilder
.Like(
1094
DbElementExpression elementExpr =
DbExpressionBuilder
.CreateElementExpressionUnwrapSingleProperty(inputExpr);
1227
DbExpression retExpr = sourceInfo.CreateBinding().Project(
DbExpressionBuilder
.NewRow(projectedCols));
1370
DbExpression constExpr =
DbExpressionBuilder
.Constant(1);
1374
DbExpression retExpr = sourceInfo.CreateBinding().Project(
DbExpressionBuilder
.NewRow(projectedCols));
1899
joinCond =
DbExpressionBuilder
.True;
1904
DbExpression retExpr =
DbExpressionBuilder
.CreateJoinExpressionByKind(
1973
DbExpression retExpr =
DbExpressionBuilder
.CrossJoin(inputBindings);
2023
DbExpression retExpr =
DbExpressionBuilder
.CreateApplyExpressionByKind(
2196
return VisitSetOp(op, n, _unionAllAliases,
DbExpressionBuilder
.UnionAll);
2201
return VisitSetOp(op, n, _intersectAliases,
DbExpressionBuilder
.Intersect);
2206
return VisitSetOp(op, n, _exceptAliases,
DbExpressionBuilder
.Except);
2280
DbNewInstanceExpression collectionExpr =
DbExpressionBuilder
.NewCollection(collectionElements);
2295
DbNewInstanceExpression collectionExpr =
DbExpressionBuilder
.NewCollection(new [] {
DbExpressionBuilder
.Constant(1) });
System\Data\SqlClient\SqlGen\Sql8ExpressionRewriter.cs (1)
454
DbExpression rowExpr =
DbExpressionBuilder
.NewRow(projectColumns);
System\Data\SqlClient\SqlGen\SqlFunctionCallHandler.cs (2)
474
private static readonly DbExpression defaultGeographySridExpression =
DbExpressionBuilder
.Constant(DbGeography.DefaultCoordinateSystemId);
475
private static readonly DbExpression defaultGeometrySridExpression =
DbExpressionBuilder
.Constant(DbGeometry.DefaultCoordinateSystemId);
System.Data.Entity.Design (4)
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (4)
1600
DbExpressionBinding inputBinding =
DbExpressionBuilder
.BindAs(
DbExpressionBuilder
.Scan(entitySet), entitySet.Name);
1607
DbExpressionBuilder
.Property(inputBinding.Variable, propertyInfo)));
1609
DbExpression query = inputBinding.Project(
DbExpressionBuilder
.NewRow(projectList));