62 references to Type
System.Data.Entity (62)
System\Data\Query\InternalTrees\ColumnMap.cs (1)
1056: this(v.Type, null, v)
System\Data\Query\InternalTrees\Command.cs (4)
436ParameterVar v = new ParameterVar(NewVarId(), generateReplacementType(oldVar.Type), oldVar.ParameterName); 1133Table t = this.CreateTableInstance(Command.CreateTableDefinition(TypeHelpers.GetEdmType<CollectionType>(v.Type).TypeUsage)); 1634SetOpVar newVar = this.CreateSetOpVar(unionAllVars[j].Type); 1800TypeUsage collectOpType = TypeHelpers.CreateCollectionTypeUsage(relOpVar.Type);
System\Data\Query\InternalTrees\OpCopier.cs (3)
923Var outputVar = m_destCmd.CreateSetOpVar(kv.Key.Type); 1047Var newVar = m_destCmd.CreateComputedVar(op.Var.Type); 1115Var newCollectionVar = m_destCmd.CreateComputedVar(ci.CollectionVar.Type);
System\Data\Query\InternalTrees\ScalarOps.cs (1)
305internal VarRefOp(Var v) : base(OpType.VarRef, v.Type)
System\Data\Query\PlanCompiler\ColumnMapProcessor.cs (3)
36return new VarRefColumnMap(m_columnMap.Var.Type, m_columnMap.Name, ((CollectionVarInfo)m_varInfo).NewVar); 40return new VarRefColumnMap(m_columnMap.Var.Type, m_columnMap.Name, ((PrimitiveTypeVarInfo)m_varInfo).NewVar); 44return this.CreateColumnMap(m_columnMap.Var.Type, m_columnMap.Name);
System\Data\Query\PlanCompiler\CTreeGenerator.cs (1)
591paramRef = DbExpressionBuilder.Parameter(paramVar.Type, paramVar.ParameterName);
System\Data\Query\PlanCompiler\ITreeGenerator.cs (1)
1143if (Command.EqualTypes(targetType, nodeVar.Type))
System\Data\Query\PlanCompiler\KeyPullup.cs (2)
270Var newKeyVar = m_command.CreateSetOpVar(v.Type); 336m_command.CreateNullOp(keyVar.Type)), out keyVar));
System\Data\Query\PlanCompiler\NestPullup.cs (3)
1738md.CollectionType collType = TypeHelpers.GetEdmType<md.CollectionType>(op.Var.Type); 2557NullOp nullOp = Command.CreateNullOp(v.Type); 2586Var outputVar = Command.CreateSetOpVar(unionAllOutputs[idx].Type);
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (29)
193foreach (var paramVar in m_command.Vars.OfType<ParameterVar>().Where(v => md.TypeSemantics.IsEnumerationType(v.Type) || md.TypeSemantics.IsStrongSpatialType(v.Type)).ToArray()) 195ParameterVar newVar = md.TypeSemantics.IsEnumerationType(paramVar.Type) 784if (TypeUtils.IsStructuredType(varDefOp.Var.Type) || TypeUtils.IsCollectionType(varDefOp.Var.Type)) 796else if (md.TypeSemantics.IsEnumerationType(varDefOp.Var.Type) || md.TypeSemantics.IsStrongSpatialType(varDefOp.Var.Type)) 823if (TypeUtils.IsCollectionType(v.Type)) 826newType = GetNewType(v.Type); 835TypeInfo typeInfo = m_typeInfo.GetTypeInfo(v.Type); 971if (TypeUtils.IsStructuredType(varRefColumnMap.Var.Type)) 973TypeInfo typeInfo = m_typeInfo.GetTypeInfo(varRefColumnMap.Var.Type); 1157TypeInfo typeInfo = m_typeInfo.GetTypeInfo(columnVar.Type); 1163foreach (md.EdmProperty p in TypeHelpers.GetAllStructuralMembers(columnVar.Type.EdmType)) 1274TypeInfo typeInfo = m_typeInfo.GetTypeInfo(columnVar.Type); 1329if (TypeUtils.IsCollectionType(varDefOp.Var.Type)) 1378if (!TypeUtils.IsStructuredType(unnestTableColumnVar.Type)) 1382if (md.TypeSemantics.IsEnumerationType(unnestTableColumnVar.Type) || md.TypeSemantics.IsStrongSpatialType(unnestTableColumnVar.Type)) 1417TypeInfo typeInfo = m_typeInfo.GetTypeInfo(unnestTableColumnVar.Type); 1427PlanCompiler.Assert(Command.EqualTypes(tvfReturnType, unnestTableColumnVar.Type.EdmType), "Unexpected TVF return type (row type is expected)."); 1536Node varDefOpNode = m_command.CreateNode(varDefOp, CreateNullConstantNode(v.Type)); 1614innerVar = m_command.CreateComputedVar(outerVar.Type); 1637if (TypeUtils.IsCollectionType(v.Type)) 1639md.TypeUsage newType = GetNewType(v.Type); 1643else if (md.TypeSemantics.IsEnumerationType(v.Type) || md.TypeSemantics.IsStrongSpatialType(v.Type)) 1645md.TypeUsage newType = GetNewType(v.Type); 1651TypeInfo typeInfo = m_typeInfo.GetTypeInfo(v.Type);
System\Data\Query\PlanCompiler\PreProcessor.cs (1)
185AddTypeReference(v.Type);
System\Data\Query\PlanCompiler\PropertyPushdownHelper.cs (7)
527if (TypeUtils.IsStructuredType(op.Var.Type)) 550if (TypeUtils.IsStructuredType(op.Var.Type)) 602if (TypeUtils.IsStructuredType(v.Type)) 633if (TypeUtils.IsStructuredType(v.Type)) 732if (TypeUtils.IsStructuredType(kv.Key.Type)) 771if (TypeUtils.IsStructuredType(sk.Var.Type)) 805if (TypeUtils.IsStructuredType(v.Type))
System\Data\Query\PlanCompiler\TransformationRules.cs (4)
385if (System.Data.Common.TypeHelpers.TryGetPrimitiveTypeKind(v.Type, out typeKind) && typeKind == System.Data.Metadata.Edm.PrimitiveTypeKind.Int32) 2034NullOp nullConst = trc.Command.CreateNullOp(v.Type); 2945Node elementNode = command.CreateNode(command.CreateElementOp(oldVar.Type), applyNode.Child1); 3259Var newVar = m_command.CreateSetOpVar(m_oldVar.Type);
System\Data\Query\PlanCompiler\VarInfo.cs (2)
317PlanCompiler.Assert(md.TypeSemantics.IsScalarType(v.Type), "The current variable should be of primitive or enum type."); 318PlanCompiler.Assert(md.TypeSemantics.IsScalarType(newVar.Type), "The new variable should be of primitive or enum type.");