499 references to ResultType
System.Data.Entity (499)
System\Data\Common\CommandTrees\DbModificationCommandTree.cs (1)
62
return this._parameters.Select(p => new KeyValuePair<string, TypeUsage>(p.ParameterName, p.
ResultType
));
System\Data\Common\CommandTrees\DbQueryCommandTree.cs (1)
86
return this._parameters.Select(p => new KeyValuePair<string, TypeUsage>(p.ParameterName, p.
ResultType
));
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (15)
187
TypeUsage newVarType = this.VisitTypeUsage(varRef.
ResultType
);
188
if (!object.ReferenceEquals(varRef.
ResultType
, newVarType))
326
TypeUsage newType = this.VisitTypeUsage(expression.
ResultType
);
327
if (!object.ReferenceEquals(expression.
ResultType
, newType))
348
!object.ReferenceEquals(from.
ResultType
.EdmType, to.
ResultType
.EdmType) ||
349
!from.
ResultType
.EdmEquals(to.
ResultType
))
543
if(TypeSemantics.IsRowType(exp.
ResultType
))
676
return this.VisitTypeUnary(expression, expression.
ResultType
, CqtBuilder.TreatAs);
697
return this.VisitTypeUnary(expression, expression.
ResultType
, CqtBuilder.CastTo);
739
TypeUsage newType = this.VisitTypeUsage(expression.
ResultType
);
741
bool unchanged = (object.ReferenceEquals(expression.
ResultType
, newType) && object.ReferenceEquals(expression.Arguments, newArguments));
768
EntityType targetType = (EntityType)TypeHelpers.GetEdmType<RefType>(expression.
ResultType
).ElementType;
972
TypeHelpers.GetEdmType<RowType>(TypeHelpers.GetEdmType<CollectionType>(expression.
ResultType
).TypeUsage);
System\Data\Common\CommandTrees\ExpressionBindings.cs (3)
60
public TypeUsage VariableType { get { return _varRef.
ResultType
; } }
102
public TypeUsage VariableType { get { return _varRef.
ResultType
; } }
117
public TypeUsage GroupVariableType { get { return _groupVarRef.
ResultType
; } }
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (4)
187
TypeUsage resultType = TypeHelpers.CreateCollectionTypeUsage(argument.
ResultType
);
517
return new DbSkipExpression(input.Expression.
ResultType
, input, validSortOrder, count);
536
return new DbSortExpression(input.Expression.
ResultType
, input, validSortOrder);
964
DbExpression escape = DbExpressionBuilder.Null(pattern.
ResultType
);
System\Data\Common\CommandTrees\ExpressionBuilder\EdmFunctions.cs (1)
61
argumentTypes[idx] = arguments[idx].
ResultType
;
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (69)
52
if (!TypeSemantics.IsStructurallyEqualOrPromotableTo(expression.
ResultType
, requiredResultType))
61
TypeHelpers.GetFullName(expression.
ResultType
),
79
bool valueIsPrimitive = TypeHelpers.TryGetPrimitiveTypeKind(expression.
ResultType
, out valueTypeKind);
92
: TypeHelpers.GetFullName(expression.
ResultType
)),
119
if (TypeHelpers.GetCommonTypeUsage(endType, from.
ResultType
) == null)
124
else if (!TypeSemantics.IsStructurallyEqualOrPromotableTo(from.
ResultType
.EdmType, endType.EdmType))
134
if (!TypeSemantics.IsCollectionType(argument.
ResultType
))
144
if (!TypeSemantics.IsCollectionType(left.
ResultType
) || !TypeSemantics.IsCollectionType(right.
ResultType
))
149
TypeUsage commonType = TypeHelpers.GetCommonTypeUsage(left.
ResultType
, right.
ResultType
);
162
if (!TypeHelpers.IsSetComparableOpType(TypeHelpers.GetElementTypeUsage(left.
ResultType
)))
164
throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_InvalidTypeForSetOperation(TypeHelpers.GetElementTypeUsage(left.
ResultType
).Identity, typeof(TExpressionType).Name), "left");
167
if (!TypeHelpers.IsSetComparableOpType(TypeHelpers.GetElementTypeUsage(right.
ResultType
)))
169
throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_InvalidTypeForSetOperation(TypeHelpers.GetElementTypeUsage(right.
ResultType
).Identity, typeof(TExpressionType).Name), "right");
232
return TypeHelpers.GetCommonTypeUsage(left.
ResultType
, right.
ResultType
);
268
if (!TypeHelpers.TryGetCollectionElementType(input.
ResultType
, out elementType))
304
if (!TypeHelpers.TryGetCollectionElementType(input.
ResultType
, out elementType))
365
if (!TypeHelpers.IsValidSortOpKeyType(key.
ResultType
))
381
if (!TypeSemantics.IsPrimitiveType(key.
ResultType
, PrimitiveTypeKind.String))
438
return predicate.
ResultType
;
558
return input.Expression.
ResultType
;
585
if (!TypeHelpers.IsValidGroupKeyType(keyInfo.Value.
ResultType
))
591
columns.Add(new KeyValuePair<string, TypeUsage>(keyInfo.Key, keyInfo.Value.
ResultType
));
656
return CreateCollectionResultType(projection.
ResultType
);
688
if (!TypeSemantics.IsIntegerNumericType(count.
ResultType
))
859
if (!TypeSemantics.IsPrimitiveType(argument.
ResultType
, PrimitiveTypeKind.Boolean))
864
return argument.
ResultType
;
874
resultType = argument.
ResultType
;
881
if (TypeSemantics.IsUnsignedNumericType(argument.
ResultType
))
884
if (TypeHelpers.TryGetClosestPromotableType(argument.
ResultType
, out closestPromotableType))
890
throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Arithmetic_InvalidUnsignedTypeForUnaryMinus(argument.
ResultType
.EdmType.FullName));
924
equality = TypeSemantics.IsEqualComparableTo(left.
ResultType
, right.
ResultType
);
925
order = TypeSemantics.IsOrderComparableTo(left.
ResultType
, right.
ResultType
);
930
equality = TypeSemantics.IsEqualComparableTo(left.
ResultType
, right.
ResultType
);
934
order = TypeSemantics.IsOrderComparableTo(left.
ResultType
, right.
ResultType
);
957
if (TypeSemantics.IsCollectionType(argument.
ResultType
))
965
if (!TypeHelpers.IsValidIsNullOpType(argument.
ResultType
))
968
if (!allowRowType || !TypeSemantics.IsRowType(argument.
ResultType
))
1009
if (!TypeSemantics.IsCastAllowed(argument.
ResultType
, toType))
1011
throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Cast_InvalidCast(TypeHelpers.GetFullName(argument.
ResultType
), TypeHelpers.GetFullName(toType)));
1027
if (!TypeSemantics.IsValidPolymorphicCast(argument.
ResultType
, asType))
1052
if (!TypeHelpers.TryGetCollectionElementType(argument.
ResultType
, out elementType) ||
1077
if (!TypeSemantics.IsValidPolymorphicCast(argument.
ResultType
, type))
1097
if (!TypeHelpers.TryGetRefEntityType(argument.
ResultType
, out entityType))
1113
if (!TypeHelpers.TryGetEdmType<EntityType>(argument.
ResultType
, out entityType) || null == entityType)
1203
if (!TypeHelpers.TryGetEdmType<RefType>(argument.
ResultType
, out refType) || null == refType)
1297
CollectionType inputType = TypeHelpers.GetEdmType<CollectionType>(argument.
ResultType
);
1303
return argument.
ResultType
;
1318
return TypeHelpers.GetEdmType<CollectionType>(argument.
ResultType
).TypeUsage;
1342
return left.
ResultType
;
1379
if (!TypeSemantics.IsIntegerNumericType(limit.
ResultType
))
1401
return argument.
ResultType
;
1430
commonResultType = exp.
ResultType
;
1434
commonResultType = TypeHelpers.GetCommonTypeUsage(exp.
ResultType
, commonResultType);
1444
commonResultType = TypeHelpers.GetCommonTypeUsage(elseExpression.
ResultType
, commonResultType);
1513
RequireCompatibleType(exp, lambda.Variables[idx].
ResultType
, "arguments", idx);
1522
return lambda.Body.
ResultType
;
1532
commonElementType = exp.
ResultType
;
1536
commonElementType = TypeSemantics.GetCommonType(commonElementType, exp.
ResultType
);
1575
columnTypes.Add(new KeyValuePair<string, TypeUsage>(columnValue.Key, columnValue.Value.
ResultType
));
1715
if (TypeHelpers.TryGetEdmType<StructuralType>(instance.
ResultType
, out structType))
1735
throw EntityUtil.ArgumentOutOfRange(System.Data.Entity.Strings.Cqt_Factory_NoSuchProperty(propertyName, TypeHelpers.GetFullName(instance.
ResultType
)), "propertyName");
2057
TypeSemantics.IsIntegerNumericType(expression.
ResultType
) &&
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (4)
202
StructuralType declType = instance.
ResultType
.EdmType as StructuralType;
228
throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Copier_EndNotFound(expression.Property.Name, TypeHelpers.GetFullName(newInstance.
ResultType
.EdmType)));
237
throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Copier_NavPropertyNotFound(expression.Property.Name, TypeHelpers.GetFullName(newInstance.
ResultType
.EdmType)));
246
throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Copier_PropertyNotFound(expression.Property.Name, TypeHelpers.GetFullName(newInstance.
ResultType
.EdmType)));
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (1)
361
Dump(expr.
ResultType
, "ResultType");
System\Data\Common\CommandTrees\Internal\ExpressionKeyGen.cs (10)
178
_key.Append(e.
ResultType
.Identity);
191
Debug.Assert(TypeSemantics.IsScalarType(e.
ResultType
), "Non-scalar type constant expressions are not supported.");
192
var primitive = TypeHelpers.GetPrimitiveTypeUsageForScalar(e.
ResultType
);
290
_key.Append(e.
ResultType
.Identity);
296
_key.Append(e.
ResultType
.Identity);
311
_key.Append(e.
ResultType
.Identity);
327
_key.Append(v.
ResultType
.Identity);
495
_key.Append(e.
ResultType
.EdmType.Identity);
530
_key.Append(TypeHelpers.GetEdmType<RefType>(e.
ResultType
).ElementType.FullName);
573
_key.Append(e.
ResultType
.EdmType.Identity);
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (12)
192
PrinterVisitor.AppendTypeSpecifier(queryNode, tree.Query.
ResultType
);
461
AppendTypeSpecifier(retInfo, expr.
ResultType
);
540
AppendParameters(lambdaInfo, expression.Lambda.Variables.Select(v => new KeyValuePair<string, TypeUsage>(v.VariableName, v.
ResultType
)));
685
AppendType(argInfo, e.
ResultType
);
693
AppendTypeSpecifier(retInfo, e.
ResultType
);
754
AppendTypeSpecifier(retInfo, e.
ResultType
);
756
if (BuiltInTypeKind.CollectionType == e.
ResultType
.EdmType.BuiltInTypeKind)
765
string description = (BuiltInTypeKind.RowType == e.
ResultType
.EdmType.BuiltInTypeKind) ? "Column" : "Property";
766
IList<EdmProperty> properties = TypeHelpers.GetProperties(e.
ResultType
);
772
if (BuiltInTypeKind.EntityType == e.
ResultType
.EdmType.BuiltInTypeKind &&
795
AppendFullName(retNode.Text, TypeHelpers.GetEdmType<RefType>(e.
ResultType
).ElementType);
909
RowType outputType = TypeHelpers.GetEdmType<RowType>(TypeHelpers.GetEdmType<CollectionType>(e.
ResultType
).TypeUsage);
System\Data\Common\CommandTrees\Internal\PatternMatchRules.cs (3)
188
internal static Func<DbExpression, bool> MatchComplexType { get { return (e => TypeSemantics.IsComplexType(e.
ResultType
)); } }
193
internal static Func<DbExpression, bool> MatchEntityType { get { return (e => TypeSemantics.IsEntityType(e.
ResultType
)); } }
198
internal static Func<DbExpression, bool> MatchRowType { get { return (e => TypeSemantics.IsRowType(e.
ResultType
)); } }
System\Data\Common\CommandTrees\Internal\Validator.cs (4)
78
var newScope = scopeVariables.ToDictionary(var => var.VariableName, var => var.
ResultType
, StringComparer.Ordinal);
108
if (!TypeSemantics.IsEqual(varRef.
ResultType
, foundType))
128
if (!TypeSemantics.IsEqual(paramRef.
ResultType
, foundParam.
ResultType
))
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (7)
221
EntityType constructedEntityType = TypeHelpers.GetEdmType<EntityType>(entityConstructor.
ResultType
);
441
RowType resultRow = TypeHelpers.GetEdmType<RowType>(rowConstructor.
ResultType
);
457
!TypeSemantics.IsBooleanType(casePredicate.Then[0].
ResultType
) || !TypeSemantics.IsBooleanType(casePredicate.Else.
ResultType
) ||
639
TypeUsage innerResultTypeUsage = innerNew.
ResultType
;
828
expression.
ResultType
.EdmType.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType)
834
var primitiveType = (PrimitiveType)expression.
ResultType
.EdmType;
System\Data\Common\CommandTrees\OperatorExpressions.cs (5)
239
Debug.Assert(TypeSemantics.IsCastAllowed(argument.
ResultType
, type), "DbCastExpression represents an invalid cast");
460
Debug.Assert(TypeSemantics.IsValidPolymorphicCast(argument.
ResultType
, asType), "DbTreatExpression represents an invalid treat");
496
Debug.Assert(TypeSemantics.IsPrimitiveType(input.
ResultType
, PrimitiveTypeKind.String), "DbLikeExpression argument must have a string result type");
497
Debug.Assert(TypeSemantics.IsPrimitiveType(pattern.
ResultType
, PrimitiveTypeKind.String), "DbLikeExpression pattern must have a string result type");
498
Debug.Assert(TypeSemantics.IsPrimitiveType(escape.
ResultType
, PrimitiveTypeKind.String), "DbLikeExpression escape must have a string result type");
System\Data\Common\CommandTrees\RelationalExpressions.cs (5)
81
Debug.Assert(TypeSemantics.IsCollectionType(argument.
ResultType
), "DbDistinctExpression argument must have a collection result type");
160
Debug.Assert(object.ReferenceEquals(resultType, left.
ResultType
), "DbExceptExpression result type should be result type of left argument");
194
Debug.Assert(TypeSemantics.IsPrimitiveType(predicate.
ResultType
, PrimitiveTypeKind.Boolean), "DbFilterExpression predicate must have a Boolean result type");
428
Debug.Assert(object.ReferenceEquals(resultType, argument.
ResultType
), "DbLimitExpression result type must be the result type of the argument");
528
Debug.Assert(TypeSemantics.IsPrimitiveType(predicate.
ResultType
, PrimitiveTypeKind.Boolean), "DbQuantifierExpression predicate must have a Boolean result type");
System\Data\Common\CommandTrees\ValueExpressions.cs (3)
330
Debug.Assert(object.ReferenceEquals(resultType, lambda.Body.
ResultType
), "DbLambdaExpression result type must be Lambda body result type");
593
if (!TypeSemantics.IsReferenceType(targetEntityRef.
ResultType
))
600
EntityTypeBase targetType = TypeHelpers.GetEdmType<RefType>(targetEntityRef.
ResultType
).ElementType;
System\Data\Common\EntitySql\CqlQuery.cs (1)
114
TypeHelpers.AssertEdmType(lambda.Body.
ResultType
);
System\Data\Common\EntitySql\SemanticAnalyzer.cs (135)
309
ValidateQueryResultType(converted.
ResultType
, queryStatement.Expr.ErrCtx);
588
leftExpr = DbExpressionBuilder.Null(rightExpr.
ResultType
);
593
rightExpr = DbExpressionBuilder.Null(leftExpr.
ResultType
);
756
ValidateDistinctProjection(definition.
ResultType
, groupAggregateExpr.ArgExpr.ErrCtx, null);
937
(varRef) => varRef.
ResultType
,
961
ConvertUntypedNullsInArguments(args, overload.Parameters, (formal) => formal.
ResultType
);
1372
bool isPromotable = TypeSemantics.IsPromotableTo(args[idx].
ResultType
, memberModelTypeUsage);
1376
if (!isPromotable && !TypeSemantics.IsPromotableTo(memberModelTypeUsage, args[idx].
ResultType
))
1380
args[idx].
ResultType
.EdmType.FullName,
1386
!TypeSemantics.IsSubTypeOf(args[idx].
ResultType
, memberModelTypeUsage))
1397
args[idx].
ResultType
.EdmType.FullName,
1512
argTypes = convertedArgs.Select(a => a != null ? a.
ResultType
: null).ToList();
1574
var refType = targetEntityRef.
ResultType
.EdmType as RefType;
1691
var sourceRefType = sourceEntityRef.
ResultType
.EdmType as RefType;
1694
var entityType = sourceEntityRef.
ResultType
.EdmType as EntityType;
1698
sourceRefType = (RefType)sourceEntityRef.
ResultType
.EdmType;
1805
if (!TypeSemantics.IsEntityType(converted.
ResultType
))
1807
throw EntityUtil.EntitySqlError(refExpr.ArgExpr.ErrCtx, Strings.RefArgIsNotOfEntityType(converted.
ResultType
.EdmType.FullName));
1833
if (!TypeSemantics.IsReferenceType(converted.
ResultType
))
1835
throw EntityUtil.EntitySqlError(deRefExpr.ArgExpr.ErrCtx, Strings.DeRefArgIsNotOfRefType(converted.
ResultType
.EdmType.FullName));
1876
RowType inputKeyRowType = keyRowExpression.
ResultType
.EdmType as RowType;
1889
if (!TypeSemantics.IsStructurallyEqualOrPromotableTo(keyRowExpression.
ResultType
, TypeUsage.Create(entityKeyRowType)))
1945
if (TypeSemantics.IsEntityType(converted.
ResultType
))
1949
else if (!TypeSemantics.IsReferenceType(converted.
ResultType
))
1951
throw EntityUtil.EntitySqlError(keyExpr.ArgExpr.ErrCtx, Strings.InvalidKeyArgument(converted.
ResultType
.EdmType.FullName));
1991
if (!TypeSemantics.IsNumericType(operands.Left.
ResultType
))
1998
if (!TypeSemantics.IsNumericType(operands.Right.
ResultType
))
2003
if (null == TypeHelpers.GetCommonTypeUsage(operands.Left.
ResultType
, operands.Right.
ResultType
))
2006
operands.Left.
ResultType
.EdmType.FullName, operands.Right.
ResultType
.EdmType.FullName));
2028
if (!TypeSemantics.IsNumericType(operands.Left.
ResultType
) && !TypeSemantics.IsPrimitiveType(operands.Left.
ResultType
, PrimitiveTypeKind.String))
2033
if (!TypeSemantics.IsNumericType(operands.Right.
ResultType
) && !TypeSemantics.IsPrimitiveType(operands.Right.
ResultType
, PrimitiveTypeKind.String))
2038
if (TypeHelpers.GetCommonTypeUsage(operands.Left.
ResultType
, operands.Right.
ResultType
) == null)
2041
operands.Left.
ResultType
.EdmType.FullName, operands.Right.
ResultType
.EdmType.FullName));
2074
if (!IsBooleanType(leftExpr.
ResultType
))
2082
if (null != rightExpr && !IsBooleanType(rightExpr.
ResultType
))
2111
if (!TypeSemantics.IsEqualComparableTo(compArgs.Left.
ResultType
, compArgs.Right.
ResultType
))
2114
compArgs.Left.
ResultType
.EdmType.FullName, compArgs.Right.
ResultType
.EdmType.FullName));
2138
if (!TypeSemantics.IsOrderComparableTo(compArgs.Left.
ResultType
, compArgs.Right.
ResultType
))
2141
compArgs.Left.
ResultType
.EdmType.FullName, compArgs.Right.
ResultType
.EdmType.FullName));
2173
if (!TypeSemantics.IsCollectionType(leftExpr.
ResultType
))
2186
if (!TypeSemantics.IsCollectionType(rightExpr.
ResultType
))
2192
TypeUsage leftElemType = TypeHelpers.GetElementTypeUsage(leftExpr.
ResultType
);
2193
TypeUsage rightElemType = TypeHelpers.GetElementTypeUsage(rightExpr.
ResultType
);
2204
if (!TypeHelpers.IsSetComparableOpType(TypeHelpers.GetElementTypeUsage(leftExpr.
ResultType
)))
2210
TypeHelpers.GetElementTypeUsage(leftExpr.
ResultType
).EdmType.FullName));
2216
if (!TypeHelpers.IsSetComparableOpType(TypeHelpers.GetElementTypeUsage(rightExpr.
ResultType
)))
2222
TypeHelpers.GetElementTypeUsage(rightExpr.
ResultType
).EdmType.FullName));
2247
if (!TypeSemantics.IsCollectionType(leftExpr.
ResultType
))
2255
if (astBuiltInExpr.Kind == AST.BuiltInKind.Distinct && !TypeHelpers.IsValidDistinctOpType(TypeHelpers.GetElementTypeUsage(leftExpr.
ResultType
)))
2274
if (!TypeSemantics.IsCollectionType(rightExpr.
ResultType
))
2285
TypeUsage elementType = TypeHelpers.GetElementTypeUsage(rightExpr.
ResultType
);
2290
if (TypeSemantics.IsCollectionType(leftExpr.
ResultType
))
2298
TypeUsage commonElemType = TypeHelpers.GetCommonTypeUsage(leftExpr.
ResultType
, TypeHelpers.GetElementTypeUsage(rightExpr.
ResultType
));
2301
throw EntityUtil.EntitySqlError(astBuiltInExpr.ErrCtx, Strings.InvalidInExprArgs(leftExpr.
ResultType
.EdmType.FullName, rightExpr.
ResultType
.EdmType.FullName));
2561
rowColumns.Add(aliasName, colExpr.
ResultType
);
2583
var multisetTypes = mSetExprs.Where(e => e != null).Select(e => e.
ResultType
).ToArray();
2639
if (!IsBooleanType(whenExpression.
ResultType
))
2659
var resultTypes = thenExprList.Where(e => e != null).Select(e => e.
ResultType
).ToList();
2662
resultTypes.Add(elseExpr.
ResultType
);
2938
ValidateDistinctProjection(projectExpression.
ResultType
, selectClause);
2989
if (!TypeSemantics.IsPromotableTo(expr.
ResultType
, sr.TypeResolver.Int64Type))
2991
throw EntityUtil.EntitySqlError(errCtx, Strings.PlaceholderExpressionMustBeCompatibleWithEdm64(exprName, expr.
ResultType
.EdmType.FullName));
3087
if (!TypeSemantics.IsCollectionType(converted.
ResultType
))
3337
if (!IsBooleanType(filterConditionExpr.
ResultType
))
3456
if (!TypeHelpers.IsValidGroupKeyType(keyExpr.
ResultType
))
3615
converted = converted.ExpressionKind == CommandTrees.DbExpressionKind.Null ? converted : converted.
ResultType
.Null();
3857
DbVariableReferenceExpression aggVarRef = groupAggregateInfo.AggregateStubExpression.
ResultType
.Variable(groupAggregateInfo.AggregateName);
3963
Debug.Assert(TypeSemantics.IsCollectionType(lambdaVariable.
ResultType
));
3971
TypeSemantics.IsRowType(projectExpression.Projection.
ResultType
))
3973
if (!TypeSemantics.IsEqual(projectExpression.Projection.
ResultType
, projectExpression.Input.Variable.
ResultType
))
3978
IBaseList<EdmMember> inputVariableTypeProperties = TypeHelpers.GetAllStructuralMembers(projectExpression.Input.Variable.
ResultType
);
4009
VarRef = varBasedKeyExpr.
ResultType
.Variable(name);
4142
DbVariableReferenceExpression projectionExpressionRef = projectionExpression.Value.
ResultType
.Variable(projectionExpression.Key);
4183
if (!TypeHelpers.IsValidSortOpKeyType(keyExpr.
ResultType
))
4199
if (!IsStringType(keyExpr.
ResultType
))
4201
throw EntityUtil.EntitySqlError(orderClauseItem.OrderExpr.ErrCtx, Strings.InvalidKeyTypeForCollation(keyExpr.
ResultType
.EdmType.FullName));
4387
if (TypeSemantics.IsNumericType(args.Left.
ResultType
))
4403
argTypes.Add(args.Left.
ResultType
);
4404
argTypes.Add(args.Right.
ResultType
);
4479
if (TypeSemantics.IsUnsignedNumericType(argument.
ResultType
))
4482
if (!TypeHelpers.TryGetClosestPromotableType(argument.
ResultType
, out closestPromotableType))
4484
throw EntityUtil.EntitySqlError(Strings.InvalidUnsignedTypeForUnaryMinusOperation(argument.
ResultType
.EdmType.FullName));
4726
if (!TypeSemantics.IsCollectionType(elemExpr.
ResultType
))
4731
if (!TypeSemantics.IsCollectionType(TypeHelpers.GetElementTypeUsage(elemExpr.
ResultType
)))
4847
if (isNullExpr != null && !TypeHelpers.IsValidIsNullOpType(isNullExpr.
ResultType
))
4867
if (isNullExpr != null && !TypeHelpers.IsValidIsNullOpType(isNullExpr.
ResultType
))
4893
if (!isNominalTypeAllowed && !TypeSemantics.IsEntityType(exprToFilter.
ResultType
))
4897
exprToFilter.
ResultType
.EdmType.BuiltInTypeKind.ToString(),
4898
exprToFilter.
ResultType
.EdmType.FullName));
4900
else if (isNominalTypeAllowed && !TypeSemantics.IsNominalType(exprToFilter.
ResultType
))
4904
exprToFilter.
ResultType
.EdmType.BuiltInTypeKind.ToString(),
4905
exprToFilter.
ResultType
.EdmType.FullName));
4921
if (!TypeSemantics.IsPolymorphicType(exprToFilter.
ResultType
))
4931
if (!IsSubOrSuperType(exprToFilter.
ResultType
, typeToFilterTo))
4933
throw EntityUtil.EntitySqlError(bltInExpr.ErrCtx, Strings.NotASuperOrSubType(exprToFilter.
ResultType
.EdmType.FullName,
4988
else if (!isNominalTypeAllowed && !TypeSemantics.IsEntityType(exprToTreat.
ResultType
))
4992
exprToTreat.
ResultType
.EdmType.BuiltInTypeKind.ToString(),
4993
exprToTreat.
ResultType
.EdmType.FullName));
4995
else if (isNominalTypeAllowed && !TypeSemantics.IsNominalType(exprToTreat.
ResultType
))
4999
exprToTreat.
ResultType
.EdmType.BuiltInTypeKind.ToString(),
5000
exprToTreat.
ResultType
.EdmType.FullName));
5003
if (!TypeSemantics.IsPolymorphicType(exprToTreat.
ResultType
))
5013
if (!IsSubOrSuperType(exprToTreat.
ResultType
, typeToTreatTo))
5015
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx, Strings.NotASuperOrSubType(exprToTreat.
ResultType
.EdmType.FullName,
5048
if (!TypeSemantics.IsScalarType(exprToCast.
ResultType
))
5053
if (!TypeSemantics.IsCastAllowed(exprToCast.
ResultType
, typeToCastTo))
5055
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx, Strings.InvalidCast(exprToCast.
ResultType
.EdmType.FullName, typeToCastTo.EdmType.FullName));
5075
if (!TypeSemantics.IsCollectionType(exprToFilter.
ResultType
))
5080
TypeUsage elementType = TypeHelpers.GetElementTypeUsage(exprToFilter.
ResultType
);
5140
else if (!IsStringType(matchExpr.
ResultType
))
5150
else if (!IsStringType(patternExpr.
ResultType
))
5162
else if (!IsStringType(escapeExpr.
ResultType
))
5216
TypeUsage rangeCommonType = TypeHelpers.GetCommonTypeUsage(limitsExpr.Left.
ResultType
, limitsExpr.Right.
ResultType
);
5219
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx, Strings.BetweenLimitsTypesAreNotCompatible(limitsExpr.Left.
ResultType
.EdmType.FullName, limitsExpr.Right.
ResultType
.EdmType.FullName));
5225
if (!TypeSemantics.IsOrderComparableTo(limitsExpr.Left.
ResultType
, limitsExpr.Right.
ResultType
))
5227
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx, Strings.BetweenLimitsTypesAreNotOrderComparable(limitsExpr.Left.
ResultType
.EdmType.FullName, limitsExpr.Right.
ResultType
.EdmType.FullName));
5242
if (!TypeSemantics.IsOrderComparableTo(valueExpr.
ResultType
, rangeCommonType))
5244
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx, Strings.BetweenValueIsNotOrderComparable(valueExpr.
ResultType
.EdmType.FullName, rangeCommonType.EdmType.FullName));
System\Data\Common\EntitySql\SemanticResolver.cs (11)
188
Debug.Assert(paramDef.
ResultType
.IsReadOnly, "paramDef.ResultType.IsReadOnly must be set");
215
Debug.Assert(varDef.
ResultType
.IsReadOnly, "varDef.ResultType.IsReadOnly must be set");
600
if (TypeSemantics.IsCollectionType(valueExpr.
ResultType
))
602
throw EntityUtil.EntitySqlError(errCtx, Strings.NotAMemberOfCollection(name, valueExpr.
ResultType
.EdmType.FullName));
606
throw EntityUtil.EntitySqlError(errCtx, Strings.NotAMemberOfType(name, valueExpr.
ResultType
.EdmType.FullName));
619
if (Helper.IsStructuralType(valueExpr.
ResultType
.EdmType))
622
if (TypeResolver.Perspective.TryGetMember((StructuralType)valueExpr.
ResultType
.EdmType, name, _parserOptions.NameComparisonCaseInsensitive /*ignoreCase*/, out member))
643
if (TypeSemantics.IsReferenceType(valueExpr.
ResultType
))
646
TypeUsage derefExprType = derefExpr.
ResultType
;
654
throw EntityUtil.EntitySqlError(errCtx, Strings.InvalidDeRefProperty(name, derefExprType.EdmType.FullName, valueExpr.
ResultType
.EdmType.FullName));
1483
base.AttachToAstNode(aggregateName, aggregateDefinition.
ResultType
);
System\Data\Common\EntitySql\TypeResolver.cs (2)
287
overload.Parameters.Select(p => p.
ResultType
).SequenceEqual(functionInfo.Parameters.Select(p => p.
ResultType
), TypeUsageStructuralComparer.Instance)))
System\Data\Mapping\FunctionImportMappingComposable.cs (9)
162
Debug.Assert(TypeSemantics.IsPromotableTo(argumentNode.Op.Type, commandParam.
ResultType
), "Argument type must be promotable to parameter type.");
229
TypeSemantics.IsPromotableTo(queryExpression.
ResultType
, this.FunctionImport.ReturnParameter.TypeUsage),
236
TypeSemantics.IsEqual(queryExpression.
ResultType
, this.FunctionImport.ReturnParameter.TypeUsage),
403
return columnRef.Equal(columnRef.
ResultType
.Constant(condition.Value));
417
if (!TypeSemantics.IsEqual(accessorExpr.
ResultType
, edmProperty.TypeUsage))
426
Debug.Assert(row.
ResultType
.EdmType.BuiltInTypeKind == BuiltInTypeKind.RowType, "Input type is expected to be a row type.");
427
var rowType = (RowType)row.
ResultType
.EdmType;
444
Debug.Assert(TypeSemantics.IsCollectionType(queryExpression.
ResultType
), "Store function must be TVF (collection expected).");
445
var collectionType = (CollectionType)queryExpression.
ResultType
.EdmType;
System\Data\Mapping\Update\Internal\Propagator.cs (1)
116
TypeUsage nodeType = node.
ResultType
;
System\Data\Mapping\Update\Internal\Propagator.Evaluator.cs (2)
474
TypeUsage nodeType = node.
ResultType
;
500
TypeUsage nodeType = node.
ResultType
;
System\Data\Mapping\ViewGeneration\DiscriminatorMap.cs (4)
84
if (project.Projection.
ResultType
.EdmType.BuiltInTypeKind != BuiltInTypeKind.EntityType) { return false; }
195
entityType = (EntityType)constructor.
ResultType
.EdmType;
272
if (!newX.
ResultType
.EdmType.EdmEquals(newY.
ResultType
.EdmType)) { return false; }
System\Data\Mapping\ViewGeneration\GeneratedView.cs (1)
115
CollectionType queryResultType = (commandTree.Query.
ResultType
.EdmType) as CollectionType;
System\Data\Mapping\ViewGeneration\Structures\CaseStatement.cs (2)
342
Debug.Assert(typeConstructor != null && typeConstructor.
ResultType
.EdmType.BuiltInTypeKind == BuiltInTypeKind.EntityType,
345
(EntityType)typeConstructor.
ResultType
.EdmType,
System\Data\Mapping\ViewGeneration\Utils\ExternalCalls.cs (1)
72
parameters.Select(pInfo => pInfo.
ResultType
.Variable(pInfo.ParameterName)));
System\Data\Mapping\ViewValidator.cs (3)
143
EdmType type = expression.
ResultType
.EdmType;
367
StructuralType structuralType = (expression.
ResultType
.EdmType as StructuralType);
379
if (expression.
ResultType
.EdmType.BuiltInTypeKind == BuiltInTypeKind.AssociationType)
System\Data\Metadata\EdmItemCollection.cs (2)
472
if (!TypeSemantics.IsStructurallyEqual(function.ReturnParameter.TypeUsage, generatedDefinition.Body.
ResultType
))
474
throw EntityUtil.FunctionDefinitionResultTypeMismatch(function, generatedDefinition.Body.
ResultType
);
System\Data\Metadata\TypeHelpers.cs (1)
69
AssertEdmType(queryCommandTree.Query.
ResultType
);
System\Data\Objects\ELinq\ELinqQueryState.cs (1)
89
return converter.Convert().
ResultType
;
System\Data\Objects\ELinq\ExpressionConverter.cs (18)
738
return DbExpressionBuilder.Null(expression.
ResultType
);
743
return DbExpressionBuilder.Constant(expression.
ResultType
, objParam.Value);
759
if (null == GetCastTargetType(setSource.
ResultType
, toClrType, fromClrType, true))
766
TypeUsage toType = GetCastTargetType(source.
ResultType
, toClrType, fromClrType, true);
860
if (InitializerMetadata.TryGetInitializerMetadata(input.
ResultType
, out initializerMetadata))
931
TypeUsage toType = GetCastTargetType(cqt.
ResultType
, toClrType, fromClrType, false);
1170
VerifyTypeSupportedForComparison(operandClrType, operand.
ResultType
, null);
1180
VerifyTypeSupportedForComparison(leftClrType, left.
ResultType
, null);
1181
VerifyTypeSupportedForComparison(rightClrType, right.
ResultType
, null);
1184
TypeUsage leftType = left.
ResultType
;
1185
TypeUsage rightType = right.
ResultType
;
1191
RefType leftRefType = left.
ResultType
.EdmType as RefType;
1192
RefType rightRefType = right.
ResultType
.EdmType as RefType;
1202
RowType leftType = left.
ResultType
.EdmType as RowType;
1203
RowType rightType = left.
ResultType
.EdmType as RowType;
1383
translatedPatternExpression = DbExpressionBuilder.Constant(constantExpression.
ResultType
, preparedValue);
1475
translatedArgumentTypes.Add(translatedArgument.
ResultType
);
1580
properties.Add(new EdmProperty(column.Key, column.Value.
ResultType
));
System\Data\Objects\ELinq\MethodCallTranslator.cs (26)
607
var argumentTypes = arguments.Select(a => a.
ResultType
).ToList();
619
return ValidateReturnType(result, result.
ResultType
, parent, call, call.Type, false);
634
BuiltInTypeKind type = argumentExpr.
ResultType
.EdmType.BuiltInTypeKind;
651
RowType rowType = argumentExpr.
ResultType
.EdmType as RowType;
893
TypeUsage updatedType = argument.
ResultType
.ShallowCopy(new FacetValues { Unicode = _isUnicode });
1194
!TypeSemantics.IsPrimitiveType(argument.
ResultType
, PrimitiveTypeKind.Int32))
1606
if (!TypeSemantics.IsEqualComparable(outerKeySelector.
ResultType
) ||
1607
!TypeSemantics.IsEqualComparable(innerKeySelector.
ResultType
))
1799
if (!TypeUsageEquals(returnType, ((CollectionType)operand.
ResultType
.EdmType).TypeUsage))
1812
if (!TypeUsageEquals(returnType, operand.
ResultType
))
1989
if (!TypeUsageEquals(constantExpression.
ResultType
, returnType))
2047
if (TypeSemantics.IsCollectionType(operand.
ResultType
))
2054
call.Method.Name, operand.
ResultType
.EdmType.Name));
2332
Debug.Assert(TypeSemantics.IsScalarType(element.
ResultType
), "Primitive or enum type expected at this point.");
2339
thenExpressions.Add(DbExpressionBuilder.Constant(element.
ResultType
, defaultValue));
2559
RowType applyRowType = (RowType)(applyBinding.Variable.
ResultType
.EdmType);
2752
if (!TypeSemantics.IsEqualComparable(keySelector.
ResultType
))
2789
properties.Add(new EdmProperty(KeyColumnName, projectionTerms[0].
ResultType
));
2790
properties.Add(new EdmProperty(GroupColumnName, projectionTerms[1].
ResultType
));
2874
if (!TypeSemantics.IsEqualComparable(outerSelector.
ResultType
) ||
2875
!TypeSemantics.IsEqualComparable(innerSelector.
ResultType
))
2929
project.Projection.
ResultType
.EdmType.BuiltInTypeKind != BuiltInTypeKind.RowType)
2934
var outerRowType = (RowType)projection.
ResultType
.EdmType;
2959
innerProject.Projection.
ResultType
.EdmType.BuiltInTypeKind != BuiltInTypeKind.RowType)
2964
var innerRowType = (RowType)innerProjection.
ResultType
.EdmType;
2973
var newProjection = projection.
ResultType
.New(newProjectionArguments);
System\Data\Objects\ELinq\OrderByLifter.cs (1)
247
return left.
ResultType
.Constant(combineConstants((int)leftValue, (int)rightValue));
System\Data\Objects\ELinq\Translator.cs (11)
174
instance.
ResultType
, instance, out propertyExpression))
340
InitializerMetadata.TryGetInitializerMetadata(property.Instance.
ResultType
, out initializerMetadata) &&
362
if (BuiltInTypeKind.CollectionType == propertyExpression.
ResultType
.EdmType.BuiltInTypeKind)
667
Debug.Assert(!TypeSemantics.IsCollectionType(argument.
ResultType
), "Did not expect collection type");
687
Debug.Assert(!TypeSemantics.IsCollectionType(argument.
ResultType
), "Did not expect collection type");
1082
TypeUsage fromType = operand.
ResultType
;
1096
if (TypeSemantics.IsPrimitiveType(left.
ResultType
, PrimitiveTypeKind.String) &&
1097
TypeSemantics.IsPrimitiveType(right.
ResultType
, PrimitiveTypeKind.String))
1182
if (TypeSemantics.IsBooleanType(left.
ResultType
))
1230
if (TypeSemantics.IsBooleanType(operand.
ResultType
))
1280
TypeUsage fromType = operand.
ResultType
;
System\Data\Objects\Internal\EntitySqlQueryState.cs (1)
128
return query.
ResultType
;
System\Data\Objects\Internal\ObjectFullSpanRewriter.cs (1)
62
if (!TryGetEntityType(this.Query.
ResultType
, out entityType))
System\Data\Objects\Internal\ObjectQueryExecutionPlan.cs (1)
53
TypeUsage treeResultType = tree.Query.
ResultType
;
System\Data\Objects\Internal\ObjectSpanRewriter.cs (12)
74
Debug.Assert(rewriter.SpanIndex != null || tree.Query.
ResultType
.EdmEquals(newQuery.
ResultType
), "Query was rewritten for Span but no SpanIndex was created?");
177
switch(expression.
ResultType
.EdmType.BuiltInTypeKind)
180
return RewriteEntity(expression, (EntityType)expression.
ResultType
.EdmType);
183
return RewriteCollection(expression, (CollectionType)expression.
ResultType
.EdmType);
186
return RewriteRow(expression, (RowType)expression.
ResultType
.EdmType);
307
RowType spanRowType = (RowType)spannedExpression.
ResultType
.EdmType;
419
properties.Add(new EdmProperty(columnProp.Name, columnDef.
ResultType
));
446
AddSpannedRowType(rewrittenRow, expression.
ResultType
);
742
Debug.Assert(TypeSemantics.IsCollectionType(expression.
ResultType
), "Non-collection input to projection?");
746
TypeUsage elementType = ((CollectionType)expression.
ResultType
.EdmType).TypeUsage;
805
DbVariableReferenceExpression sourceRef = new DbVariableReferenceExpression(expression.NavigationSource.
ResultType
, varName);
System\Data\Query\PlanCompiler\CTreeGenerator.cs (5)
221
PlanCompiler.Assert(TypeSemantics.IsCollectionType(publisher.
ResultType
), "non-collection type used as RelOpInfo publisher");
1332
PlanCompiler.Assert(expr.
ResultType
.EdmType.BuiltInTypeKind == BuiltInTypeKind.CollectionType,
1491
PlanCompiler.Assert(TypeSemantics.IsPrimitiveType(predicateExpr.
ResultType
, PrimitiveTypeKind.Boolean), "Invalid FilterOp Predicate (non-ScalarOp or non-Boolean result)");
2156
CollectionType outputType = TypeHelpers.GetEdmType<CollectionType>(TypeHelpers.GetCommonTypeUsage(left.
ResultType
, right.
ResultType
));
System\Data\Query\PlanCompiler\ITreeGenerator.cs (50)
361
if (TypeSemantics.IsPrimitiveType(expr.
ResultType
, PrimitiveTypeKind.Boolean))
485
node = ConvertRelOpToScalarOpTree(node, expr.
ResultType
);
988
ConstantBaseOp op = _iqtCommand.CreateConstantOp(e.
ResultType
, e.GetValue());
994
NullOp op = _iqtCommand.CreateNullOp(e.
ResultType
);
1213
Helper.IsEntityType(propertyExpression.Instance.
ResultType
.EdmType))
1215
EntityType instanceType = (EntityType)propertyExpression.Instance.
ResultType
.EdmType;
1266
Helper.IsStructuralType(e.Instance.
ResultType
.EdmType))
1271
System.Collections.IList propertyOrEndMembers = Helper.GetAllStructuralMembers(e.Instance.
ResultType
.EdmType);
1293
retNode = BuildSoftCast(retNode, e.
ResultType
);
1315
TypeUsage commonType = TypeHelpers.GetCommonTypeUsage(e.Left.
ResultType
, e.Right.
ResultType
);
1318
if (!Command.EqualTypes(e.Left.
ResultType
, e.Right.
ResultType
))
1497
if (TypeSemantics.IsEntityType(e.Argument.
ResultType
))
1499
argNode = BuildEntityRef(argNode, e.Argument.
ResultType
);
1507
Op op = _iqtCommand.CreateArithmeticOp(s_opMap[e.ExpressionKind], e.
ResultType
);
1514
children.Add(BuildSoftCast(child, e.
ResultType
));
1549
Op elementOp = _iqtCommand.CreateElementOp(e.
ResultType
);
1553
inputSetNode = BuildSoftCast(inputSetNode, TypeHelpers.CreateCollectionTypeUsage(e.
ResultType
));
1596
PlanCompiler.Assert(TypeSemantics.IsCollectionType(expression.
ResultType
), "SetOp DbExpression does not have collection result type?");
1606
leftNode = BuildSoftCast(leftNode, expression.
ResultType
);
1607
rightNode = BuildSoftCast(rightNode, expression.
ResultType
);
1610
Var outputVar = _iqtCommand.CreateSetOpVar(TypeHelpers.GetEdmType<CollectionType>(expression.
ResultType
).TypeUsage);
1666
op = _iqtCommand.CreateFakeTreatOp(e.
ResultType
);
1670
op = _iqtCommand.CreateTreatOp(e.
ResultType
);
1691
Op op = _iqtCommand.CreateCastOp(e.
ResultType
);
1702
childNodes.Add(BuildSoftCast(VisitExprAsScalar(e.Then[idx]), e.
ResultType
));
1706
childNodes.Add(BuildSoftCast(VisitExprAsScalar(e.Else), e.
ResultType
));
1707
return _iqtCommand.CreateNode(_iqtCommand.CreateCaseOp(e.
ResultType
), childNodes);
2004
PlanCompiler.Assert(TypeSemantics.IsCollectionType(e.Argument.
ResultType
), "Non-Collection Type Argument in DbOfTypeExpression");
2037
if (TypeSemantics.IsCollectionType(e.
ResultType
))
2039
newInstOp = _iqtCommand.CreateNewMultisetOp(e.
ResultType
);
2041
else if (TypeSemantics.IsRowType(e.
ResultType
))
2043
newInstOp = _iqtCommand.CreateNewRecordOp(e.
ResultType
);
2045
else if (TypeSemantics.IsEntityType(e.
ResultType
))
2059
newInstOp = _iqtCommand.CreateNewEntityOp(e.
ResultType
, relPropertyList);
2063
newInstOp = _iqtCommand.CreateNewInstanceOp(e.
ResultType
);
2071
if (TypeSemantics.IsStructuralType(e.
ResultType
))
2073
StructuralType resultType = TypeHelpers.GetEdmType<StructuralType>(e.
ResultType
);
2084
CollectionType resultType = TypeHelpers.GetEdmType<CollectionType>(e.
ResultType
);
2110
Op op = _iqtCommand.CreateRefOp(e.EntitySet, e.
ResultType
);
2118
Op op = _iqtCommand.CreateNavigateOp(e.
ResultType
, relProperty);
2125
Op op = _iqtCommand.CreateDerefOp(e.
ResultType
);
2131
Op op = _iqtCommand.CreateGetRefKeyOp(e.
ResultType
);
2137
Op op = _iqtCommand.CreateGetEntityRefOp(e.
ResultType
);
2213
DiscriminatedNewEntityOp newInstOp = _iqtCommand.CreateDiscriminatedNewEntityOp(e.Projection.
ResultType
,
2380
ExtractElementRowType(e.
ResultType
),
2438
ExtractElementRowType(e.
ResultType
),
2522
groupAggDefNode = ProcessGroupAggregate(keyVarDefNodes, copyOfInput, copyOfKeyVarDefNodes, copyKeyVarSet, e.Input.Expression.
ResultType
, out aggVar);
2576
ExtractElementRowType(e.
ResultType
),
System\Data\Query\PlanCompiler\ProviderCommandInfoUtils.cs (1)
66
md.CollectionType collType = TypeHelpers.GetEdmType<md.CollectionType>(cqtree.Query.
ResultType
);
System\Data\SqlClient\SqlGen\DmlSqlGenerator.cs (1)
563
SqlParameter parameter = CreateParameter(expression.Value, expression.
ResultType
);
System\Data\SqlClient\SqlGen\Sql8ExpressionRewriter.cs (2)
300
IList<EdmProperty> properties = TypeHelpers.GetProperties(input.
ResultType
);
462
RowType rowExprType = (RowType)rowExpr.
ResultType
.EdmType;
System\Data\SqlClient\SqlGen\SqlFunctionCallHandler.cs (11)
449
string functionNameWithSrid = (TypeSemantics.IsPrimitiveType(functionExpression.
ResultType
, PrimitiveTypeKind.Geometry) ? "geometry::STGeomFromText" : "geography::STGeomFromText");
450
string functionNameWithoutSrid = (TypeSemantics.IsPrimitiveType(functionExpression.
ResultType
, PrimitiveTypeKind.Geometry) ? "geometry::Parse" : "geography::Parse");
466
return HandleSpatialStaticMethodFunctionAppendSrid(sqlgen, functionExpression, (TypeSemantics.IsPrimitiveType(functionExpression.
ResultType
, PrimitiveTypeKind.Geometry) ? "geometry::GeomFromGml" : "geography::GeomFromGml"));
471
return HandleSpatialStaticMethodFunctionAppendSrid(sqlgen, functionExpression, (TypeSemantics.IsPrimitiveType(functionExpression.
ResultType
, PrimitiveTypeKind.Geometry) ? "geometry::STGeomFromWKB" : "geography::STGeomFromWKB"));
485
DbExpression sridExpression = (TypeSemantics.IsPrimitiveType(functionExpression.
ResultType
, PrimitiveTypeKind.Geometry) ? defaultGeometrySridExpression : defaultGeographySridExpression);
553
if (Helper.IsSpatialType(e.
ResultType
, out spatialTypeKind))
1221
bool isPrimitiveType = TypeHelpers.TryGetPrimitiveTypeKind(e.Arguments[0].
ResultType
, out typeKind);
1448
if (TypeSemantics.IsPrimitiveType(e.Arguments[0].
ResultType
, PrimitiveTypeKind.Byte))
1527
DbConstantExpression escapedSearchParamExpression = new DbConstantExpression(constSearchParamExpression.
ResultType
, searchParamBuilder.ToString());
1770
TypeUsage storeType = sqlgen.StoreItemCollection.StoreProviderManifest.GetStoreType(e.Arguments[i].
ResultType
);
1818
if (TypeSemantics.IsPrimitiveType(e.Arguments[i].
ResultType
, type))
System\Data\SqlClient\SqlGen\SqlGenerator.cs (34)
522
if (TypeSemantics.IsCollectionType(targetTree.Query.
ResultType
))
701
if (Helper.IsSpatialType(e.
ResultType
))
711
result.Append(GetSqlPrimitiveType(e.
ResultType
));
728
if (TypeSemantics.IsPrimitiveType(e.Left.
ResultType
, PrimitiveTypeKind.String))
870
(TypeHelpers.TryGetIsUnicode(argument.
ResultType
, out isUnicode)) &&
883
TypeUsage type = argument.
ResultType
;
908
TypeUsage resultType = e.
ResultType
;
948
result.Append(e.
ResultType
.EdmType.Name);
957
result.Append(e.
ResultType
.EdmType.Name);
1017
if (!TypeHelpers.TryGetIsUnicode(e.
ResultType
, out isUnicode))
1184
TypeUsage inputType = TypeHelpers.GetElementTypeUsage(e.Argument.
ResultType
);
1438
RowType groupByType = TypeHelpers.GetEdmType<RowType>(TypeHelpers.GetEdmType<CollectionType>(e.
ResultType
).TypeUsage);
1700
TypeUsage inputType = TypeHelpers.GetElementTypeUsage(e.Argument.
ResultType
);
1761
if (TypeSemantics.IsCollectionType(e.
ResultType
))
1808
if (TypeSemantics.IsPrimitiveType(comparisonExpression.Left.
ResultType
, PrimitiveTypeKind.String))
1836
TypeUsage type = e.
ResultType
;
1931
if (TypeSemantics.IsPrimitiveType(key.
ResultType
, PrimitiveTypeKind.String))
1944
HandleInValue(sqlBuilder, value, key.
ResultType
.EdmType == value.
ResultType
.EdmType, forceNonUnicodeOnQualifyingValues);
1964
HandleInValue(sqlBuilder, value, key.
ResultType
.EdmType == value.
ResultType
.EdmType, forceNonUnicodeOnQualifyingValues);
2078
return first.
ResultType
== second.
ResultType
&& this.Equals(first.Argument, second.Argument);
2804
bool isCastOptional = left.
ResultType
.EdmType == right.
ResultType
.EdmType;
2923
TypeUsage inputType = TypeHelpers.GetElementTypeUsage(elementExpr.Argument.
ResultType
);
2934
CollectionType collectionType = TypeHelpers.GetEdmType<CollectionType>(e.
ResultType
);
3260
RowType rowType = e.
ResultType
.EdmType as RowType;
3271
if (TypeSemantics.IsRowType(argument.
ResultType
))
3352
Symbol fromSymbol = new Symbol("X", TypeHelpers.GetElementTypeUsage(left.
ResultType
), leftSelectStatement.OutputColumns, true);
4080
Debug.Assert(TypeSemantics.IsCollectionType(e.
ResultType
));
4108
type = TypeHelpers.GetElementTypeUsage(e.
ResultType
);
4112
Debug.Assert(TypeSemantics.IsCollectionType(e.
ResultType
));
4113
type = TypeHelpers.GetEdmType<CollectionType>(e.
ResultType
).TypeUsage;