242 references to ErrCtx
System.Data.Entity (242)
System\Data\Common\EntitySql\AST\AliasedExpr.cs (1)
33
throw EntityUtil.EntitySqlError(alias.
ErrCtx
, System.Data.Entity.Strings.InvalidEmptyIdentifier);
System\Data\Common\EntitySql\AST\Identifier.cs (2)
39
throw EntityUtil.EntitySqlError(this.
ErrCtx
, System.Data.Entity.Strings.InvalidSimpleIdentifier(name));
43
throw EntityUtil.EntitySqlError(this.
ErrCtx
, System.Data.Entity.Strings.InvalidSimpleIdentifierNonASCII(name));
System\Data\Common\EntitySql\AST\Literal.cs (7)
204
_computedValue = ConvertNumericLiteral(
ErrCtx
, _originalValue);
216
_computedValue = ConvertBooleanLiteralValue(
ErrCtx
, _originalValue);
220
_computedValue = ConvertBinaryLiteralValue(
ErrCtx
, _originalValue);
224
_computedValue = ConvertDateTimeLiteralValue(
ErrCtx
, _originalValue);
228
_computedValue = ConvertTimeLiteralValue(
ErrCtx
, _originalValue);
232
_computedValue = ConvertDateTimeOffsetLiteralValue(
ErrCtx
, _originalValue);
236
_computedValue = ConvertGuidLiteralValue(
ErrCtx
, _originalValue);
System\Data\Common\EntitySql\AST\NamespaceImport.cs (1)
46
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.
ErrCtx
, System.Data.Entity.Strings.InvalidNamespaceAlias);
System\Data\Common\EntitySql\AST\QueryParameter.cs (1)
37
throw EntityUtil.EntitySqlError(
ErrCtx
, System.Data.Entity.Strings.InvalidParameterFormat(_name));
System\Data\Common\EntitySql\CqlErrorHelper.cs (2)
52
throw EntityUtil.EntitySqlError(functionExpr.
ErrCtx
.CommandText,
54
functionExpr.
ErrCtx
.InputPosition,
System\Data\Common\EntitySql\CqlLexerHelpers.cs (2)
355
id.
ErrCtx
.ErrorContextInfo = EntityRes.CtxEscapedIdentifier;
438
id.
ErrCtx
.ErrorContextInfo = EntityRes.CtxIdentifier;
System\Data\Common\EntitySql\CqlParser.cs (13)
2062
SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), AstNode(val_peek(0)).
ErrCtx
.ErrorContextInfo);
2069
SetErrCtx(AstNode(yyval), AstNodePos(yyval), AstNode(val_peek(0)).
ErrCtx
.ErrorContextInfo);
2095
SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), AstNode(val_peek(0)).
ErrCtx
.ErrorContextInfo);
2102
SetErrCtx(AstNode(yyval), AstNodePos(yyval), AstNode(val_peek(0)).
ErrCtx
.ErrorContextInfo);
2217
SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), AstNode(val_peek(0)).
ErrCtx
.ErrorContextInfo);
2473
SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), AstNode(val_peek(0)).
ErrCtx
.ErrorContextInfo);
2519
SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), AstNode(val_peek(0)).
ErrCtx
.ErrorContextInfo);
3049
SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), AstNode(val_peek(0)).
ErrCtx
.ErrorContextInfo);
3056
SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), AstNode(val_peek(0)).
ErrCtx
.ErrorContextInfo);
3301
throw EntityUtil.EntitySqlError(identifier.
ErrCtx
, System.Data.Entity.Strings.InvalidMetadataMemberName);
3315
throw EntityUtil.EntitySqlError(identifier.
ErrCtx
, System.Data.Entity.Strings.InvalidMetadataMemberName);
3446
SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), AstNode(val_peek(0)).
ErrCtx
.ErrorContextInfo);
3453
SetErrCtx(AstNode(yyval), AstNodePos(yyval), AstNode(val_peek(0)).
ErrCtx
.ErrorContextInfo);
System\Data\Common\EntitySql\CqlParserHelpers.cs (7)
121
private static int AstNodePos( object o ) { return ((Node)o).
ErrCtx
.InputPosition; }
156
if (null != astNode && (null != astNode.
ErrCtx
) && (!String.IsNullOrEmpty(astNode.
ErrCtx
.ErrorContextInfo)))
158
errCtx = astNode.
ErrCtx
;
195
astExpr.
ErrCtx
.InputPosition = inputPos;
196
astExpr.
ErrCtx
.ErrorContextInfo = info;
197
astExpr.
ErrCtx
.CommandText = _query;
System\Data\Common\EntitySql\SemanticAnalyzer.cs (204)
64
ConvertAndRegisterNamespaceImports(astCommandExpr.NamespaceImportList, astCommandExpr.
ErrCtx
, _sr);
98
ConvertAndRegisterNamespaceImports(astQueryCommandExpr.NamespaceImportList, astQueryCommandExpr.
ErrCtx
, _sr);
160
throw EntityUtil.EntitySqlError(namespaceImport.NamespaceName.
ErrCtx
, Strings.InvalidMetadataMemberName);
165
MetadataMember metadataMember = sr.ResolveMetadataMemberName(name, namespaceImport.NamespaceName.
ErrCtx
);
172
aliasedNamespaceImports.Add(Tuple.Create(alias, (MetadataNamespace)metadataMember, namespaceImport.
ErrCtx
));
176
namespaceImports.Add(Tuple.Create((MetadataNamespace)metadataMember, namespaceImport.
ErrCtx
));
181
throw EntityUtil.EntitySqlError(namespaceImport.NamespaceName.
ErrCtx
, Strings.InvalidMetadataMemberClassResolution(
191
sr.TypeResolver.AddNamespaceImport(new MetadataNamespace(EdmConstants.EdmNamespace), nsImportList != null ? nsImportList.
ErrCtx
: cmdErrCtx);
288
throw EntityUtil.EntitySqlError(queryStatement.Expr.
ErrCtx
, Strings.ResultingExpressionTypeCannotBeNull);
309
ValidateQueryResultType(converted.ResultType, queryStatement.Expr.
ErrCtx
);
408
paramDef.
ErrCtx
,
447
throw EntityUtil.EntitySqlError(FunctionDefAst.
ErrCtx
, Strings.Cqt_UDF_FunctionDefinitionWithCircularReference(FunctionDefAst.Name));
517
throw EntityUtil.EntitySqlError(astExpr.
ErrCtx
, Strings.ExpressionCannotBeNull);
564
throw EntityUtil.EntitySqlError(astExpr.
ErrCtx
, errorMessage);
625
throw EntityUtil.EntitySqlError(literal.
ErrCtx
, Strings.LiteralTypeNotFoundInMetadata(literal.OriginalValue));
642
return sr.ResolveSimpleName(((AST.Identifier)identifier).Name, leftHandSideOfMemberAccess, identifier.
ErrCtx
);
677
return sr.ResolvePropertyAccess(((ValueExpression)leftResolution).Value, dotExpr.Identifier.Name, dotExpr.Identifier.
ErrCtx
);
680
return sr.ResolveEntityContainerMemberAccess(((EntityContainerExpression)leftResolution).EntityContainer, dotExpr.Identifier.Name, dotExpr.Identifier.
ErrCtx
);
683
return sr.ResolveMetadataMemberAccess((MetadataMember)leftResolution, dotExpr.Identifier.Name, dotExpr.Identifier.
ErrCtx
);
686
throw EntityUtil.EntitySqlError(dotExpr.Left.
ErrCtx
, Strings.UnknownExpressionResolutionClass(leftResolution.ExpressionClass));
725
throw EntityUtil.EntitySqlError(astExpr.
ErrCtx
, Strings.GroupPartitionOutOfContext);
733
using (sr.EnterGroupPartition(groupAggregateExpr, groupAggregateExpr.
ErrCtx
, out aggregateInfo))
746
throw EntityUtil.EntitySqlError(groupAggregateExpr.ArgExpr.
ErrCtx
, Strings.ResultingExpressionTypeCannotBeNull);
756
ValidateDistinctProjection(definition.ResultType, groupAggregateExpr.ArgExpr.
ErrCtx
, null);
797
leftResolution = sr.ResolveSimpleFunctionName(simpleFunctionName.Name, simpleFunctionName.
ErrCtx
);
827
methodExpr.
ErrCtx
.ErrorContextInfo = Strings.CtxFunction(metadataMember.Name);
828
methodExpr.
ErrCtx
.UseContextInfoAsResourceIdentifier = false;
843
methodExpr.
ErrCtx
.ErrorContextInfo = Strings.CtxTypeCtor(metadataMember.Name);
844
methodExpr.
ErrCtx
.UseContextInfoAsResourceIdentifier = false;
848
methodExpr.
ErrCtx
.ErrorContextInfo = Strings.CtxFunction(metadataMember.Name);
849
methodExpr.
ErrCtx
.UseContextInfoAsResourceIdentifier = false;
853
throw EntityUtil.EntitySqlError(methodExpr.Expr.
ErrCtx
, Strings.CannotResolveNameToTypeOrFunction(metadataMember.Name));
858
throw EntityUtil.EntitySqlError(methodExpr.
ErrCtx
, Strings.MethodInvocationNotSupported);
947
throw EntityUtil.EntitySqlError(methodExpr.
ErrCtx
, Strings.AmbiguousFunctionArguments);
976
throw EntityUtil.EntitySqlError(methodExpr.
ErrCtx
, Strings.InvalidCtorUseOnType(metadataType.TypeUsage.EdmType.FullName));
984
throw EntityUtil.EntitySqlError(methodExpr.
ErrCtx
, Strings.CannotInstantiateAbstractType(metadataType.TypeUsage.EdmType.FullName));
992
throw EntityUtil.EntitySqlError(methodExpr.
ErrCtx
, Strings.InvalidDistinctArgumentInCtor);
1004
throw EntityUtil.EntitySqlError(methodExpr.Relationships.
ErrCtx
, Strings.InvalidModeForWithRelationshipClause);
1010
throw EntityUtil.EntitySqlError(methodExpr.Relationships.
ErrCtx
, Strings.InvalidTypeForWithRelationshipClause);
1024
throw EntityUtil.EntitySqlError(relshipExpr.
ErrCtx
, Strings.RelationshipTargetMustBeUnique(targetEndId));
1045
throw EntityUtil.EntitySqlError(methodExpr.
ErrCtx
, Strings.CannotCallNoncomposableFunction(metadataFunctionGroup.Name));
1136
throw EntityUtil.EntitySqlError(methodExpr.
ErrCtx
, Strings.FailedToResolveAggregateFunction(metadataFunctionGroup.Name));
1206
throw EntityUtil.EntitySqlError(methodExpr.
ErrCtx
, Strings.AmbiguousFunctionArguments);
1253
throw EntityUtil.EntitySqlError(methodExpr.
ErrCtx
, Strings.AmbiguousFunctionArguments);
1268
using (sr.EnterFunctionAggregate(methodExpr, methodExpr.
ErrCtx
, out aggregateInfo))
1352
throw EntityUtil.EntitySqlError(methodExpr.
ErrCtx
, Strings.NumberOfTypeCtorIsLessThenFormalSpec(member.Name));
1363
throw EntityUtil.EntitySqlError(methodExpr.Args[idx].
ErrCtx
,
1378
throw EntityUtil.EntitySqlError(methodExpr.Args[idx].
ErrCtx
,
1395
throw EntityUtil.EntitySqlError(methodExpr.Args[idx].
ErrCtx
,
1411
throw EntityUtil.EntitySqlError(methodExpr.
ErrCtx
, Strings.NumberOfTypeCtorIsMoreThenFormalSpec(stype.FullName));
1447
throw EntityUtil.EntitySqlError(methodExpr.
ErrCtx
, Strings.InvalidDistinctArgumentInNonAggFunction);
1470
throw EntityUtil.EntitySqlError(methodExpr.
ErrCtx
, Strings.AmbiguousFunctionArguments);
1541
throw EntityUtil.EntitySqlError(parameter.
ErrCtx
, Strings.ParameterWasNotDefined(parameter.Name));
1563
throw EntityUtil.EntitySqlError(relshipExpr.TypeName.
ErrCtx
, Strings.RelationshipTypeExpected(edmType.FullName));
1577
throw EntityUtil.EntitySqlError(relshipExpr.RefExpr.
ErrCtx
, Strings.RelatedEndExprTypeMustBeReference);
1589
throw EntityUtil.EntitySqlError(relshipExpr.ToEndIdentifier.
ErrCtx
, Strings.InvalidRelationshipMember(relshipExpr.ToEndIdentifier.Name, relationshipType.FullName));
1596
throw EntityUtil.EntitySqlError(relshipExpr.ToEndIdentifier.
ErrCtx
,
1601
throw EntityUtil.EntitySqlError(relshipExpr.RefExpr.
ErrCtx
, Strings.RelatedEndExprTypeMustBePromotoableToToEnd(refType.FullName, toEnd.TypeUsage.EdmType.FullName));
1616
throw EntityUtil.EntitySqlError(relshipExpr.
ErrCtx
, Strings.InvalidImplicitRelationshipToEnd(relationshipType.FullName));
1618
throw EntityUtil.EntitySqlError(relshipExpr.
ErrCtx
, Strings.RelationshipToEndIsAmbiguos);
1632
throw EntityUtil.EntitySqlError(relshipExpr.FromEndIdentifier.
ErrCtx
, Strings.InvalidRelationshipMember(relshipExpr.FromEndIdentifier.Name, relationshipType.FullName));
1636
throw EntityUtil.EntitySqlError(relshipExpr.FromEndIdentifier.
ErrCtx
,
1641
throw EntityUtil.EntitySqlError(relshipExpr.
ErrCtx
, Strings.RelationshipFromEndIsAmbiguos);
1655
throw EntityUtil.EntitySqlError(relshipExpr.
ErrCtx
, Strings.InvalidImplicitRelationshipFromEnd(relationshipType.FullName));
1658
throw EntityUtil.EntitySqlError(relshipExpr.
ErrCtx
, Strings.RelationshipFromEndIsAmbiguos);
1680
throw EntityUtil.EntitySqlError(relshipExpr.TypeName.
ErrCtx
, Strings.RelationshipTypeExpected(edmType.FullName));
1702
throw EntityUtil.EntitySqlError(relshipExpr.RefExpr.
ErrCtx
, Strings.RelatedEndExprTypeMustBeReference);
1715
throw EntityUtil.EntitySqlError(relshipExpr.ToEndIdentifier.
ErrCtx
, Strings.InvalidRelationshipMember(relshipExpr.ToEndIdentifier.Name, relationshipType.FullName));
1732
throw EntityUtil.EntitySqlError(relshipExpr.FromEndIdentifier.
ErrCtx
, Strings.InvalidRelationshipMember(relshipExpr.FromEndIdentifier.Name, relationshipType.FullName));
1736
throw EntityUtil.EntitySqlError(relshipExpr.FromEndIdentifier.
ErrCtx
,
1741
throw EntityUtil.EntitySqlError(relshipExpr.
ErrCtx
, Strings.RelationshipFromEndIsAmbiguos);
1755
throw EntityUtil.EntitySqlError(relshipExpr.
ErrCtx
, Strings.InvalidImplicitRelationshipFromEnd(relationshipType.FullName));
1758
throw EntityUtil.EntitySqlError(relshipExpr.
ErrCtx
, Strings.RelationshipFromEndIsAmbiguos);
1776
throw EntityUtil.EntitySqlError(relshipExpr.
ErrCtx
, Strings.InvalidImplicitRelationshipToEnd(relationshipType.FullName));
1779
throw EntityUtil.EntitySqlError(relshipExpr.
ErrCtx
, Strings.RelationshipToEndIsAmbiguos);
1807
throw EntityUtil.EntitySqlError(refExpr.ArgExpr.
ErrCtx
, Strings.RefArgIsNotOfEntityType(converted.ResultType.EdmType.FullName));
1835
throw EntityUtil.EntitySqlError(deRefExpr.ArgExpr.
ErrCtx
, Strings.DeRefArgIsNotOfRefType(converted.ResultType.EdmType.FullName));
1862
throw EntityUtil.EntitySqlError(createRefExpr.EntitySet.
ErrCtx
, Strings.ExprIsNotValidEntitySetForCreateRef);
1871
throw EntityUtil.EntitySqlError(createRefExpr.EntitySet.
ErrCtx
, Strings.ExprIsNotValidEntitySetForCreateRef);
1879
throw EntityUtil.EntitySqlError(createRefExpr.Keys.
ErrCtx
, Strings.InvalidCreateRefKeyType);
1886
throw EntityUtil.EntitySqlError(createRefExpr.Keys.
ErrCtx
, Strings.ImcompatibleCreateRefKeyType);
1891
throw EntityUtil.EntitySqlError(createRefExpr.Keys.
ErrCtx
, Strings.ImcompatibleCreateRefKeyElementType);
1907
throw EntityUtil.EntitySqlError(createRefExpr.TypeIdentifier.
ErrCtx
,
1915
throw EntityUtil.EntitySqlError(createRefExpr.TypeIdentifier.
ErrCtx
,
1951
throw EntityUtil.EntitySqlError(keyExpr.ArgExpr.
ErrCtx
, Strings.InvalidKeyArgument(converted.ResultType.EdmType.FullName));
1987
astBuiltInExpr.
ErrCtx
,
1993
throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg1.
ErrCtx
, Strings.ExpressionMustBeNumericType);
2000
throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg2.
ErrCtx
, Strings.ExpressionMustBeNumericType);
2005
throw EntityUtil.EntitySqlError(astBuiltInExpr.
ErrCtx
, Strings.ArgumentTypesAreIncompatible(
2024
astBuiltInExpr.
ErrCtx
,
2030
throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg1.
ErrCtx
, Strings.PlusLeftExpressionInvalidType);
2035
throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg2.
ErrCtx
, Strings.PlusRightExpressionInvalidType);
2040
throw EntityUtil.EntitySqlError(astBuiltInExpr.
ErrCtx
, Strings.ArgumentTypesAreIncompatible(
2076
throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg1.
ErrCtx
, Strings.ExpressionTypeMustBeBoolean);
2084
throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg2.
ErrCtx
, Strings.ExpressionTypeMustBeBoolean);
2104
astBuiltInExpr.
ErrCtx
,
2113
throw EntityUtil.EntitySqlError(astBuiltInExpr.
ErrCtx
, Strings.ArgumentTypesAreIncompatible(
2131
astBuiltInExpr.
ErrCtx
,
2140
throw EntityUtil.EntitySqlError(astBuiltInExpr.
ErrCtx
, Strings.ArgumentTypesAreIncompatible(
2175
throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg1.
ErrCtx
, Strings.LeftSetExpressionArgsMustBeCollection);
2188
throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg2.
ErrCtx
, Strings.RightSetExpressionArgsMustBeCollection);
2196
CqlErrorHelper.ReportIncompatibleCommonType(astBuiltInExpr.
ErrCtx
, leftElemType, rightElemType);
2206
throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg1.
ErrCtx
,
2218
throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg2.
ErrCtx
,
2229
throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg1.
ErrCtx
, Strings.InvalidAssociationTypeForUnion(leftElemType.EdmType.FullName));
2234
throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg2.
ErrCtx
, Strings.InvalidAssociationTypeForUnion(rightElemType.EdmType.FullName));
2249
throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg1.
ErrCtx
, Strings.InvalidUnarySetOpArgument(astBuiltInExpr.Name));
2257
throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg1.
ErrCtx
, Strings.ExpressionTypeMustBeEqualComparable);
2276
throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg2.
ErrCtx
, Strings.RightSetExpressionArgsMustBeCollection);
2286
ValidateTypeForNullExpression(elementType, astBuiltInExpr.Arg1.
ErrCtx
);
2292
throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg1.
ErrCtx
, Strings.ExpressionTypeMustNotBeCollection);
2301
throw EntityUtil.EntitySqlError(astBuiltInExpr.
ErrCtx
, Strings.InvalidInExprArgs(leftExpr.ResultType.EdmType.FullName, rightExpr.ResultType.EdmType.FullName));
2336
typeName.
ErrCtx
.ErrorContextInfo = methodExpr.
ErrCtx
.ErrorContextInfo;
2337
typeName.
ErrCtx
.UseContextInfoAsResourceIdentifier = methodExpr.
ErrCtx
.UseContextInfoAsResourceIdentifier;
2363
throw EntityUtil.EntitySqlError(typeName.
ErrCtx
, Strings.InvalidMetadataMemberName);
2366
MetadataMember metadataMember = sr.ResolveMetadataMemberName(name, typeName.
ErrCtx
);
2377
typeUsage = ConvertTypeSpecArgs(typeUsage, typeSpecArgs, typeName.
ErrCtx
, sr);
2384
throw EntityUtil.EntitySqlError(typeName.
ErrCtx
, Strings.TypeNameNotFound(metadataMember.Name));
2387
throw EntityUtil.EntitySqlError(typeName.
ErrCtx
, Strings.InvalidMetadataMemberClassResolution(
2403
throw EntityUtil.EntitySqlError(arg.
ErrCtx
, Strings.TypeArgumentMustBeLiteral);
2444
throw EntityUtil.EntitySqlError(typeSpecArgs[0].
ErrCtx
, Strings.PrecisionMustBeGreaterThanScale(precision, scale));
2455
throw EntityUtil.EntitySqlError(value.
ErrCtx
, Strings.TypeDoesNotSupportFacet(type.FullName, facetName));
2462
throw EntityUtil.EntitySqlError(value.
ErrCtx
, Strings.TypeArgumentExceedsMax(facetName));
2467
throw EntityUtil.EntitySqlError(value.
ErrCtx
, Strings.TypeArgumentBelowMin(facetName));
2472
throw EntityUtil.EntitySqlError(value.
ErrCtx
, Strings.TypeArgumentIsNotValid);
2501
throw EntityUtil.EntitySqlError(refTypeDefExpr.RefTypeIdentifier.
ErrCtx
,
2544
throw EntityUtil.EntitySqlError(aliasExpr.Expr.
ErrCtx
, Strings.RowCtorElementCannotBeNull);
2553
CqlErrorHelper.ReportAliasAlreadyUsedError(aliasName, aliasExpr.Alias.
ErrCtx
, Strings.InRowCtor);
2578
throw EntityUtil.EntitySqlError(expr.
ErrCtx
, Strings.CannotCreateEmptyMultiset);
2590
throw EntityUtil.EntitySqlError(expr.
ErrCtx
, Strings.CannotCreateMultisetofNulls);
2600
throw EntityUtil.EntitySqlError(expr.
ErrCtx
, Strings.MultisetElemsAreNotTypeCompatible);
2612
ValidateTypeForNullExpression(commonType, msetCtor.ExprList[i].
ErrCtx
);
2641
throw EntityUtil.EntitySqlError(whenThenExpr.WhenExpr.
ErrCtx
, Strings.ExpressionTypeMustBeBoolean);
2666
throw EntityUtil.EntitySqlError(caseExpr.ElseExpr.
ErrCtx
, Strings.InvalidCaseWhenThenNullType);
2675
throw EntityUtil.EntitySqlError(caseExpr.WhenThenExprList[0].ThenExpr.
ErrCtx
, Strings.InvalidCaseResultTypes);
2685
ValidateTypeForNullExpression(resultType, caseExpr.WhenThenExprList[i].ThenExpr.
ErrCtx
);
2701
ValidateTypeForNullExpression(resultType, (caseExpr.ElseExpr ?? caseExpr).
ErrCtx
);
2725
throw EntityUtil.EntitySqlError(queryExpr.
ErrCtx
, Strings.HavingRequiresGroupClause);
2731
throw EntityUtil.EntitySqlError(queryExpr.SelectClause.TopExpr.
ErrCtx
, Strings.TopAndLimitCannotCoexist);
2736
throw EntityUtil.EntitySqlError(queryExpr.SelectClause.TopExpr.
ErrCtx
, Strings.TopAndSkipCannotCoexist);
2840
ValidateExpressionIsCommandParamOrNonNegativeIntegerConstant(convertedLimit, limitExpr.
ErrCtx
, exprName, sr);
2863
throw EntityUtil.EntitySqlError(selectClause.
ErrCtx
, Strings.InvalidSelectValueList);
2871
throw EntityUtil.EntitySqlError(selectClause.Items[0].
ErrCtx
, Strings.InvalidSelectValueAliasedExpression);
2898
CqlErrorHelper.ReportAliasAlreadyUsedError(aliasName, projectionItem.Alias.
ErrCtx
, Strings.InSelectProjectionList);
2953
selectClause.Items[0].Expr.
ErrCtx
,
2955
new List<ErrorContext>(selectClause.Items.Select(item => item.Expr.
ErrCtx
)) : null);
3089
throw EntityUtil.EntitySqlError(aliasedExpr.Expr.
ErrCtx
, Strings.ExpressionMustBeCollection);
3104
CqlErrorHelper.ReportAliasAlreadyUsedError(aliasName, aliasedExpr.Alias.
ErrCtx
, Strings.InFromClause);
3145
throw EntityUtil.EntitySqlError(joinClause.
ErrCtx
, Strings.InnerJoinMustHaveOnPredicate);
3152
throw EntityUtil.EntitySqlError(joinClause.OnExpr.
ErrCtx
, Strings.InvalidPredicateForCrossJoin);
3305
return ProcessWhereHavingClausePredicate(source, whereClause, whereClause.
ErrCtx
, "where", sr);
3317
return ProcessWhereHavingClausePredicate(source, havingClause.HavingPredicate, havingClause.
ErrCtx
, "having", sr);
3438
using (sr.EnterGroupKeyDefinition(GroupAggregateKind.GroupKey, aliasedExpr.
ErrCtx
, out groupKeyAggregateInfo))
3449
throw EntityUtil.EntitySqlError(aliasedExpr.Expr.
ErrCtx
, Strings.KeyMustBeCorrelated("GROUP BY"));
3458
throw EntityUtil.EntitySqlError(aliasedExpr.Expr.
ErrCtx
, Strings.GroupingKeysMustBeEqualComparable);
3467
using (sr.EnterGroupKeyDefinition(GroupAggregateKind.Function, aliasedExpr.
ErrCtx
, out functionAggregateInfo))
3479
using (sr.EnterGroupKeyDefinition(GroupAggregateKind.Partition, aliasedExpr.
ErrCtx
, out groupPartitionInfo))
3497
CqlErrorHelper.ReportAliasAlreadyUsedError(groupKeyAlias, aliasedExpr.Alias.
ErrCtx
, Strings.InGroupClause);
3533
CqlErrorHelper.ReportAliasAlreadyUsedError(alternativeFullName, dotExpr.
ErrCtx
, Strings.InGroupClause);
3627
aliasedExpr.Alias.
ErrCtx
,
3674
throw EntityUtil.EntitySqlError(orderItem.
ErrCtx
, Strings.KeyMustBeCorrelated("ORDER BY"));
4079
ValidateExpressionIsCommandParamOrNonNegativeIntegerConstant(convertedSkip, orderByClause.SkipSubClause.
ErrCtx
, "SKIP", sr);
4177
throw EntityUtil.EntitySqlError(orderClauseItem.
ErrCtx
, Strings.KeyMustBeCorrelated("ORDER BY"));
4185
throw EntityUtil.EntitySqlError(orderClauseItem.OrderExpr.
ErrCtx
, Strings.OrderByKeyIsNotOrderComparable);
4201
throw EntityUtil.EntitySqlError(orderClauseItem.OrderExpr.
ErrCtx
, Strings.InvalidKeyTypeForCollation(keyExpr.ResultType.EdmType.FullName));
4399
throw EntityUtil.EntitySqlError(bltInExpr.
ErrCtx
, Strings.ConcatBuiltinNotSupported);
4415
throw EntityUtil.EntitySqlError(bltInExpr.
ErrCtx
, Strings.ConcatBuiltinNotSupported);
4728
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.
ErrCtx
, Strings.InvalidFlattenArgument);
4733
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.
ErrCtx
, Strings.InvalidFlattenArgument);
4849
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.
ErrCtx
, Strings.IsNullInvalidType);
4869
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.
ErrCtx
, Strings.IsNullInvalidType);
4895
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.
ErrCtx
,
4902
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.
ErrCtx
,
4910
throw EntityUtil.EntitySqlError(bltInExpr.Arg2.
ErrCtx
, Strings.TypeMustBeEntityType(Strings.CtxIsOf,
4916
throw EntityUtil.EntitySqlError(bltInExpr.Arg2.
ErrCtx
, Strings.TypeMustBeNominalType(Strings.CtxIsOf,
4923
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.
ErrCtx
, Strings.TypeMustBeInheritableType);
4928
throw EntityUtil.EntitySqlError(bltInExpr.Arg2.
ErrCtx
, Strings.TypeMustBeInheritableType);
4933
throw EntityUtil.EntitySqlError(bltInExpr.
ErrCtx
, Strings.NotASuperOrSubType(exprToFilter.ResultType.EdmType.FullName,
4971
throw EntityUtil.EntitySqlError(bltInExpr.Arg2.
ErrCtx
,
4978
throw EntityUtil.EntitySqlError(bltInExpr.Arg2.
ErrCtx
,
4990
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.
ErrCtx
,
4997
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.
ErrCtx
,
5005
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.
ErrCtx
, Strings.TypeMustBeInheritableType);
5010
throw EntityUtil.EntitySqlError(bltInExpr.Arg2.
ErrCtx
, Strings.TypeMustBeInheritableType);
5015
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.
ErrCtx
, Strings.NotASuperOrSubType(exprToTreat.ResultType.EdmType.FullName,
5037
throw EntityUtil.EntitySqlError(bltInExpr.Arg2.
ErrCtx
, Strings.InvalidCastType);
5050
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.
ErrCtx
, Strings.InvalidCastExpressionType);
5055
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.
ErrCtx
, Strings.InvalidCast(exprToCast.ResultType.EdmType.FullName, typeToCastTo.EdmType.FullName));
5077
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.
ErrCtx
, Strings.ExpressionMustBeCollection);
5083
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.
ErrCtx
,
5088
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.
ErrCtx
,
5094
throw EntityUtil.EntitySqlError(bltInExpr.Arg2.
ErrCtx
,
5099
throw EntityUtil.EntitySqlError(bltInExpr.Arg2.
ErrCtx
,
5105
throw EntityUtil.EntitySqlError(bltInExpr.Arg2.
ErrCtx
, Strings.OfTypeOnlyTypeArgumentCannotBeAbstract(typeToFilterTo.EdmType.FullName));
5110
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.
ErrCtx
, Strings.NotASuperOrSubType(elementType.EdmType.FullName, typeToFilterTo.EdmType.FullName));
5142
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.
ErrCtx
, Strings.LikeArgMustBeStringType);
5152
throw EntityUtil.EntitySqlError(bltInExpr.Arg2.
ErrCtx
, Strings.LikeArgMustBeStringType);
5164
throw EntityUtil.EntitySqlError(bltInExpr.Arg3.
ErrCtx
, Strings.LikeArgMustBeStringType);
5209
bltInExpr.Arg1.
ErrCtx
,
5219
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.
ErrCtx
, Strings.BetweenLimitsTypesAreNotCompatible(limitsExpr.Left.ResultType.EdmType.FullName, limitsExpr.Right.ResultType.EdmType.FullName));
5227
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.
ErrCtx
, Strings.BetweenLimitsTypesAreNotOrderComparable(limitsExpr.Left.ResultType.EdmType.FullName, limitsExpr.Right.ResultType.EdmType.FullName));
5244
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.
ErrCtx
, Strings.BetweenValueIsNotOrderComparable(valueExpr.ResultType.EdmType.FullName, rangeCommonType.EdmType.FullName));
System\Data\Common\EntitySql\SemanticResolver.cs (1)
763
groupKeyResolution = new ValueExpression(GetExpressionFromScopeEntry(scopeEntry, scopeIndex, TypeResolver.GetFullName(names), dotExpr.
ErrCtx
));
System\Data\Common\EntitySql\TypeResolver.cs (1)
289
throw EntityUtil.EntitySqlError(functionInfo.FunctionDefAst.
ErrCtx
, Strings.DuplicatedInlineFunctionOverload(name));