89 references to Variable
System.Data.Entity (88)
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (5)
72this.RebindVariable(binding.Variable, result.Variable); 359this.OnEnterScope(new[] { result.Variable }); 900this.EnterScope(newLeft.Variable, newRight.Variable);
System\Data\Common\CommandTrees\ExpressionBindings.cs (1)
31/// <seealso cref="Variable"/>
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (9)
1787argumentResult = argument(binding.Variable); 1800argumentExp = argument(leftBinding.Variable, rightBinding.Variable); 2232DbExpression left = DbExpressionBuilder.Property(joinBinding.Variable, joinExpression.Left.VariableName); 2233DbExpression right = DbExpressionBuilder.Property(joinBinding.Variable, joinExpression.Right.VariableName); 2402return DbExpressionBuilder.Project(projectionBinding, DbExpressionBuilder.Property(projectionBinding.Variable, functorBinding.VariableName)); 2447DbExpression left = DbExpressionBuilder.Property(projectionBinding.Variable, inputBinding.VariableName); 2448DbExpression right = DbExpressionBuilder.Property(projectionBinding.Variable, functorBinding.VariableName); 2494DbExpression sortKeyResult = sortKey(source.Input.Variable);
System\Data\Common\EntitySql\SemanticAnalyzer.cs (27)
298converted = source.Project(source.Variable); 3033fromClauseEntries.ForEach(scopeEntry => scopeEntry.AddParentVar(fromBinding.Variable)); 3120SourceScopeEntry sourceScopeEntry = new SourceScopeEntry(aliasedBinding.Variable); 3121sr.CurrentScope.Add(aliasedBinding.Variable.VariableName, sourceScopeEntry); 3229scopeEntries.ForEach(scopeEntry => scopeEntry.AddParentVar(joinBinding.Variable)); 3280scopeEntries.ForEach(scopeEntry => scopeEntry.AddParentVar(applyBinding.Variable)); 3357((SourceScopeEntry)scopeEntry).ReplaceParentVar(whereBinding.Variable); 3409((SourceScopeEntry)scopeEntry).AdjustToGroupVar(groupInputBinding.Variable, groupInputBinding.GroupVariable, groupAggregateBinding.Variable); 3708((SourceScopeEntry)scopeEntry).RollbackAdjustmentToGroupVar(source.Variable); 3791new KeyValuePair<string, DbExpression>(keyInfo.Name, groupBinding.Variable.Property(keyInfo.Name)))); 3800groupBinding.Variable.Property(groupAggregateInfo.AggregateName)))); 3834new SourceScopeEntry(groupKeyInfo.VarRef).AddParentVar(groupBinding.Variable)); 3848new SourceScopeEntry(groupKeyInfo.VarRef, groupKeyInfo.AlternativeName).AddParentVar(groupBinding.Variable)); 3867new SourceScopeEntry(aggVarRef).AddParentVar(groupBinding.Variable)); 3917gpExpressionLambda.Invoke(groupBinding.Variable.Property(groupAggregateVarRef.VariableName)))); 3931groupBinding.Variable.Property(groupAggregateVarRef.VariableName))); 3968return projectionExpression == projectExpression.Input.Variable; 3973if (!TypeSemantics.IsEqual(projectExpression.Projection.ResultType, projectExpression.Input.Variable.ResultType)) 3978IBaseList<EdmMember> inputVariableTypeProperties = TypeHelpers.GetAllStructuralMembers(projectExpression.Input.Variable.ResultType); 3991if (propertyRef.Instance != projectExpression.Input.Variable || 4135sr.CurrentScope.Replace(projectionItems[0].Key, new SourceScopeEntry(source.Variable)); 4145new SourceScopeEntry(projectionExpressionRef).AddParentVar(source.Variable)); 4288((SourceScopeEntry)scopeEntry).ReplaceParentVar(sortBinding.Variable); 4738DbExpressionBinding rightExpr = leftExpr.Variable.BindAs(sr.GenerateInternalName("r_flatten")); 4742return applyBinding.Project(applyBinding.Variable.Property(rightExpr.VariableName)); 4766DbExpression rightSet = rSet.Variable; 4801DbExpression rightSet = rSet.Variable;
System\Data\Mapping\FunctionImportMappingComposable.cs (3)
296var entityTypeMappingView = GenerateStructuralTypeMappingView(type, propertyMappings, binding.Variable, errors); 311List<DbExpression> structuralTypePredicates = m_structuralTypeMappings.Select(m => GenerateStructuralTypeConditionsPredicate(m.Item2, binding.Variable)).ToList(); 323var structuralTypeMappingView = GenerateStructuralTypeMappingView(type, propertyMappings, binding.Variable, errors);
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (2)
251DbPropertyExpression propertyExpression = target.Variable.Property(property); 430return target.Variable.Property(property);
System\Data\Objects\ELinq\ExpressionConverter.cs (3)
785return TranslateLambda(lambda, binding.Variable); 797return TranslateLambda(lambda, binding.Variable); 852if (project.Projection == project.Input.Variable)
System\Data\Objects\ELinq\MethodCallTranslator.cs (25)
641DbExpression normalizedExpr = NormalizeAllSetSources(parent, bindingExpr.Variable); 642if (normalizedExpr != bindingExpr.Variable) 1635DbPropertyExpression joinOuter = joinBinding.Variable.Property(outerBinding.VariableName); 1636DbPropertyExpression joinInner = joinBinding.Variable.Property(innerBinding.VariableName); 1802DbProjectExpression operandCastProjection = operandCastBinding.Project(operandCastBinding.Variable.CastTo(returnType)); 2192operand = o.Project(new Row(((DbExpression)1).As("sentinel"), o.Variable.As("value"))); 2198DbExpression projection = joinBinding.Variable.Property(rightBinding.VariableName); 2286return sourceBinding.Filter(parent.CreateEqualsExpression(sourceBinding.Variable, value, pattern, sourceArgumentType, valueExpression.Type)).Exists(); 2538var newApply = newInput.Variable.Property(lojRightInput.Name).BindAs(innerBindingName); 2554apply = applyInput.OuterApply(applyInput.Variable.Property(lojRightInput).BindAs(parent.AliasGenerator.Next())); 2559RowType applyRowType = (RowType)(applyBinding.Variable.ResultType.EdmType); 2560CqtExpression projectRight = applyBinding.Variable.Property(applyRowType.Properties[1]); 2565CqtExpression projectLeft = applyBinding.Variable.Property(applyRowType.Properties[0]); 2648if (rightProjectProjection.Instance != rightProject.Input.Variable || 2688if (lojRight.Instance != crossApply.Input.Variable) 2727CqtExpression cast = parent.CreateCastExpression(binding.Variable, toClrType, fromClrType); 2768CqtExpression selection = groupByBinding.Variable.Property(GroupColumnName); 2784projectionTerms[0] = groupByBinding.Variable.Property(KeyColumnName); 2823DbPropertyExpression keyExpression = topLevelProjectBinding.Variable.Property(KeyColumnName); 2824DbPropertyExpression groupExpression = topLevelProjectBinding.Variable.Property(GroupColumnName); 2886recordColumns.Add(new KeyValuePair<string, CqtExpression>(outerColumn, outerBinding.Variable)); 2894CqtExpression outerProperty = joinProjectBinding.Variable.Property(outerColumn); 2895CqtExpression innerProperty = joinProjectBinding.Variable.Property(innerColumn); 2945if (rename.Instance != project.Input.Variable) 3030parent._bindingContext.PushBindingScope(new Binding(parameter, binding.Variable));
System\Data\Objects\ELinq\OrderByLifter.cs (4)
176DbExpression filter = this.Filter(rootBinding.Filter(rootBinding.Variable.IsOf(type))); 179DbExpression project = filterLifter.Project(filterBinding.Project(filterBinding.Variable.TreatAs(type))); 192DbLambda secondLambda = DbExpressionBuilder.Lambda(second.Projection, second.Input.Variable); 205DbLambda secondLambda = DbExpressionBuilder.Lambda(second.Predicate, second.Input.Variable);
System\Data\Objects\Internal\ObjectSpanRewriter.cs (1)
508DbExpression projection = collectionBinding.Variable;
System\Data\Objects\ObjectContext.cs (1)
2199DbExpression sourceEntityKey = entitySetBinding.Variable.GetEntityRef().GetRefKey();
System\Data\Query\PlanCompiler\CTreeGenerator.cs (1)
249get { return _binding.Variable; }
System\Data\Query\PlanCompiler\ITreeGenerator.cs (3)
1862typeFilter.ToEnumerable().Select(tf => tf.Value ? resultBinding.Variable.IsOfOnly(tf.Key) : resultBinding.Variable.IsOf(tf.Key)).ToList() 1940DbTreatExpression treatProjection = treatBinding.Variable.TreatAs(ofTypeExp.OfType);
System\Data\SqlClient\SqlGen\Sql8ExpressionRewriter.cs (3)
219FlattenProperties(leftInputBinding.Variable, leftFlattenedProperties); 220FlattenProperties(rightInputBinding.Variable, rightFlattenedProperties); 467flattenedProperties.Add(resultBinding.Variable.Property(prop));
System.Data.Entity.Design (1)
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (1)
1607DbExpressionBuilder.Property(inputBinding.Variable, propertyInfo)));