1 override of Type
System.Data.Entity (1)
System\Data\Query\InternalTrees\Ops.cs (1)
545
internal override TypeUsage
Type
51 references to Type
System.Data.Entity (51)
System\Data\Mapping\FunctionImportMappingComposable.cs (3)
155
if (TypeSemantics.IsEnumerationType(argumentNode.Op.
Type
))
158
targetIqtCommand.CreateSoftCastOp(TypeHelpers.CreateEnumUnderlyingTypeUsage(argumentNode.Op.
Type
)),
162
Debug.Assert(TypeSemantics.IsPromotableTo(argumentNode.Op.
Type
, commandParam.ResultType), "Argument type must be promotable to parameter type.");
System\Data\Query\InternalTrees\Command.cs (9)
1691
Var v = this.CreateComputedVar(expr.Op.
Type
);
1774
if (!Command.EqualTypes(arg0.Op.
Type
, arg1.Op.
Type
))
1776
TypeUsage commonType = TypeHelpers.GetCommonTypeUsage(arg0.Op.
Type
, arg1.Op.
Type
);
1777
Debug.Assert(commonType != null, "No common type for " + arg0.Op.
Type
+ " and " + arg1.Op.
Type
);
1778
if (!EqualTypes(commonType, arg0.Op.
Type
))
1782
if (!EqualTypes(commonType, arg1.Op.
Type
))
System\Data\Query\InternalTrees\Dump.cs (4)
1023
if (null != op.
Type
) {
1024
attrs.Add("Type", TypeHelpers.GetFullName(op.
Type
));
1035
if (null != op.
Type
) {
1036
attrs2.Add("Type", TypeHelpers.GetFullName(op.
Type
));
System\Data\Query\InternalTrees\Ops.cs (1)
539
return (other.OpType == this.OpType && TypeSemantics.IsStructurallyEqual(this.Type, other.
Type
));
System\Data\Query\PlanCompiler\ITreeGenerator.cs (4)
312
if (TypeSemantics.IsCollectionType(_iqtCommand.Root.Op.
Type
))
1163
if (Command.EqualTypes(node.Op.
Type
, targetType))
2769
if (input.Op.
Type
.EdmType.BuiltInTypeKind == BuiltInTypeKind.RowType)
2771
IList<EdmProperty> properties = TypeHelpers.GetProperties(input.Op.
Type
);
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (11)
370
if (Command.EqualTypes(node.Op.
Type
, targetType))
1723
md.TypeUsage inputTypeUsage = n.Child0.Op.
Type
;
1813
PlanCompiler.Assert(Command.EqualTypes(newType, n.Child0.Op.
Type
),
1836
PlanCompiler.Assert(md.TypeSemantics.IsPrimitiveType(n.Child0.Op.
Type
), "Primitive type expected.");
1844
PlanCompiler.Assert(md.TypeSemantics.IsPrimitiveType(n.Child0.Op.
Type
, md.PrimitiveTypeKind.Geography) || md.TypeSemantics.IsPrimitiveType(n.Child0.Op.
Type
, md.PrimitiveTypeKind.Geometry), "Union spatial type expected.");
1856
if (underlyingType.PrimitiveTypeKind == ((md.PrimitiveType)n.Child0.Op.
Type
.EdmType).PrimitiveTypeKind)
1991
if (!m_typeInfo.GetTypeInfo(n.Op.
Type
).HasNullSentinelProperty)
2005
PlanCompiler.Assert(currentNullSentinel.Op.
Type
.EdmEquals(integerType), "Column that is expected to be a null sentinel is not of Integer type.");
2336
md.TypeUsage inputType = n.Child0.Op.
Type
;
2337
md.TypeUsage outputType = op.
Type
;
System\Data\Query\PlanCompiler\Normalizer.cs (3)
117
PlanCompiler.Assert(TypeSemantics.IsCollectionType(collectionNode.Op.
Type
), "non-collection usage for Unnest?");
141
CollectOp collectOp = m_command.CreateCollectOp(n.Op.
Type
);
173
softCastType = TypeHelpers.GetEdmType<CollectionType>(argNode.Op.
Type
).TypeUsage;
System\Data\Query\PlanCompiler\PlanCompilerUtil.cs (3)
50
if (!n.Child1.Op.
Type
.EdmEquals(op.Type) || !n.Child2.Op.
Type
.EdmEquals(op.Type))
82
TypeSemantics.IsCollectionType(n.Child0.Op.
Type
) &&
System\Data\Query\PlanCompiler\PreProcessor.cs (8)
652
m_command.CreateGetEntityRefOp(derefOpNode.Child0.Op.
Type
),
1228
if (op.OpType == OpType.IsNull && TypeSemantics.IsRowType(n.Child0.Op.
Type
) || TypeSemantics.IsComplexType(n.Child0.Op.
Type
))
1230
StructuredTypeNullabilityAnalyzer.MarkAsNeedingNullSentinel(m_typesNeedingNullSentinel, n.Child0.Op.
Type
);
1375
if (CanRewriteTypeTest(op.Type.EdmType, n.Child0.Op.
Type
.EdmType))
1400
if (CanRewriteTypeTest(op.IsOfType.EdmType, n.Child0.Op.
Type
.EdmType))
1605
EntityTypeBase entityType = (EntityTypeBase)op.
Type
.EdmType;
1673
m_command.CreateNode(m_command.CreateGetRefKeyOp(keyExpr.Op.
Type
), sourceEndNode));
System\Data\Query\PlanCompiler\PropertyPushdownHelper.cs (1)
434
if (!TypeUtils.IsStructuredType(op.
Type
))
System\Data\Query\PlanCompiler\TransformationRules.cs (4)
347
Node thenNode = this.Command.CreateNode(this.Command.CreateNullOp(elseNode.Op.
Type
));
348
Node caseNode = this.Command.CreateNode(this.Command.CreateCaseOp(elseNode.Op.
Type
), whenNode, thenNode, elseNode);
1298
newNode = context.Command.CreateNode(context.Command.CreateNullOp(castNullOp.Op.
Type
));
3220
Var newVar = m_command.CreateComputedVar(n.Child0.Op.
Type
);