Base:
property
Type
System.Data.Query.InternalTrees.Op.Type
3 writes to Type
System.Data.Entity (3)
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (3)
1895op.Type = TypeHelpers.CreateSpatialUnionTypeUsage(op.Type); 2868op.Type = TypeHelpers.CreateEnumUnderlyingTypeUsage(op.Type); 2872op.Type = TypeHelpers.CreateSpatialUnionTypeUsage(op.Type);
109 references to Type
System.Data.Entity (109)
System\Data\Query\InternalTrees\Command.cs (1)
1063computedVar = this.CreateComputedVar(scalarOp.Type);
System\Data\Query\InternalTrees\Dump.cs (3)
224WriteString(op.Type.EdmType.FullName); 539if (null != op.Type) { 541WriteString(TypeHelpers.GetFullName(op.Type));
System\Data\Query\InternalTrees\NodeInfo.cs (1)
1161if(TypeHelpers.IsIntegerConstant(constOp.Type, constOp.Value, 1))
System\Data\Query\InternalTrees\OpCopier.cs (22)
295ConstantBaseOp newOp = m_destCmd.CreateConstantOp(op.Type, op.Value); 307return m_destCmd.CreateNode(m_destCmd.CreateNullOp(op.Type)); 329InternalConstantOp newOp = m_destCmd.CreateInternalConstantOp(op.Type, op.Value); 386return CopyDefault(m_destCmd.CreateCaseOp(op.Type), n); 430return CopyDefault(m_destCmd.CreateNewInstanceOp(op.Type), n); 444opCopy = m_destCmd.CreateScopedNewEntityOp(op.Type, op.RelationshipProperties, op.EntitySet); 449opCopy = m_destCmd.CreateNewEntityOp(op.Type, op.RelationshipProperties); 462return CopyDefault(m_destCmd.CreateDiscriminatedNewEntityOp(op.Type, op.DiscriminatorMap, op.EntitySet, op.RelationshipProperties), n); 473return CopyDefault(m_destCmd.CreateNewMultisetOp(op.Type), n); 484return CopyDefault(m_destCmd.CreateNewRecordOp(op.Type), n); 495return CopyDefault(m_destCmd.CreateRefOp(op.EntitySet, op.Type), n); 535return CopyDefault(m_destCmd.CreateArithmeticOp(op.OpType, op.Type), n); 546TreatOp newTreatOp = op.IsFakeTreat ? m_destCmd.CreateFakeTreatOp(op.Type) : m_destCmd.CreateTreatOp(op.Type); 558return CopyDefault(m_destCmd.CreateCastOp(op.Type), n); 569return CopyDefault(m_destCmd.CreateSoftCastOp(op.Type), n); 580return CopyDefault(m_destCmd.CreateDerefOp(op.Type), n); 591return CopyDefault(m_destCmd.CreateNavigateOp(op.Type, op.RelProperty), n); 627return CopyDefault(m_destCmd.CreateElementOp(op.Type), n); 638return CopyDefault(m_destCmd.CreateGetRefKeyOp(op.Type), n); 649return CopyDefault(m_destCmd.CreateGetEntityRefOp(op.Type), n); 660return CopyDefault(m_destCmd.CreateCollectOp(op.Type), n);
System\Data\Query\InternalTrees\Ops.cs (1)
539return (other.OpType == this.OpType && TypeSemantics.IsStructurallyEqual(this.Type, other.Type));
System\Data\Query\InternalTrees\ScalarOps.cs (3)
70otherConstant.Type.EdmEquals(this.Type) && 1202Debug.Assert(Object.ReferenceEquals(field.DeclaringType, this.Type.EdmType),
System\Data\Query\PlanCompiler\AggregatePushdown.cs (1)
371newSoftCastOp = command.CreateSoftCastOp(TypeHelpers.GetEdmType<CollectionType>(softCastOp.Type).TypeUsage);
System\Data\Query\PlanCompiler\CTreeGenerator.cs (4)
677return DbExpressionBuilder.Constant(op.Type, op.Value); 692return DbExpressionBuilder.Null(op.Type); 817elseExpr = DbExpressionBuilder.Null(op.Type); 1038return VisitChild(n, 0).CastTo(op.Type);
System\Data\Query\PlanCompiler\ITreeGenerator.cs (1)
657PlanCompiler.Assert(TypeSemantics.IsCollectionType(scalar.Type), "An expression used as a RelOp argument was neither a RelOp or a collection");
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (43)
1724md.TypeUsage oldType = op.Type; 1736TypeInfo outputTypeInfo = m_typeInfo.GetTypeInfo(op.Type); 1833if (md.TypeSemantics.IsEnumerationType(op.Type)) 1837var underlyingType = md.Helper.GetUnderlyingEdmTypeForEnumType(op.Type.EdmType); 1841if (md.TypeSemantics.IsSpatialType(op.Type)) 1845var underlyingType = md.Helper.GetSpatialNormalizedPrimitiveType(op.Type.EdmType); 1862return m_command.CreateNode(m_command.CreateCastOp(md.TypeUsage.Create(underlyingType, op.Type.Facets)), n.Child0); 1880if (md.TypeSemantics.IsEnumerationType(op.Type)) 1891TypeHelpers.CreateEnumUnderlyingTypeUsage(op.Type), constValue)); 1893if (md.TypeSemantics.IsStrongSpatialType(op.Type)) 1895op.Type = TypeHelpers.CreateSpatialUnionTypeUsage(op.Type); 1948if (TypeUtils.IsCollectionType(op.Type) || md.TypeSemantics.IsEnumerationType(op.Type) || md.TypeSemantics.IsStrongSpatialType(op.Type)) 1950md.TypeUsage newType = GetNewType(op.Type); 1955else if (TypeUtils.IsStructuredType(op.Type)) 1960Node newNode = FlattenCaseOp(op, n, m_typeInfo.GetTypeInfo(op.Type), desiredProperties); 2101n.Op = m_command.CreateCollectOp(GetNewType(op.Type)); 2117md.TypeUsage child0Type = ((ScalarOp)n.Child0.Op).Type; 2118md.TypeUsage child1Type = ((ScalarOp)n.Child1.Op).Type; 2197md.TypeUsage childOpType = ((ScalarOp)n.Child0.Op).Type; 2285TypeInfo inputTypeInfo = m_typeInfo.GetTypeInfo(((ScalarOp)n.Child0.Op).Type); 2286TypeInfo outputTypeInfo = m_typeInfo.GetTypeInfo(op.Type); 2436TypeInfo inputTypeInfo = m_typeInfo.GetTypeInfo(((ScalarOp)n.Child0.Op).Type); 2437TypeInfo outputTypeInfo = m_typeInfo.GetTypeInfo(op.Type); 2512PlanCompiler.Assert(!TypeUtils.IsStructuredType(op.Type), 2513"No varInfo for a structured type var: Id = " + op.Var.Id + " Type = " + op.Type); 2598TypeInfo typeInfo = m_typeInfo.GetTypeInfo(op.Type); 2688TypeInfo typeInfo = m_typeInfo.GetTypeInfo(op.Type); 2709opFields = TypeHelpers.GetAllStructuralMembers(op.Type); 2864if (!TypeUtils.IsStructuredType(op.Type)) 2866if(md.TypeSemantics.IsEnumerationType(op.Type)) 2868op.Type = TypeHelpers.CreateEnumUnderlyingTypeUsage(op.Type); 2870else if (md.TypeSemantics.IsStrongSpatialType(op.Type)) 2872op.Type = TypeHelpers.CreateSpatialUnionTypeUsage(op.Type); 2879TypeInfo typeInfo = m_typeInfo.GetTypeInfo(op.Type); 2945md.TypeSemantics.IsStructurallyEqual(arg.Type, op.Type) || 2946md.TypeSemantics.IsSubTypeOf(arg.Type, op.Type)) 2952if (!TypeUtils.IsStructuredType(op.Type)) 2961TypeInfo typeInfo = m_typeInfo.GetTypeInfo(op.Type); 2964Node caseNode = m_command.CreateNode(caseOp, likeNode, n.Child0, CreateNullConstantNode(caseOp.Type));
System\Data\Query\PlanCompiler\Normalizer.cs (2)
135PlanCompiler.Assert(TypeSemantics.IsCollectionType(op.Type), "non-TVF function?"); 226if (TypeSemantics.IsCollectionType(op.Type))
System\Data\Query\PlanCompiler\PlanCompilerUtil.cs (3)
40if (!TypeSemantics.IsRowType(op.Type)) 50if (!n.Child1.Op.Type.EdmEquals(op.Type) || !n.Child2.Op.Type.EdmEquals(op.Type))
System\Data\Query\PlanCompiler\PreProcessor.cs (18)
505return m_command.CreateNode(m_command.CreateNullOp(navigateOp.Type)); 509return m_command.CreateNode(m_command.CreateNewMultisetOp(navigateOp.Type)); 625TypeUsage entityType = derefOp.Type; 1040AddTypeReference(op.Type); 1174if (TypeSemantics.IsCollectionType(op.Type) || PlanCompilerUtil.IsCollectionAggregateFunction(op, n)) 1203m_typesNeedingNullSentinel.Add(op.Type.EdmType.Identity); 1259if (!TypeSemantics.IsStructurallyEqualOrPromotableTo(resultType, op.Type)) 1295Node ret = RewriteNavigationProperty(navProperty, n.Child0, op.Type); 1375if (CanRewriteTypeTest(op.Type.EdmType, n.Child0.Op.Type.EdmType)) 1479ConstantBaseOp trueOp = m_command.CreateConstantOp(op.Type, true); 1483NullOp nullOp = m_command.CreateNullOp(op.Type); 1487CaseOp caseOp = m_command.CreateCaseOp(op.Type); 1733if (op.Scoped || op.Type.EdmType.BuiltInTypeKind != BuiltInTypeKind.EntityType) 1738EntityType entityType = (EntityType)op.Type.EdmType; 1824Op newEntityOp = m_command.CreateScopedNewEntityOp(op.Type, relProperties, scope); 1883Op newEntityOp = m_command.CreateDiscriminatedNewEntityOp(op.Type, op.DiscriminatorMap, op.EntitySet, relProperties); 1926CollectionType collectionType = TypeHelpers.GetEdmType<CollectionType>(op.Type); 2029CollectOp collectOp = m_command.CreateCollectOp(op.Type);
System\Data\Query\PlanCompiler\PropertyPushdownHelper.cs (6)
254if (chiOp != null && TypeUtils.IsStructuredType(chiOp.Type)) 278if (md.TypeSemantics.IsReferenceType(op.Type)) 282else if (md.TypeSemantics.IsNominalType(op.Type)) 287else if (md.TypeSemantics.IsRowType(op.Type)) 350md.TypeUsage childOpType = (n.Child0.Op as ScalarOp).Type; 397md.EntityType entityType = TypeHelpers.GetEdmType<md.EntityType>(childOp.Type);