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