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