System\Data\Common\CommandTrees\BasicExpressionVisitor.cs (34)
29VisitExpression(EntityUtil.CheckArgumentNull(expression, "expression").Argument);
39EntityUtil.CheckArgumentNull(expression, "expression");
52EntityUtil.CheckArgumentNull(binding, "binding");
71EntityUtil.CheckArgumentNull(binding, "binding");
98EntityUtil.CheckArgumentNull(lambda, "lambda");
121EntityUtil.CheckArgumentNull(expression, "expression").Accept(this);
131EntityUtil.CheckArgumentNull(expressionList, "expressionList");
145EntityUtil.CheckArgumentNull(aggregates, "aggregates");
160VisitExpressionList(EntityUtil.CheckArgumentNull(aggregate, "aggregate").Arguments);
189EntityUtil.CheckArgumentNull(expression, "expression");
191throw EntityUtil.NotSupported(System.Data.Entity.Strings.Cqt_General_UnsupportedExpression(expression.GetType().FullName));
202EntityUtil.CheckArgumentNull(expression, "expression");
213EntityUtil.CheckArgumentNull(expression, "expression");
224EntityUtil.CheckArgumentNull(expression, "expression");
235EntityUtil.CheckArgumentNull(expression, "expression");
246EntityUtil.CheckArgumentNull(expression, "expression");
259EntityUtil.CheckArgumentNull(expression, "expression");
295EntityUtil.CheckArgumentNull(expression, "expression");
321EntityUtil.CheckArgumentNull(expression, "expression");
336EntityUtil.CheckArgumentNull(expression, "expression");
359VisitExpressionList(EntityUtil.CheckArgumentNull(expression, "expression").Arguments);
500EntityUtil.CheckArgumentNull(expression, "expression");
516EntityUtil.CheckArgumentNull(expression, "expression");
543VisitExpression(EntityUtil.CheckArgumentNull(expression, "expression").NavigationSource);
584EntityUtil.CheckArgumentNull(expression, "expression");
595EntityUtil.CheckArgumentNull(expression, "expression");
610EntityUtil.CheckArgumentNull(expression, "expression");
625EntityUtil.CheckArgumentNull(expression, "expression");
646EntityUtil.CheckArgumentNull(expression, "expression");
665EntityUtil.CheckArgumentNull(expression, "expression");
686EntityUtil.CheckArgumentNull(expression, "expression");
703EntityUtil.CheckArgumentNull(expression, "expression");
722EntityUtil.CheckArgumentNull(expression, "expression");
740EntityUtil.CheckArgumentNull(expression, "expression");
System\Data\Common\CommandTrees\DbLambda.cs (152)
100EntityUtil.CheckArgumentNull(argument1Type, "argument1Type");
101EntityUtil.CheckArgumentNull(lambdaFunction, "lambdaFunction");
122EntityUtil.CheckArgumentNull(argument1Type, "argument1Type");
123EntityUtil.CheckArgumentNull(argument2Type, "argument2Type");
124EntityUtil.CheckArgumentNull(lambdaFunction, "lambdaFunction");
146EntityUtil.CheckArgumentNull(argument1Type, "argument1Type");
147EntityUtil.CheckArgumentNull(argument2Type, "argument2Type");
148EntityUtil.CheckArgumentNull(argument3Type, "argument3Type");
149EntityUtil.CheckArgumentNull(lambdaFunction, "lambdaFunction");
172EntityUtil.CheckArgumentNull(argument1Type, "argument1Type");
173EntityUtil.CheckArgumentNull(argument2Type, "argument2Type");
174EntityUtil.CheckArgumentNull(argument3Type, "argument3Type");
175EntityUtil.CheckArgumentNull(argument4Type, "argument4Type");
176EntityUtil.CheckArgumentNull(lambdaFunction, "lambdaFunction");
200EntityUtil.CheckArgumentNull(argument1Type, "argument1Type");
201EntityUtil.CheckArgumentNull(argument2Type, "argument2Type");
202EntityUtil.CheckArgumentNull(argument3Type, "argument3Type");
203EntityUtil.CheckArgumentNull(argument4Type, "argument4Type");
204EntityUtil.CheckArgumentNull(argument5Type, "argument5Type");
205EntityUtil.CheckArgumentNull(lambdaFunction, "lambdaFunction");
231EntityUtil.CheckArgumentNull(argument1Type, "argument1Type");
232EntityUtil.CheckArgumentNull(argument2Type, "argument2Type");
233EntityUtil.CheckArgumentNull(argument3Type, "argument3Type");
234EntityUtil.CheckArgumentNull(argument4Type, "argument4Type");
235EntityUtil.CheckArgumentNull(argument5Type, "argument5Type");
236EntityUtil.CheckArgumentNull(argument6Type, "argument6Type");
237EntityUtil.CheckArgumentNull(lambdaFunction, "lambdaFunction");
264EntityUtil.CheckArgumentNull(argument1Type, "argument1Type");
265EntityUtil.CheckArgumentNull(argument2Type, "argument2Type");
266EntityUtil.CheckArgumentNull(argument3Type, "argument3Type");
267EntityUtil.CheckArgumentNull(argument4Type, "argument4Type");
268EntityUtil.CheckArgumentNull(argument5Type, "argument5Type");
269EntityUtil.CheckArgumentNull(argument6Type, "argument6Type");
270EntityUtil.CheckArgumentNull(argument7Type, "argument7Type");
271EntityUtil.CheckArgumentNull(lambdaFunction, "lambdaFunction");
299EntityUtil.CheckArgumentNull(argument1Type, "argument1Type");
300EntityUtil.CheckArgumentNull(argument2Type, "argument2Type");
301EntityUtil.CheckArgumentNull(argument3Type, "argument3Type");
302EntityUtil.CheckArgumentNull(argument4Type, "argument4Type");
303EntityUtil.CheckArgumentNull(argument5Type, "argument5Type");
304EntityUtil.CheckArgumentNull(argument6Type, "argument6Type");
305EntityUtil.CheckArgumentNull(argument7Type, "argument7Type");
306EntityUtil.CheckArgumentNull(argument8Type, "argument8Type");
307EntityUtil.CheckArgumentNull(lambdaFunction, "lambdaFunction");
337EntityUtil.CheckArgumentNull(argument1Type, "argument1Type");
338EntityUtil.CheckArgumentNull(argument2Type, "argument2Type");
339EntityUtil.CheckArgumentNull(argument3Type, "argument3Type");
340EntityUtil.CheckArgumentNull(argument4Type, "argument4Type");
341EntityUtil.CheckArgumentNull(argument5Type, "argument5Type");
342EntityUtil.CheckArgumentNull(argument6Type, "argument6Type");
343EntityUtil.CheckArgumentNull(argument7Type, "argument7Type");
344EntityUtil.CheckArgumentNull(argument8Type, "argument8Type");
345EntityUtil.CheckArgumentNull(argument9Type, "argument9Type");
346EntityUtil.CheckArgumentNull(lambdaFunction, "lambdaFunction");
377EntityUtil.CheckArgumentNull(argument1Type, "argument1Type");
378EntityUtil.CheckArgumentNull(argument2Type, "argument2Type");
379EntityUtil.CheckArgumentNull(argument3Type, "argument3Type");
380EntityUtil.CheckArgumentNull(argument4Type, "argument4Type");
381EntityUtil.CheckArgumentNull(argument5Type, "argument5Type");
382EntityUtil.CheckArgumentNull(argument6Type, "argument6Type");
383EntityUtil.CheckArgumentNull(argument7Type, "argument7Type");
384EntityUtil.CheckArgumentNull(argument8Type, "argument8Type");
385EntityUtil.CheckArgumentNull(argument9Type, "argument9Type");
386EntityUtil.CheckArgumentNull(argument10Type, "argument10Type");
387EntityUtil.CheckArgumentNull(lambdaFunction, "lambdaFunction");
419EntityUtil.CheckArgumentNull(argument1Type, "argument1Type");
420EntityUtil.CheckArgumentNull(argument2Type, "argument2Type");
421EntityUtil.CheckArgumentNull(argument3Type, "argument3Type");
422EntityUtil.CheckArgumentNull(argument4Type, "argument4Type");
423EntityUtil.CheckArgumentNull(argument5Type, "argument5Type");
424EntityUtil.CheckArgumentNull(argument6Type, "argument6Type");
425EntityUtil.CheckArgumentNull(argument7Type, "argument7Type");
426EntityUtil.CheckArgumentNull(argument8Type, "argument8Type");
427EntityUtil.CheckArgumentNull(argument9Type, "argument9Type");
428EntityUtil.CheckArgumentNull(argument10Type, "argument10Type");
429EntityUtil.CheckArgumentNull(argument11Type, "argument11Type");
430EntityUtil.CheckArgumentNull(lambdaFunction, "lambdaFunction");
464EntityUtil.CheckArgumentNull(argument1Type, "argument1Type");
465EntityUtil.CheckArgumentNull(argument2Type, "argument2Type");
466EntityUtil.CheckArgumentNull(argument3Type, "argument3Type");
467EntityUtil.CheckArgumentNull(argument4Type, "argument4Type");
468EntityUtil.CheckArgumentNull(argument5Type, "argument5Type");
469EntityUtil.CheckArgumentNull(argument6Type, "argument6Type");
470EntityUtil.CheckArgumentNull(argument7Type, "argument7Type");
471EntityUtil.CheckArgumentNull(argument8Type, "argument8Type");
472EntityUtil.CheckArgumentNull(argument9Type, "argument9Type");
473EntityUtil.CheckArgumentNull(argument10Type, "argument10Type");
474EntityUtil.CheckArgumentNull(argument11Type, "argument11Type");
475EntityUtil.CheckArgumentNull(argument12Type, "argument12Type");
476EntityUtil.CheckArgumentNull(lambdaFunction, "lambdaFunction");
511EntityUtil.CheckArgumentNull(argument1Type, "argument1Type");
512EntityUtil.CheckArgumentNull(argument2Type, "argument2Type");
513EntityUtil.CheckArgumentNull(argument3Type, "argument3Type");
514EntityUtil.CheckArgumentNull(argument4Type, "argument4Type");
515EntityUtil.CheckArgumentNull(argument5Type, "argument5Type");
516EntityUtil.CheckArgumentNull(argument6Type, "argument6Type");
517EntityUtil.CheckArgumentNull(argument7Type, "argument7Type");
518EntityUtil.CheckArgumentNull(argument8Type, "argument8Type");
519EntityUtil.CheckArgumentNull(argument9Type, "argument9Type");
520EntityUtil.CheckArgumentNull(argument10Type, "argument10Type");
521EntityUtil.CheckArgumentNull(argument11Type, "argument11Type");
522EntityUtil.CheckArgumentNull(argument12Type, "argument12Type");
523EntityUtil.CheckArgumentNull(argument13Type, "argument13Type");
524EntityUtil.CheckArgumentNull(lambdaFunction, "lambdaFunction");
560EntityUtil.CheckArgumentNull(argument1Type, "argument1Type");
561EntityUtil.CheckArgumentNull(argument2Type, "argument2Type");
562EntityUtil.CheckArgumentNull(argument3Type, "argument3Type");
563EntityUtil.CheckArgumentNull(argument4Type, "argument4Type");
564EntityUtil.CheckArgumentNull(argument5Type, "argument5Type");
565EntityUtil.CheckArgumentNull(argument6Type, "argument6Type");
566EntityUtil.CheckArgumentNull(argument7Type, "argument7Type");
567EntityUtil.CheckArgumentNull(argument8Type, "argument8Type");
568EntityUtil.CheckArgumentNull(argument9Type, "argument9Type");
569EntityUtil.CheckArgumentNull(argument10Type, "argument10Type");
570EntityUtil.CheckArgumentNull(argument11Type, "argument11Type");
571EntityUtil.CheckArgumentNull(argument12Type, "argument12Type");
572EntityUtil.CheckArgumentNull(argument13Type, "argument13Type");
573EntityUtil.CheckArgumentNull(argument14Type, "argument14Type");
574EntityUtil.CheckArgumentNull(lambdaFunction, "lambdaFunction");
612EntityUtil.CheckArgumentNull(argument1Type, "argument1Type");
613EntityUtil.CheckArgumentNull(argument2Type, "argument2Type");
614EntityUtil.CheckArgumentNull(argument3Type, "argument3Type");
615EntityUtil.CheckArgumentNull(argument4Type, "argument4Type");
616EntityUtil.CheckArgumentNull(argument5Type, "argument5Type");
617EntityUtil.CheckArgumentNull(argument6Type, "argument6Type");
618EntityUtil.CheckArgumentNull(argument7Type, "argument7Type");
619EntityUtil.CheckArgumentNull(argument8Type, "argument8Type");
620EntityUtil.CheckArgumentNull(argument9Type, "argument9Type");
621EntityUtil.CheckArgumentNull(argument10Type, "argument10Type");
622EntityUtil.CheckArgumentNull(argument11Type, "argument11Type");
623EntityUtil.CheckArgumentNull(argument12Type, "argument12Type");
624EntityUtil.CheckArgumentNull(argument13Type, "argument13Type");
625EntityUtil.CheckArgumentNull(argument14Type, "argument14Type");
626EntityUtil.CheckArgumentNull(argument15Type, "argument15Type");
627EntityUtil.CheckArgumentNull(lambdaFunction, "lambdaFunction");
666EntityUtil.CheckArgumentNull(argument1Type, "argument1Type");
667EntityUtil.CheckArgumentNull(argument2Type, "argument2Type");
668EntityUtil.CheckArgumentNull(argument3Type, "argument3Type");
669EntityUtil.CheckArgumentNull(argument4Type, "argument4Type");
670EntityUtil.CheckArgumentNull(argument5Type, "argument5Type");
671EntityUtil.CheckArgumentNull(argument6Type, "argument6Type");
672EntityUtil.CheckArgumentNull(argument7Type, "argument7Type");
673EntityUtil.CheckArgumentNull(argument8Type, "argument8Type");
674EntityUtil.CheckArgumentNull(argument9Type, "argument9Type");
675EntityUtil.CheckArgumentNull(argument10Type, "argument10Type");
676EntityUtil.CheckArgumentNull(argument11Type, "argument11Type");
677EntityUtil.CheckArgumentNull(argument12Type, "argument12Type");
678EntityUtil.CheckArgumentNull(argument13Type, "argument13Type");
679EntityUtil.CheckArgumentNull(argument14Type, "argument14Type");
680EntityUtil.CheckArgumentNull(argument15Type, "argument15Type");
681EntityUtil.CheckArgumentNull(argument16Type, "argument16Type");
682EntityUtil.CheckArgumentNull(lambdaFunction, "lambdaFunction");
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (47)
182EntityUtil.CheckArgumentNull(lambda, "lambda");
379EntityUtil.CheckArgumentNull(expression, "expression");
381throw EntityUtil.NotSupported(System.Data.Entity.Strings.Cqt_General_UnsupportedExpression(expression.GetType().FullName));
386EntityUtil.CheckArgumentNull(expression, "expression");
395EntityUtil.CheckArgumentNull(expression, "expression");
402EntityUtil.CheckArgumentNull(expression, "expression");
416EntityUtil.CheckArgumentNull(expression, "expression");
423EntityUtil.CheckArgumentNull(expression, "expression");
440EntityUtil.CheckArgumentNull(expression, "expression");
457EntityUtil.CheckArgumentNull(expression, "expression");
471EntityUtil.CheckArgumentNull(expression, "expression");
494throw EntityUtil.NotSupported();
500EntityUtil.CheckArgumentNull(expression, "expression");
520EntityUtil.CheckArgumentNull(expression, "expression");
539EntityUtil.CheckArgumentNull(expression, "expression");
558EntityUtil.CheckArgumentNull(expression, "expression");
591throw EntityUtil.NotSupported();
600EntityUtil.CheckArgumentNull(expression, "expression");
607EntityUtil.CheckArgumentNull(expression, "expression");
614EntityUtil.CheckArgumentNull(expression, "expression");
621EntityUtil.CheckArgumentNull(expression, "expression");
628EntityUtil.CheckArgumentNull(expression, "expression");
646EntityUtil.CheckArgumentNull(expression, "expression");
653EntityUtil.CheckArgumentNull(expression, "expression");
660EntityUtil.CheckArgumentNull(expression, "expression");
667EntityUtil.CheckArgumentNull(expression, "expression");
674EntityUtil.CheckArgumentNull(expression, "expression");
681EntityUtil.CheckArgumentNull(expression, "expression");
695EntityUtil.CheckArgumentNull(expression, "expression");
702EntityUtil.CheckArgumentNull(expression, "expression");
722EntityUtil.CheckArgumentNull(expression, "expression");
736EntityUtil.CheckArgumentNull(expression, "expression");
764EntityUtil.CheckArgumentNull(expression, "expression");
785EntityUtil.CheckArgumentNull(expression, "expression");
806EntityUtil.CheckArgumentNull(expression, "expression");
813EntityUtil.CheckArgumentNull(expression, "expression");
820EntityUtil.CheckArgumentNull(expression, "expression");
827EntityUtil.CheckArgumentNull(expression, "expression");
842EntityUtil.CheckArgumentNull(expression, "expression");
860EntityUtil.CheckArgumentNull(expression, "expression");
878EntityUtil.CheckArgumentNull(expression, "expression");
893EntityUtil.CheckArgumentNull(expression, "expression");
928EntityUtil.CheckArgumentNull(expression, "expression");
955EntityUtil.CheckArgumentNull(expression, "expression");
985EntityUtil.CheckArgumentNull(expression, "expression");
1006EntityUtil.CheckArgumentNull(expression, "expression");
1025EntityUtil.CheckArgumentNull(expression, "expression");
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (17)
172EntityUtil.CheckArgumentNull(argument, "argument");
1783EntityUtil.CheckArgumentNull(source, sourceName);
1784EntityUtil.CheckArgumentNull(argument, argumentName);
1793EntityUtil.CheckArgumentNull(left, leftArgumentName);
1794EntityUtil.CheckArgumentNull(right, rightArgumentName);
1796EntityUtil.CheckArgumentNull(argument, argumentName);
1904throw EntityUtil.NotSupported(Strings.Cqt_Factory_MethodResultTypeNotSupported(typeof(TArgument).FullName));
2228EntityUtil.CheckArgumentNull(selector, "selector");
2370EntityUtil.CheckArgumentNull(projection, "projection");
2441EntityUtil.CheckArgumentNull(selector, "selector");
2469EntityUtil.CheckArgumentNull(argument, "argument");
2492EntityUtil.CheckArgumentNull(source, "source");
2493EntityUtil.CheckArgumentNull(sortKey, "sortKey");
2698throw EntityUtil.InvalidEnumerationValue(typeof(PrimitiveTypeKind), (int)primitiveType);
2715throw EntityUtil.InvalidEnumerationValue(typeof(DbExpressionKind), (int)applyKind);
2748throw EntityUtil.InvalidEnumerationValue(typeof(DbExpressionKind), (int)joinKind);
2787throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Element_InvalidArgumentForUnwrapSingleProperty, "arg");
System\Data\Common\CommandTrees\ExpressionBuilder\EdmFunctions.cs (118)
43throw EntityUtil.Argument(Strings.Cqt_Function_CanonicalFunction_AmbiguousMatch(functionName));
49throw EntityUtil.Argument(Strings.Cqt_Function_CanonicalFunction_NotFound(functionName));
82EntityUtil.CheckArgumentNull(collection, "collection");
96EntityUtil.CheckArgumentNull(collection, "collection");
110EntityUtil.CheckArgumentNull(collection, "collection");
124EntityUtil.CheckArgumentNull(collection, "collection");
138EntityUtil.CheckArgumentNull(collection, "collection");
152EntityUtil.CheckArgumentNull(collection, "collection");
167EntityUtil.CheckArgumentNull(collection, "collection");
182EntityUtil.CheckArgumentNull(collection, "collection");
196EntityUtil.CheckArgumentNull(collection, "collection");
210EntityUtil.CheckArgumentNull(collection, "collection");
230EntityUtil.CheckArgumentNull(string1, "string1");
231EntityUtil.CheckArgumentNull(string2, "string2");
249EntityUtil.CheckArgumentNull(searchedString, "searchedString");
250EntityUtil.CheckArgumentNull(searchedForString, "searchedForString");
266EntityUtil.CheckArgumentNull(stringArgument, "stringArgument");
267EntityUtil.CheckArgumentNull(suffix, "suffix");
284EntityUtil.CheckArgumentNull(searchString, "searchString");
285EntityUtil.CheckArgumentNull(stringToFind, "stringToFind");
301EntityUtil.CheckArgumentNull(stringArgument, "stringArgument");
302EntityUtil.CheckArgumentNull(length, "length");
317EntityUtil.CheckArgumentNull(stringArgument, "stringArgument");
334EntityUtil.CheckArgumentNull(stringArgument, "stringArgument");
335EntityUtil.CheckArgumentNull(toReplace, "toReplace");
336EntityUtil.CheckArgumentNull(replacement, "replacement");
351EntityUtil.CheckArgumentNull(stringArgument, "stringArgument");
367EntityUtil.CheckArgumentNull(stringArgument, "stringArgument");
368EntityUtil.CheckArgumentNull(length, "length");
384EntityUtil.CheckArgumentNull(stringArgument, "stringArgument");
385EntityUtil.CheckArgumentNull(prefix, "prefix");
405EntityUtil.CheckArgumentNull(stringArgument, "stringArgument");
406EntityUtil.CheckArgumentNull(start, "start");
407EntityUtil.CheckArgumentNull(length, "length");
422EntityUtil.CheckArgumentNull(stringArgument, "stringArgument");
437EntityUtil.CheckArgumentNull(stringArgument, "stringArgument");
452EntityUtil.CheckArgumentNull(stringArgument, "stringArgument");
467EntityUtil.CheckArgumentNull(stringArgument, "stringArgument");
482EntityUtil.CheckArgumentNull(stringArgument, "stringArgument");
501EntityUtil.CheckArgumentNull(dateValue, "dateValue");
516EntityUtil.CheckArgumentNull(dateValue, "dateValue");
531EntityUtil.CheckArgumentNull(dateValue, "dateValue");
546EntityUtil.CheckArgumentNull(dateValue, "dateValue");
561EntityUtil.CheckArgumentNull(timeValue, "timeValue");
576EntityUtil.CheckArgumentNull(timeValue, "timeValue");
591EntityUtil.CheckArgumentNull(timeValue, "timeValue");
606EntityUtil.CheckArgumentNull(timeValue, "timeValue");
620EntityUtil.CheckArgumentNull(dateTimeOffsetArgument, "dateTimeOffsetArgument");
666EntityUtil.CheckArgumentNull(dateValue, "dateValue");
686EntityUtil.CheckArgumentNull(year, "year");
687EntityUtil.CheckArgumentNull(month, "month");
688EntityUtil.CheckArgumentNull(day, "day");
689EntityUtil.CheckArgumentNull(hour, "hour");
690EntityUtil.CheckArgumentNull(minute, "minute");
691EntityUtil.CheckArgumentNull(second, "second");
712EntityUtil.CheckArgumentNull(year, "year");
713EntityUtil.CheckArgumentNull(month, "month");
714EntityUtil.CheckArgumentNull(day, "day");
715EntityUtil.CheckArgumentNull(hour, "hour");
716EntityUtil.CheckArgumentNull(minute, "minute");
717EntityUtil.CheckArgumentNull(second, "second");
718EntityUtil.CheckArgumentNull(timeZoneOffset, "timeZoneOffset");
735EntityUtil.CheckArgumentNull(hour, "hour");
736EntityUtil.CheckArgumentNull(minute, "minute");
737EntityUtil.CheckArgumentNull(second, "second");
757EntityUtil.CheckArgumentNull(dateValue, "dateValue");
758EntityUtil.CheckArgumentNull(addValue, "addValue");
774EntityUtil.CheckArgumentNull(dateValue, "dateValue");
775EntityUtil.CheckArgumentNull(addValue, "addValue");
791EntityUtil.CheckArgumentNull(dateValue, "dateValue");
792EntityUtil.CheckArgumentNull(addValue, "addValue");
808EntityUtil.CheckArgumentNull(timeValue, "timeValue");
809EntityUtil.CheckArgumentNull(addValue, "addValue");
825EntityUtil.CheckArgumentNull(timeValue, "timeValue");
826EntityUtil.CheckArgumentNull(addValue, "addValue");
842EntityUtil.CheckArgumentNull(timeValue, "timeValue");
843EntityUtil.CheckArgumentNull(addValue, "addValue");
859EntityUtil.CheckArgumentNull(timeValue, "timeValue");
860EntityUtil.CheckArgumentNull(addValue, "addValue");
876EntityUtil.CheckArgumentNull(timeValue, "timeValue");
877EntityUtil.CheckArgumentNull(addValue, "addValue");
893EntityUtil.CheckArgumentNull(timeValue, "timeValue");
894EntityUtil.CheckArgumentNull(addValue, "addValue");
915EntityUtil.CheckArgumentNull(dateValue1, "dateValue1");
916EntityUtil.CheckArgumentNull(dateValue2, "dateValue2");
933EntityUtil.CheckArgumentNull(dateValue1, "dateValue1");
934EntityUtil.CheckArgumentNull(dateValue2, "dateValue2");
951EntityUtil.CheckArgumentNull(dateValue1, "dateValue1");
952EntityUtil.CheckArgumentNull(dateValue2, "dateValue2");
969EntityUtil.CheckArgumentNull(timeValue1, "timeValue1");
970EntityUtil.CheckArgumentNull(timeValue2, "timeValue2");
987EntityUtil.CheckArgumentNull(timeValue1, "timeValue1");
988EntityUtil.CheckArgumentNull(timeValue2, "timeValue2");
1005EntityUtil.CheckArgumentNull(timeValue1, "timeValue1");
1006EntityUtil.CheckArgumentNull(timeValue2, "timeValue2");
1023EntityUtil.CheckArgumentNull(timeValue1, "timeValue1");
1024EntityUtil.CheckArgumentNull(timeValue2, "timeValue2");
1041EntityUtil.CheckArgumentNull(timeValue1, "timeValue1");
1042EntityUtil.CheckArgumentNull(timeValue2, "timeValue2");
1059EntityUtil.CheckArgumentNull(timeValue1, "timeValue1");
1060EntityUtil.CheckArgumentNull(timeValue2, "timeValue2");
1079EntityUtil.CheckArgumentNull(value, "value");
1095EntityUtil.CheckArgumentNull(value, "value");
1096EntityUtil.CheckArgumentNull(digits, "digits");
1111EntityUtil.CheckArgumentNull(value, "value");
1126EntityUtil.CheckArgumentNull(value, "value");
1141EntityUtil.CheckArgumentNull(value, "value");
1157EntityUtil.CheckArgumentNull(value, "value");
1158EntityUtil.CheckArgumentNull(digits, "digits");
1174EntityUtil.CheckArgumentNull(baseArgument, "baseArgument");
1175EntityUtil.CheckArgumentNull(exponent, "exponent");
1195EntityUtil.CheckArgumentNull(value1, "value1");
1196EntityUtil.CheckArgumentNull(value2, "value2");
1212EntityUtil.CheckArgumentNull(value1, "value1");
1213EntityUtil.CheckArgumentNull(value2, "value2");
1228EntityUtil.CheckArgumentNull(value, "value");
1244EntityUtil.CheckArgumentNull(value1, "value1");
1245EntityUtil.CheckArgumentNull(value2, "value2");
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (148)
38throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_General_PolymorphicTypeRequired(TypeHelpers.GetFullName(type)), "type");
60throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_ExpressionLink_TypeMismatch(
88throw EntityUtil.Argument(
121throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_RelNav_WrongSourceType(TypeHelpers.GetFullName(endType)), "from");
126throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_RelNav_WrongSourceType(TypeHelpers.GetFullName(endType)), "from");
136throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Unary_CollectionRequired(typeof(TExpressionType).Name), "argument");
146throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Binary_CollectionsRequired(typeof(TExpressionType).Name));
152throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Binary_CollectionsRequired(typeof(TExpressionType).Name));
164throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_InvalidTypeForSetOperation(TypeHelpers.GetElementTypeUsage(left.ResultType).Identity, typeof(TExpressionType).Name), "left");
169throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_InvalidTypeForSetOperation(TypeHelpers.GetElementTypeUsage(right.ResultType).Identity, typeof(TExpressionType).Name), "right");
229EntityUtil.CheckArgumentNull(left, "left");
230EntityUtil.CheckArgumentNull(right, "right");
237EntityUtil.CheckArgumentNull(argument, "argument");
253EntityUtil.CheckArgumentNull(varName, "varName");
254EntityUtil.CheckArgumentNull(input, "input");
261throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Binding_VariableNameNotValid, "varName");
270throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Binding_CollectionRequired, "input");
283EntityUtil.CheckArgumentNull(varName, "varName");
284EntityUtil.CheckArgumentNull(groupVarName, "groupVarName");
285EntityUtil.CheckArgumentNull(input, "input");
292throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Binding_VariableNameNotValid, "varName");
297throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_GroupBinding_GroupVariableNameNotValid, "groupVarName");
306throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_GroupBinding_CollectionRequired, "input");
335throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Aggregate_InvalidFunction, "function");
357EntityUtil.CheckArgumentNull(argument, "argument");
363EntityUtil.CheckArgumentNull(key, "key");
367throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Sort_OrderComparable, "key");
375EntityUtil.CheckArgumentNull(collation, "collation");
378throw EntityUtil.ArgumentOutOfRange(System.Data.Entity.Strings.Cqt_Sort_EmptyCollationInvalid, "collation");
383throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Sort_NonStringCollationInvalid, "collation");
393EntityUtil.CheckArgumentNull(body, "body");
400throw EntityUtil.ArgumentNull(StringUtil.FormatIndex("variables", idx));
419EntityUtil.CheckArgumentNull(binding, argumentName);
424EntityUtil.CheckArgumentNull(binding, argumentName);
430EntityUtil.CheckArgumentNull(argument, argumentName);
451throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Apply_DuplicateVariableNames);
469EntityUtil.CheckArgumentNull(inputs, "inputs");
495throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_CrossJoin_DuplicateVariableNames(nameIndex, iPos, input.VariableName));
508throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_CrossJoin_AtLeastTwoInputs, "inputs");
529EntityUtil.CheckArgumentNull(joinCondition, "joinCondition");
536throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Join_DuplicateVariableNames);
587throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_GroupBy_KeyNotEqualityComparable(keyInfo.Key));
612throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_GroupBy_AggregateColumnExistsAsGroupColumn(aggInfo.Key));
622throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_GroupBy_MoreThanOneGroupAggregate);
644throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_GroupBy_AtLeastOneKeyOrAggregate);
687EntityUtil.CheckArgumentNull(count, "count");
690throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Skip_IntegerRequired, "count");
699throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Skip_ConstantOrParameterRefRequired, "count");
707throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Skip_NonNegativeCountRequired, "count");
732EntityUtil.CheckArgumentNull(value, "value");
740throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Constant_InvalidType, "value");
751EntityUtil.CheckArgumentNull(value, "value");
767throw EntityUtil.Argument(
780throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Constant_InvalidConstantType(constantType.ToString()), "constantType");
792throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Constant_InvalidValueForType(constantType.ToString()), "value");
802EntityUtil.CheckArgumentNull(name, "name");
805throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_CommandTree_InvalidParameterName(name), "name");
819EntityUtil.CheckArgumentNull(name, "name");
822throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Binding_VariableNameNotValid, "name");
835throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_And_BooleanArgumentsRequired);
846throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Or_BooleanArgumentsRequired);
854EntityUtil.CheckArgumentNull(argument, "argument");
861throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Not_BooleanArgumentRequired);
878throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Arithmetic_NumericCommonType);
890throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Arithmetic_InvalidUnsignedTypeForUnaryMinus(argument.ResultType.EdmType.FullName));
901throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Arithmetic_NumericCommonType);
913EntityUtil.CheckArgumentNull(left, "left");
914EntityUtil.CheckArgumentNull(right, "right");
939throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Comparison_ComparableRequired);
952EntityUtil.CheckArgumentNull(argument, "argument");
959throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_IsNull_CollectionNotAllowed);
970throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_IsNull_InvalidType);
979EntityUtil.CheckArgumentNull(argument, "argument");
980EntityUtil.CheckArgumentNull(pattern, "pattern");
992EntityUtil.CheckArgumentNull(escape, "escape");
1011throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Cast_InvalidCast(TypeHelpers.GetFullName(argument.ResultType), TypeHelpers.GetFullName(toType)));
1029throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_General_PolymorphicArgRequired(typeof(DbTreatExpression).Name));
1055throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_General_PolymorphicArgRequired(typeof(DbOfTypeExpression).Name));
1079throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_General_PolymorphicArgRequired(typeof(DbIsOfExpression).Name));
1099throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_DeRef_RefRequired, "argument");
1115throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_GetEntityRef_EntityRequired, "argument");
1123EntityUtil.CheckArgumentNull(entitySet, "entitySet");
1138throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Ref_PolymorphicArgRequired);
1162EntityUtil.CheckArgumentNull(entitySet, "entitySet");
1169EntityUtil.CheckArgumentNull(keyValues, "keyValues");
1178throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Ref_PolymorphicArgRequired);
1205throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_GetRefKey_RefRequired, "argument");
1217EntityUtil.CheckArgumentNull(navigateFrom, "navigateFrom");
1227EntityUtil.CheckArgumentNull(fromEndName, "fromEndName");
1228EntityUtil.CheckArgumentNull(toEndName, "toEndName");
1235throw EntityUtil.ArgumentOutOfRange(System.Data.Entity.Strings.Cqt_Factory_NoSuchRelationEnd, fromEndName);
1240throw EntityUtil.ArgumentOutOfRange(System.Data.Entity.Strings.Cqt_Factory_NoSuchRelationEnd, toEndName);
1253EntityUtil.CheckArgumentNull(navigateFrom, "navigateFrom");
1273throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Factory_IncompatibleRelationEnds, "toEnd");
1300throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Distinct_InvalidCollection, "argument");
1371EntityUtil.CheckArgumentNull(argument, "argument");
1378EntityUtil.CheckArgumentNull(limit, "count");
1381throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Limit_IntegerRequired, "limit");
1390throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Limit_ConstantOrParameterRefRequired, "limit");
1398throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Limit_NonNegativeLimitRequired, "limit");
1409EntityUtil.CheckArgumentNull(whenExpressions, "whenExpressions");
1410EntityUtil.CheckArgumentNull(thenExpressions, "thenExpressions");
1411EntityUtil.CheckArgumentNull(elseExpression, "elseExpression");
1437throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Case_InvalidResultType);
1447throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Case_InvalidResultType);
1455throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Case_WhensMustEqualThens);
1476throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Function_NonComposableInExpression, "function");
1480throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Function_CommandTextInExpression, "function");
1488throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Function_VoidResultInvalid, "function");
1506EntityUtil.CheckArgumentNull(lambda, "lambda");
1507EntityUtil.CheckArgumentNull(arguments, "arguments");
1541throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Factory_NewCollectionInvalidCommonType, "collectionElements");
1556throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_NewInstance_CollectionTypeRequired, "collectionType");
1621throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_NewInstance_StructuralTypeRequired, "instanceType");
1626throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_NewInstance_CannotInstantiateAbstractType(TypeHelpers.GetFullName(instanceType)), "instanceType");
1632throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_NewInstance_CannotInstantiateMemberlessType(TypeHelpers.GetFullName(instanceType)), "instanceType");
1645EntityUtil.CheckArgumentNull(entityType, "entityType");
1646EntityUtil.CheckArgumentNull(attributeValues, "attributeValues");
1647EntityUtil.CheckArgumentNull(relationships, "relationships");
1658EntityUtil.CheckArgumentNull(relatedRef, StringUtil.FormatIndex("relationships", idx));
1666throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_NewInstance_IncompatibleRelatedEntity_SourceTypeNotValid, StringUtil.FormatIndex("relationships", idx));
1693throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Property_InstanceRequiredForInstance, "instance");
1706EntityUtil.CheckArgumentNull(instance, "instance");
1707EntityUtil.CheckArgumentNull(propertyName, "propertyName");
1735throw EntityUtil.ArgumentOutOfRange(System.Data.Entity.Strings.Cqt_Factory_NoSuchProperty(propertyName, TypeHelpers.GetFullName(instance.ResultType)), "propertyName");
1748throw EntityUtil.ArgumentNull(string.Format(CultureInfo.InvariantCulture, "{0}.Key", argumentName));
1757throw EntityUtil.ArgumentNull(string.Format(CultureInfo.InvariantCulture, "{0}.Value", argumentName));
1763EntityUtil.CheckArgumentNull(item, varName);
1766throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_General_MetadataNotReadOnly, varName);
1772EntityUtil.CheckArgumentNull(item, varName);
1775throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_General_MetadataNotReadOnly, varName);
1781EntityUtil.CheckArgumentNull(item, varName);
1784throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_General_MetadataNotReadOnly, varName);
1795EntityUtil.CheckArgumentNull(type, argumentName);
1813EntityUtil.CheckArgumentNull(type, varName);
1821throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Metadata_TypeUsageIncorrectSpace, "type");
1832EntityUtil.CheckArgumentNull(memberMeta, varName);
1841throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Metadata_EdmMemberIncorrectSpace, varName);
1847EntityUtil.CheckArgumentNull(paramMeta, varName);
1856throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Metadata_FunctionParameterIncorrectSpace, varName);
1866EntityUtil.CheckArgumentNull(function, "function");
1873throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Metadata_FunctionIncorrectSpace, "function");
1879throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Metadata_FunctionReturnParameterNull, "function");
1888throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Metadata_FunctionParameterIncorrectSpace, "function.ReturnParameter");
1910EntityUtil.CheckArgumentNull(entitySet, varName);
1921throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Metadata_EntitySetEntityContainerNull, varName);
1926throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Metadata_EntitySetIncorrectSpace, varName);
1937throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Metadata_EntitySetIncorrectSpace, varName);
System\Data\Common\CommandTrees\ExpressionBuilder\Spatial\SpatialEdmFunctions.cs (141)
41EntityUtil.CheckArgumentNull(wellKnownText, "wellKnownText");
57EntityUtil.CheckArgumentNull(wellKnownText, "wellKnownText");
58EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
74EntityUtil.CheckArgumentNull(pointWellKnownText, "pointWellKnownText");
75EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
91EntityUtil.CheckArgumentNull(lineWellKnownText, "lineWellKnownText");
92EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
108EntityUtil.CheckArgumentNull(polygonWellKnownText, "polygonWellKnownText");
109EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
129EntityUtil.CheckArgumentNull(multiPointWellKnownText, "multiPointWellKnownText");
130EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
150EntityUtil.CheckArgumentNull(multiLineWellKnownText, "multiLineWellKnownText");
151EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
169EntityUtil.CheckArgumentNull(multiPolygonWellKnownText, "multiPolygonWellKnownText");
170EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
186EntityUtil.CheckArgumentNull(geometryCollectionWellKnownText, "geometryCollectionWellKnownText");
187EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
207EntityUtil.CheckArgumentNull(wellKnownBinaryValue, "wellKnownBinaryValue");
223EntityUtil.CheckArgumentNull(wellKnownBinaryValue, "wellKnownBinaryValue");
224EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
240EntityUtil.CheckArgumentNull(pointWellKnownBinaryValue, "pointWellKnownBinaryValue");
241EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
257EntityUtil.CheckArgumentNull(lineWellKnownBinaryValue, "lineWellKnownBinaryValue");
258EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
274EntityUtil.CheckArgumentNull(polygonWellKnownBinaryValue, "polygonWellKnownBinaryValue");
275EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
295EntityUtil.CheckArgumentNull(multiPointWellKnownBinaryValue, "multiPointWellKnownBinaryValue");
296EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
316EntityUtil.CheckArgumentNull(multiLineWellKnownBinaryValue, "multiLineWellKnownBinaryValue");
317EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
335EntityUtil.CheckArgumentNull(multiPolygonWellKnownBinaryValue, "multiPolygonWellKnownBinaryValue");
336EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
352EntityUtil.CheckArgumentNull(geometryCollectionWellKnownBinaryValue, "geometryCollectionWellKnownBinaryValue");
353EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
372EntityUtil.CheckArgumentNull(geometryMarkup, "geometryMarkup");
389EntityUtil.CheckArgumentNull(geometryMarkup, "geometryMarkup");
390EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
409EntityUtil.CheckArgumentNull(wellKnownText, "wellKnownText");
425EntityUtil.CheckArgumentNull(wellKnownText, "wellKnownText");
426EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
442EntityUtil.CheckArgumentNull(pointWellKnownText, "pointWellKnownText");
443EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
459EntityUtil.CheckArgumentNull(lineWellKnownText, "lineWellKnownText");
460EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
476EntityUtil.CheckArgumentNull(polygonWellKnownText, "polygonWellKnownText");
477EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
497EntityUtil.CheckArgumentNull(multiPointWellKnownText, "multiPointWellKnownText");
498EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
518EntityUtil.CheckArgumentNull(multiLineWellKnownText, "multiLineWellKnownText");
519EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
537EntityUtil.CheckArgumentNull(multiPolygonWellKnownText, "multiPolygonWellKnownText");
538EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
554EntityUtil.CheckArgumentNull(geographyCollectionWellKnownText, "geographyCollectionWellKnownText");
555EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
575EntityUtil.CheckArgumentNull(wellKnownBinaryValue, "wellKnownBinaryValue");
591EntityUtil.CheckArgumentNull(wellKnownBinaryValue, "wellKnownBinaryValue");
592EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
608EntityUtil.CheckArgumentNull(pointWellKnownBinaryValue, "pointWellKnownBinaryValue");
609EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
625EntityUtil.CheckArgumentNull(lineWellKnownBinaryValue, "lineWellKnownBinaryValue");
626EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
642EntityUtil.CheckArgumentNull(polygonWellKnownBinaryValue, "polygonWellKnownBinaryValue");
643EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
663EntityUtil.CheckArgumentNull(multiPointWellKnownBinaryValue, "multiPointWellKnownBinaryValue");
664EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
684EntityUtil.CheckArgumentNull(multiLineWellKnownBinaryValue, "multiLineWellKnownBinaryValue");
685EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
703EntityUtil.CheckArgumentNull(multiPolygonWellKnownBinaryValue, "multiPolygonWellKnownBinaryValue");
704EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
720EntityUtil.CheckArgumentNull(geographyCollectionWellKnownBinaryValue, "geographyCollectionWellKnownBinaryValue");
721EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
740EntityUtil.CheckArgumentNull(geographyMarkup, "geographyMarkup");
757EntityUtil.CheckArgumentNull(geographyMarkup, "geographyMarkup");
758EntityUtil.CheckArgumentNull(coordinateSystemId, "coordinateSystemId");
780EntityUtil.CheckArgumentNull(spatialValue, "spatialValue");
795EntityUtil.CheckArgumentNull(spatialValue, "spatialValue");
810EntityUtil.CheckArgumentNull(spatialValue, "spatialValue");
825EntityUtil.CheckArgumentNull(geometryValue, "geometryValue");
840EntityUtil.CheckArgumentNull(spatialValue, "spatialValue");
856EntityUtil.CheckArgumentNull(spatialValue, "spatialValue");
871EntityUtil.CheckArgumentNull(spatialValue, "spatialValue");
886EntityUtil.CheckArgumentNull(spatialValue, "spatialValue");
901EntityUtil.CheckArgumentNull(geometryValue, "geometryValue");
915EntityUtil.CheckArgumentNull(geometryValue, "geometryValue");
930EntityUtil.CheckArgumentNull(geometryValue, "geometryValue");
951EntityUtil.CheckArgumentNull(spatialValue1, "spatialValue1");
952EntityUtil.CheckArgumentNull(spatialValue2, "spatialValue2");
969EntityUtil.CheckArgumentNull(spatialValue1, "spatialValue1");
970EntityUtil.CheckArgumentNull(spatialValue2, "spatialValue2");
987EntityUtil.CheckArgumentNull(spatialValue1, "spatialValue1");
988EntityUtil.CheckArgumentNull(spatialValue2, "spatialValue2");
1003EntityUtil.CheckArgumentNull(geometryValue1, "geometryValue1");
1004EntityUtil.CheckArgumentNull(geometryValue2, "geometryValue2");
1019EntityUtil.CheckArgumentNull(geometryValue1, "geometryValue1");
1020EntityUtil.CheckArgumentNull(geometryValue2, "geometryValue2");
1035EntityUtil.CheckArgumentNull(geometryValue1, "geometryValue1");
1036EntityUtil.CheckArgumentNull(geometryValue2, "geometryValue2");
1051EntityUtil.CheckArgumentNull(geometryValue1, "geometryValue1");
1052EntityUtil.CheckArgumentNull(geometryValue2, "geometryValue2");
1067EntityUtil.CheckArgumentNull(geometryValue1, "geometryValue1");
1068EntityUtil.CheckArgumentNull(geometryValue2, "geometryValue2");
1084EntityUtil.CheckArgumentNull(geometryValue1, "geometryValue1");
1085EntityUtil.CheckArgumentNull(geometryValue2, "geometryValue2");
1086EntityUtil.CheckArgumentNull(intersectionPatternMatrix, "intersectionPatternMatrix");
1105EntityUtil.CheckArgumentNull(spatialValue, "spatialValue");
1106EntityUtil.CheckArgumentNull(distance, "distance");
1123EntityUtil.CheckArgumentNull(spatialValue1, "spatialValue1");
1124EntityUtil.CheckArgumentNull(spatialValue2, "spatialValue2");
1138EntityUtil.CheckArgumentNull(geometryValue, "geometryValue");
1155EntityUtil.CheckArgumentNull(spatialValue1, "spatialValue1");
1156EntityUtil.CheckArgumentNull(spatialValue2, "spatialValue2");
1173EntityUtil.CheckArgumentNull(spatialValue1, "spatialValue1");
1174EntityUtil.CheckArgumentNull(spatialValue2, "spatialValue2");
1191EntityUtil.CheckArgumentNull(spatialValue1, "spatialValue1");
1192EntityUtil.CheckArgumentNull(spatialValue2, "spatialValue2");
1209EntityUtil.CheckArgumentNull(spatialValue1, "spatialValue1");
1210EntityUtil.CheckArgumentNull(spatialValue2, "spatialValue2");
1228EntityUtil.CheckArgumentNull(spatialValue, "spatialValue");
1246EntityUtil.CheckArgumentNull(spatialValue, "spatialValue");
1247EntityUtil.CheckArgumentNull(indexValue, "indexValue");
1266EntityUtil.CheckArgumentNull(geometryValue, "geometryValue");
1280EntityUtil.CheckArgumentNull(geometryValue, "geometryValue");
1294EntityUtil.CheckArgumentNull(spatialValue, "spatialValue");
1308EntityUtil.CheckArgumentNull(spatialValue, "spatialValue");
1322EntityUtil.CheckArgumentNull(geographyValue, "geographyValue");
1336EntityUtil.CheckArgumentNull(geographyValue, "geographyValue");
1354EntityUtil.CheckArgumentNull(spatialValue, "spatialValue");
1368EntityUtil.CheckArgumentNull(spatialValue, "spatialValue");
1382EntityUtil.CheckArgumentNull(spatialValue, "spatialValue");
1396EntityUtil.CheckArgumentNull(spatialValue, "spatialValue");
1410EntityUtil.CheckArgumentNull(geometryValue, "geometryValue");
1428EntityUtil.CheckArgumentNull(spatialValue, "spatialValue");
1445EntityUtil.CheckArgumentNull(spatialValue, "spatialValue");
1446EntityUtil.CheckArgumentNull(indexValue, "indexValue");
1464EntityUtil.CheckArgumentNull(spatialValue, "spatialValue");
1479EntityUtil.CheckArgumentNull(geometryValue, "geometryValue");
1493EntityUtil.CheckArgumentNull(geometryValue, "geometryValue");
1511EntityUtil.CheckArgumentNull(geometryValue, "geometryValue");
1525EntityUtil.CheckArgumentNull(geometryValue, "geometryValue");
1542EntityUtil.CheckArgumentNull(geometryValue, "geometryValue");
1543EntityUtil.CheckArgumentNull(indexValue, "indexValue");
System\Data\Common\DataRecord.cs (13)
139throw EntityUtil.InvalidSourceBufferIndex(cbytes, fieldOffset, "fieldOffset");
164if (EntityUtil.IsCatchableExceptionType(e))
169throw EntityUtil.InvalidDataLength(length);
173throw EntityUtil.InvalidDestinationBufferIndex(length, bufferOffset, "bufferOffset");
177throw EntityUtil.InvalidSourceBufferIndex(length, fieldOffset, "fieldOffset");
181throw EntityUtil.InvalidBufferSizeOrIndex(cbytes, bufferOffset);
214throw EntityUtil.InvalidSourceBufferIndex(cchars, fieldOffset, "fieldOffset");
238if (EntityUtil.IsCatchableExceptionType(e))
243throw EntityUtil.InvalidDataLength(length);
247throw EntityUtil.InvalidDestinationBufferIndex(buffer.Length, bufferOffset, "bufferOffset");
251throw EntityUtil.InvalidSourceBufferIndex(cchars, fieldOffset, "fieldOffset");
255throw EntityUtil.InvalidBufferSizeOrIndex(cchars, bufferOffset);
404throw EntityUtil.ArgumentNull("values");
System\Data\Common\DbProviderServices.cs (31)
42EntityUtil.CheckArgumentNull(commandTree, "commandTree");
70if (EntityUtil.IsCatchableExceptionType(e))
72throw EntityUtil.ProviderIncompatible(Strings.ProviderDidNotCreateACommandDefinition, e);
97throw EntityUtil.ProviderIncompatible(Strings.ProviderRequiresStoreCommandTree);
140throw EntityUtil.ProviderIncompatible(Strings.ProviderDidNotReturnAProviderManifestToken);
150if (EntityUtil.IsCatchableExceptionType(e))
152throw EntityUtil.ProviderIncompatible(Strings.ProviderDidNotReturnAProviderManifestToken, e);
167throw EntityUtil.ProviderIncompatible(Strings.ProviderDidNotReturnAProviderManifest);
178if (EntityUtil.IsCatchableExceptionType(e)) {
179throw EntityUtil.ProviderIncompatible(System.Data.Entity.Strings.ProviderDidNotReturnAProviderManifest, e);
195throw EntityUtil.ProviderIncompatible(Strings.ProviderDidNotReturnSpatialServices);
206if (EntityUtil.IsCatchableExceptionType(e))
208throw EntityUtil.ProviderIncompatible(System.Data.Entity.Strings.ProviderDidNotReturnSpatialServices, e);
221throw EntityUtil.ProviderIncompatible(Strings.ProviderDidNotReturnSpatialServices);
232if (EntityUtil.IsCatchableExceptionType(e))
234throw EntityUtil.ProviderIncompatible(System.Data.Entity.Strings.ProviderDidNotReturnSpatialServices, e);
244throw EntityUtil.ProviderIncompatible(Strings.ProviderDidNotReturnSpatialServices);
251throw EntityUtil.ProviderIncompatible(Strings.ProviderDidNotReturnSpatialServices);
265EntityUtil.CheckArgumentNull(parameter, "parameter");
266EntityUtil.CheckArgumentNull(parameterType, "parameterType");
282EntityUtil.CheckArgumentNull(providerInvariantName, "providerInvariantName");
290throw EntityUtil.Argument(Strings.EntityClient_InvalidStoreProvider, e);
302EntityUtil.CheckArgumentNull(connection, "connection");
306throw EntityUtil.ProviderIncompatible(System.Data.Entity.Strings.EntityClient_ReturnedNullOnProviderMethod(
315EntityUtil.CheckArgumentNull(factory, "factory");
326throw EntityUtil.ProviderIncompatible(System.Data.Entity.Strings.EntityClient_DoesNotImplementIServiceProvider(
332throw EntityUtil.ProviderIncompatible(
378throw EntityUtil.ProviderIncompatible(Strings.ProviderDoesNotSupportCreateDatabaseScript);
397throw EntityUtil.ProviderIncompatible(Strings.ProviderDoesNotSupportCreateDatabase);
419throw EntityUtil.ProviderIncompatible(Strings.ProviderDoesNotSupportDatabaseExists);
437throw EntityUtil.ProviderIncompatible(Strings.ProviderDoesNotSupportDeleteDatabase);
System\Data\Common\EntitySql\AST\Literal.cs (22)
244throw EntityUtil.NotSupported(System.Data.Entity.Strings.LiteralTypeNotSupported(_literalKind.ToString()));
269throw EntityUtil.EntitySqlError(errCtx, System.Data.Entity.Strings.CannotConvertNumericLiteral(numericString, "unsigned int"));
280throw EntityUtil.EntitySqlError(errCtx, System.Data.Entity.Strings.CannotConvertNumericLiteral(numericString, "long"));
292throw EntityUtil.EntitySqlError(errCtx, System.Data.Entity.Strings.CannotConvertNumericLiteral(numericString, "unsigned long"));
303throw EntityUtil.EntitySqlError(errCtx, System.Data.Entity.Strings.CannotConvertNumericLiteral(numericString, "float"));
314throw EntityUtil.EntitySqlError(errCtx, System.Data.Entity.Strings.CannotConvertNumericLiteral(numericString, "decimal"));
325throw EntityUtil.EntitySqlError(errCtx, System.Data.Entity.Strings.CannotConvertNumericLiteral(numericString, "double"));
351throw EntityUtil.EntitySqlError(errCtx, System.Data.Entity.Strings.CannotConvertNumericLiteral(numericString, "double"));
367throw EntityUtil.EntitySqlError(errCtx, System.Data.Entity.Strings.CannotConvertNumericLiteral(numericString, "long"));
383throw EntityUtil.EntitySqlError(errCtx, System.Data.Entity.Strings.InvalidLiteralFormat("Boolean", booleanLiteralValue));
404throw EntityUtil.EntitySqlError(System.Data.Entity.Strings.MalformedStringLiteralPayload);
416throw EntityUtil.EntitySqlError(System.Data.Entity.Strings.MalformedStringLiteralPayload);
432throw EntityUtil.EntitySqlError(System.Data.Entity.Strings.MalformedStringLiteralPayload);
486throw EntityUtil.ArgumentOutOfRange("hexadecimal digit is not valid");
570throw EntityUtil.EntitySqlError(errCtx, System.Data.Entity.Strings.InvalidDateTimeOffsetLiteral(datetimeLiteralValue), e);
603throw EntityUtil.EntitySqlError(System.Data.Entity.Strings.InvalidHour(datetimeParts[timePartStartIndex], datetimeLiteralValue));
608throw EntityUtil.EntitySqlError(System.Data.Entity.Strings.InvalidMinute(datetimeParts[timePartStartIndex], datetimeLiteralValue));
618throw EntityUtil.EntitySqlError(System.Data.Entity.Strings.InvalidSecond(datetimeParts[timePartStartIndex], datetimeLiteralValue));
636throw EntityUtil.EntitySqlError(System.Data.Entity.Strings.InvalidYear(datetimeParts[0], datetimeLiteralValue));
641throw EntityUtil.EntitySqlError(System.Data.Entity.Strings.InvalidMonth(datetimeParts[1], datetimeLiteralValue));
646throw EntityUtil.EntitySqlError(System.Data.Entity.Strings.InvalidDay(datetimeParts[2], datetimeLiteralValue));
650throw EntityUtil.EntitySqlError(System.Data.Entity.Strings.InvalidDayInMonth(datetimeParts[2], datetimeParts[1], datetimeLiteralValue));
System\Data\Common\EntitySql\CqlErrorHelper.cs (8)
52throw EntityUtil.EntitySqlError(functionExpr.ErrCtx.CommandText,
67throw EntityUtil.EntitySqlError(errCtx, String.Format(CultureInfo.InvariantCulture, "{0} {1}", System.Data.Entity.Strings.AliasNameAlreadyUsed(aliasName), contextMessage));
86throw EntityUtil.EntitySqlError(errCtx, System.Data.Entity.Strings.ArgumentTypesAreIncompatible(leftType.Identity, rightType.Identity));
105throw EntityUtil.EntitySqlError(errCtx,
136throw EntityUtil.EntitySqlError(errCtx, errorMessage);
171throw EntityUtil.EntitySqlError(errCtx, errorMessage);
194throw EntityUtil.EntitySqlError(errCtx, errorMessage);
228throw EntityUtil.EntitySqlError(errCtx, errorMessage);
System\Data\Common\EntitySql\CqlLexerHelpers.cs (12)
361throw EntityUtil.EntitySqlError(_query, System.Data.Entity.Strings.InvalidEscapedIdentifier(symbol), _iPos);
433throw EntityUtil.EntitySqlError(_query, System.Data.Entity.Strings.InvalidAliasName(symbol), _iPos);
496throw EntityUtil.EntitySqlError(_query, System.Data.Entity.Strings.InvalidOperatorSymbol, _iPos);
520throw EntityUtil.EntitySqlError(_query, System.Data.Entity.Strings.InvalidPunctuatorSymbol, _iPos);
557throw EntityUtil.EntitySqlError(_query, System.Data.Entity.Strings.InvalidLiteralFormat("binary", literalValue), _iPos);
572throw EntityUtil.EntitySqlError(_query, System.Data.Entity.Strings.InvalidLiteralFormat("datetime", literalValue), _iPos);
580throw EntityUtil.EntitySqlError(_query, System.Data.Entity.Strings.InvalidLiteralFormat("time", literalValue), _iPos);
587throw EntityUtil.EntitySqlError(_query, System.Data.Entity.Strings.InvalidLiteralFormat("datetimeoffset", literalValue), _iPos);
595throw EntityUtil.EntitySqlError(_query, System.Data.Entity.Strings.InvalidLiteralFormat("guid", literalValue), _iPos);
636throw EntityUtil.EntitySqlError(_query, System.Data.Entity.Strings.InvalidEscapedIdentifierUnbalanced(YYText), _iPos);
705throw EntityUtil.EntitySqlError(System.Data.Entity.Strings.MalformedSingleQuotePayload);
720throw EntityUtil.EntitySqlError(System.Data.Entity.Strings.MalformedSingleQuotePayload);
System\Data\Common\EntitySql\SemanticAnalyzer.cs (170)
119throw EntityUtil.Argument(Strings.UnknownAstCommandExpression);
123throw EntityUtil.Argument(Strings.UnknownAstExpressionType);
160throw EntityUtil.EntitySqlError(namespaceImport.NamespaceName.ErrCtx, Strings.InvalidMetadataMemberName);
181throw EntityUtil.EntitySqlError(namespaceImport.NamespaceName.ErrCtx, Strings.InvalidMetadataMemberClassResolution(
219throw EntityUtil.Argument(Strings.UnknownAstExpressionType);
269throw EntityUtil.Argument(Strings.UnknownAstExpressionType);
288throw EntityUtil.EntitySqlError(queryStatement.Expr.ErrCtx, Strings.ResultingExpressionTypeCannotBeNull);
335throw EntityUtil.EntitySqlError(errCtx, Strings.InvalidQueryResultType(resultType.EdmType.FullName));
407throw EntityUtil.EntitySqlError(
447throw EntityUtil.EntitySqlError(FunctionDefAst.ErrCtx, Strings.Cqt_UDF_FunctionDefinitionWithCircularReference(FunctionDefAst.Name));
501throw EntityUtil.EntitySqlError(Strings.UnknownAstExpressionType);
517throw EntityUtil.EntitySqlError(astExpr.ErrCtx, Strings.ExpressionCannotBeNull);
564throw EntityUtil.EntitySqlError(astExpr.ErrCtx, errorMessage);
584throw EntityUtil.EntitySqlError(errCtx, formatMessage());
625throw EntityUtil.EntitySqlError(literal.ErrCtx, Strings.LiteralTypeNotFoundInMetadata(literal.OriginalValue));
686throw EntityUtil.EntitySqlError(dotExpr.Left.ErrCtx, Strings.UnknownExpressionResolutionClass(leftResolution.ExpressionClass));
725throw EntityUtil.EntitySqlError(astExpr.ErrCtx, Strings.GroupPartitionOutOfContext);
746throw EntityUtil.EntitySqlError(groupAggregateExpr.ArgExpr.ErrCtx, Strings.ResultingExpressionTypeCannotBeNull);
853throw EntityUtil.EntitySqlError(methodExpr.Expr.ErrCtx, Strings.CannotResolveNameToTypeOrFunction(metadataMember.Name));
858throw EntityUtil.EntitySqlError(methodExpr.ErrCtx, Strings.MethodInvocationNotSupported);
947throw EntityUtil.EntitySqlError(methodExpr.ErrCtx, Strings.AmbiguousFunctionArguments);
976throw EntityUtil.EntitySqlError(methodExpr.ErrCtx, Strings.InvalidCtorUseOnType(metadataType.TypeUsage.EdmType.FullName));
984throw EntityUtil.EntitySqlError(methodExpr.ErrCtx, Strings.CannotInstantiateAbstractType(metadataType.TypeUsage.EdmType.FullName));
992throw EntityUtil.EntitySqlError(methodExpr.ErrCtx, Strings.InvalidDistinctArgumentInCtor);
1004throw EntityUtil.EntitySqlError(methodExpr.Relationships.ErrCtx, Strings.InvalidModeForWithRelationshipClause);
1010throw EntityUtil.EntitySqlError(methodExpr.Relationships.ErrCtx, Strings.InvalidTypeForWithRelationshipClause);
1024throw EntityUtil.EntitySqlError(relshipExpr.ErrCtx, Strings.RelationshipTargetMustBeUnique(targetEndId));
1045throw EntityUtil.EntitySqlError(methodExpr.ErrCtx, Strings.CannotCallNoncomposableFunction(metadataFunctionGroup.Name));
1136throw EntityUtil.EntitySqlError(methodExpr.ErrCtx, Strings.FailedToResolveAggregateFunction(metadataFunctionGroup.Name));
1206throw EntityUtil.EntitySqlError(methodExpr.ErrCtx, Strings.AmbiguousFunctionArguments);
1253throw EntityUtil.EntitySqlError(methodExpr.ErrCtx, Strings.AmbiguousFunctionArguments);
1352throw EntityUtil.EntitySqlError(methodExpr.ErrCtx, Strings.NumberOfTypeCtorIsLessThenFormalSpec(member.Name));
1363throw EntityUtil.EntitySqlError(methodExpr.Args[idx].ErrCtx,
1378throw EntityUtil.EntitySqlError(methodExpr.Args[idx].ErrCtx,
1395throw EntityUtil.EntitySqlError(methodExpr.Args[idx].ErrCtx,
1411throw EntityUtil.EntitySqlError(methodExpr.ErrCtx, Strings.NumberOfTypeCtorIsMoreThenFormalSpec(stype.FullName));
1447throw EntityUtil.EntitySqlError(methodExpr.ErrCtx, Strings.InvalidDistinctArgumentInNonAggFunction);
1470throw EntityUtil.EntitySqlError(methodExpr.ErrCtx, Strings.AmbiguousFunctionArguments);
1541throw EntityUtil.EntitySqlError(parameter.ErrCtx, Strings.ParameterWasNotDefined(parameter.Name));
1563throw EntityUtil.EntitySqlError(relshipExpr.TypeName.ErrCtx, Strings.RelationshipTypeExpected(edmType.FullName));
1577throw EntityUtil.EntitySqlError(relshipExpr.RefExpr.ErrCtx, Strings.RelatedEndExprTypeMustBeReference);
1589throw EntityUtil.EntitySqlError(relshipExpr.ToEndIdentifier.ErrCtx, Strings.InvalidRelationshipMember(relshipExpr.ToEndIdentifier.Name, relationshipType.FullName));
1596throw EntityUtil.EntitySqlError(relshipExpr.ToEndIdentifier.ErrCtx,
1601throw EntityUtil.EntitySqlError(relshipExpr.RefExpr.ErrCtx, Strings.RelatedEndExprTypeMustBePromotoableToToEnd(refType.FullName, toEnd.TypeUsage.EdmType.FullName));
1616throw EntityUtil.EntitySqlError(relshipExpr.ErrCtx, Strings.InvalidImplicitRelationshipToEnd(relationshipType.FullName));
1618throw EntityUtil.EntitySqlError(relshipExpr.ErrCtx, Strings.RelationshipToEndIsAmbiguos);
1632throw EntityUtil.EntitySqlError(relshipExpr.FromEndIdentifier.ErrCtx, Strings.InvalidRelationshipMember(relshipExpr.FromEndIdentifier.Name, relationshipType.FullName));
1636throw EntityUtil.EntitySqlError(relshipExpr.FromEndIdentifier.ErrCtx,
1641throw EntityUtil.EntitySqlError(relshipExpr.ErrCtx, Strings.RelationshipFromEndIsAmbiguos);
1655throw EntityUtil.EntitySqlError(relshipExpr.ErrCtx, Strings.InvalidImplicitRelationshipFromEnd(relationshipType.FullName));
1658throw EntityUtil.EntitySqlError(relshipExpr.ErrCtx, Strings.RelationshipFromEndIsAmbiguos);
1680throw EntityUtil.EntitySqlError(relshipExpr.TypeName.ErrCtx, Strings.RelationshipTypeExpected(edmType.FullName));
1702throw EntityUtil.EntitySqlError(relshipExpr.RefExpr.ErrCtx, Strings.RelatedEndExprTypeMustBeReference);
1715throw EntityUtil.EntitySqlError(relshipExpr.ToEndIdentifier.ErrCtx, Strings.InvalidRelationshipMember(relshipExpr.ToEndIdentifier.Name, relationshipType.FullName));
1732throw EntityUtil.EntitySqlError(relshipExpr.FromEndIdentifier.ErrCtx, Strings.InvalidRelationshipMember(relshipExpr.FromEndIdentifier.Name, relationshipType.FullName));
1736throw EntityUtil.EntitySqlError(relshipExpr.FromEndIdentifier.ErrCtx,
1741throw EntityUtil.EntitySqlError(relshipExpr.ErrCtx, Strings.RelationshipFromEndIsAmbiguos);
1755throw EntityUtil.EntitySqlError(relshipExpr.ErrCtx, Strings.InvalidImplicitRelationshipFromEnd(relationshipType.FullName));
1758throw EntityUtil.EntitySqlError(relshipExpr.ErrCtx, Strings.RelationshipFromEndIsAmbiguos);
1776throw EntityUtil.EntitySqlError(relshipExpr.ErrCtx, Strings.InvalidImplicitRelationshipToEnd(relationshipType.FullName));
1779throw EntityUtil.EntitySqlError(relshipExpr.ErrCtx, Strings.RelationshipToEndIsAmbiguos);
1807throw EntityUtil.EntitySqlError(refExpr.ArgExpr.ErrCtx, Strings.RefArgIsNotOfEntityType(converted.ResultType.EdmType.FullName));
1835throw EntityUtil.EntitySqlError(deRefExpr.ArgExpr.ErrCtx, Strings.DeRefArgIsNotOfRefType(converted.ResultType.EdmType.FullName));
1862throw EntityUtil.EntitySqlError(createRefExpr.EntitySet.ErrCtx, Strings.ExprIsNotValidEntitySetForCreateRef);
1871throw EntityUtil.EntitySqlError(createRefExpr.EntitySet.ErrCtx, Strings.ExprIsNotValidEntitySetForCreateRef);
1879throw EntityUtil.EntitySqlError(createRefExpr.Keys.ErrCtx, Strings.InvalidCreateRefKeyType);
1886throw EntityUtil.EntitySqlError(createRefExpr.Keys.ErrCtx, Strings.ImcompatibleCreateRefKeyType);
1891throw EntityUtil.EntitySqlError(createRefExpr.Keys.ErrCtx, Strings.ImcompatibleCreateRefKeyElementType);
1907throw EntityUtil.EntitySqlError(createRefExpr.TypeIdentifier.ErrCtx,
1915throw EntityUtil.EntitySqlError(createRefExpr.TypeIdentifier.ErrCtx,
1951throw EntityUtil.EntitySqlError(keyExpr.ArgExpr.ErrCtx, Strings.InvalidKeyArgument(converted.ResultType.EdmType.FullName));
1970throw EntityUtil.EntitySqlError(Strings.UnknownBuiltInAstExpressionType);
1993throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg1.ErrCtx, Strings.ExpressionMustBeNumericType);
2000throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg2.ErrCtx, Strings.ExpressionMustBeNumericType);
2005throw EntityUtil.EntitySqlError(astBuiltInExpr.ErrCtx, Strings.ArgumentTypesAreIncompatible(
2030throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg1.ErrCtx, Strings.PlusLeftExpressionInvalidType);
2035throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg2.ErrCtx, Strings.PlusRightExpressionInvalidType);
2040throw EntityUtil.EntitySqlError(astBuiltInExpr.ErrCtx, Strings.ArgumentTypesAreIncompatible(
2076throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg1.ErrCtx, Strings.ExpressionTypeMustBeBoolean);
2084throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg2.ErrCtx, Strings.ExpressionTypeMustBeBoolean);
2113throw EntityUtil.EntitySqlError(astBuiltInExpr.ErrCtx, Strings.ArgumentTypesAreIncompatible(
2140throw EntityUtil.EntitySqlError(astBuiltInExpr.ErrCtx, Strings.ArgumentTypesAreIncompatible(
2175throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg1.ErrCtx, Strings.LeftSetExpressionArgsMustBeCollection);
2188throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg2.ErrCtx, Strings.RightSetExpressionArgsMustBeCollection);
2206throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg1.ErrCtx,
2218throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg2.ErrCtx,
2229throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg1.ErrCtx, Strings.InvalidAssociationTypeForUnion(leftElemType.EdmType.FullName));
2234throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg2.ErrCtx, Strings.InvalidAssociationTypeForUnion(rightElemType.EdmType.FullName));
2249throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg1.ErrCtx, Strings.InvalidUnarySetOpArgument(astBuiltInExpr.Name));
2257throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg1.ErrCtx, Strings.ExpressionTypeMustBeEqualComparable);
2276throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg2.ErrCtx, Strings.RightSetExpressionArgsMustBeCollection);
2292throw EntityUtil.EntitySqlError(astBuiltInExpr.Arg1.ErrCtx, Strings.ExpressionTypeMustNotBeCollection);
2301throw EntityUtil.EntitySqlError(astBuiltInExpr.ErrCtx, Strings.InvalidInExprArgs(leftExpr.ResultType.EdmType.FullName, rightExpr.ResultType.EdmType.FullName));
2311throw EntityUtil.EntitySqlError(errCtx, Strings.NullLiteralCannotBePromotedToCollectionOfNulls);
2363throw EntityUtil.EntitySqlError(typeName.ErrCtx, Strings.InvalidMetadataMemberName);
2384throw EntityUtil.EntitySqlError(typeName.ErrCtx, Strings.TypeNameNotFound(metadataMember.Name));
2387throw EntityUtil.EntitySqlError(typeName.ErrCtx, Strings.InvalidMetadataMemberClassResolution(
2403throw EntityUtil.EntitySqlError(arg.ErrCtx, Strings.TypeArgumentMustBeLiteral);
2413throw EntityUtil.EntitySqlError(errCtx, Strings.TypeDoesNotSupportSpec(primitiveType.FullName));
2421throw EntityUtil.EntitySqlError(errCtx, Strings.TypeArgumentCountMismatch(primitiveType.FullName, 2));
2444throw EntityUtil.EntitySqlError(typeSpecArgs[0].ErrCtx, Strings.PrecisionMustBeGreaterThanScale(precision, scale));
2455throw EntityUtil.EntitySqlError(value.ErrCtx, Strings.TypeDoesNotSupportFacet(type.FullName, facetName));
2462throw EntityUtil.EntitySqlError(value.ErrCtx, Strings.TypeArgumentExceedsMax(facetName));
2467throw EntityUtil.EntitySqlError(value.ErrCtx, Strings.TypeArgumentBelowMin(facetName));
2472throw EntityUtil.EntitySqlError(value.ErrCtx, Strings.TypeArgumentIsNotValid);
2501throw EntityUtil.EntitySqlError(refTypeDefExpr.RefTypeIdentifier.ErrCtx,
2544throw EntityUtil.EntitySqlError(aliasExpr.Expr.ErrCtx, Strings.RowCtorElementCannotBeNull);
2578throw EntityUtil.EntitySqlError(expr.ErrCtx, Strings.CannotCreateEmptyMultiset);
2590throw EntityUtil.EntitySqlError(expr.ErrCtx, Strings.CannotCreateMultisetofNulls);
2600throw EntityUtil.EntitySqlError(expr.ErrCtx, Strings.MultisetElemsAreNotTypeCompatible);
2641throw EntityUtil.EntitySqlError(whenThenExpr.WhenExpr.ErrCtx, Strings.ExpressionTypeMustBeBoolean);
2666throw EntityUtil.EntitySqlError(caseExpr.ElseExpr.ErrCtx, Strings.InvalidCaseWhenThenNullType);
2675throw EntityUtil.EntitySqlError(caseExpr.WhenThenExprList[0].ThenExpr.ErrCtx, Strings.InvalidCaseResultTypes);
2725throw EntityUtil.EntitySqlError(queryExpr.ErrCtx, Strings.HavingRequiresGroupClause);
2731throw EntityUtil.EntitySqlError(queryExpr.SelectClause.TopExpr.ErrCtx, Strings.TopAndLimitCannotCoexist);
2736throw EntityUtil.EntitySqlError(queryExpr.SelectClause.TopExpr.ErrCtx, Strings.TopAndSkipCannotCoexist);
2863throw EntityUtil.EntitySqlError(selectClause.ErrCtx, Strings.InvalidSelectValueList);
2871throw EntityUtil.EntitySqlError(selectClause.Items[0].ErrCtx, Strings.InvalidSelectValueAliasedExpression);
2977throw EntityUtil.EntitySqlError(errCtx, Strings.SelectDistinctMustBeEqualComparable);
2986throw EntityUtil.EntitySqlError(errCtx, Strings.PlaceholderExpressionMustBeConstant(exprName));
2991throw EntityUtil.EntitySqlError(errCtx, Strings.PlaceholderExpressionMustBeCompatibleWithEdm64(exprName, expr.ResultType.EdmType.FullName));
2997throw EntityUtil.EntitySqlError(errCtx, Strings.PlaceholderExpressionMustBeGreaterThanOrEqualToZero(exprName));
3089throw EntityUtil.EntitySqlError(aliasedExpr.Expr.ErrCtx, Strings.ExpressionMustBeCollection);
3145throw EntityUtil.EntitySqlError(joinClause.ErrCtx, Strings.InnerJoinMustHaveOnPredicate);
3152throw EntityUtil.EntitySqlError(joinClause.OnExpr.ErrCtx, Strings.InvalidPredicateForCrossJoin);
3339throw EntityUtil.EntitySqlError(errCtx, Strings.ExpressionTypeMustBeBoolean);
3449throw EntityUtil.EntitySqlError(aliasedExpr.Expr.ErrCtx, Strings.KeyMustBeCorrelated("GROUP BY"));
3458throw EntityUtil.EntitySqlError(aliasedExpr.Expr.ErrCtx, Strings.GroupingKeysMustBeEqualComparable);
3674throw EntityUtil.EntitySqlError(orderItem.ErrCtx, Strings.KeyMustBeCorrelated("ORDER BY"));
4177throw EntityUtil.EntitySqlError(orderClauseItem.ErrCtx, Strings.KeyMustBeCorrelated("ORDER BY"));
4185throw EntityUtil.EntitySqlError(orderClauseItem.OrderExpr.ErrCtx, Strings.OrderByKeyIsNotOrderComparable);
4201throw EntityUtil.EntitySqlError(orderClauseItem.OrderExpr.ErrCtx, Strings.InvalidKeyTypeForCollation(keyExpr.ResultType.EdmType.FullName));
4399throw EntityUtil.EntitySqlError(bltInExpr.ErrCtx, Strings.ConcatBuiltinNotSupported);
4415throw EntityUtil.EntitySqlError(bltInExpr.ErrCtx, Strings.ConcatBuiltinNotSupported);
4484throw EntityUtil.EntitySqlError(Strings.InvalidUnsignedTypeForUnaryMinusOperation(argument.ResultType.EdmType.FullName));
4692throw EntityUtil.NotSupported(Strings.ElementOperatorIsNotSupported);
4728throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx, Strings.InvalidFlattenArgument);
4733throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx, Strings.InvalidFlattenArgument);
4849throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx, Strings.IsNullInvalidType);
4869throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx, Strings.IsNullInvalidType);
4895throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx,
4902throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx,
4910throw EntityUtil.EntitySqlError(bltInExpr.Arg2.ErrCtx, Strings.TypeMustBeEntityType(Strings.CtxIsOf,
4916throw EntityUtil.EntitySqlError(bltInExpr.Arg2.ErrCtx, Strings.TypeMustBeNominalType(Strings.CtxIsOf,
4923throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx, Strings.TypeMustBeInheritableType);
4928throw EntityUtil.EntitySqlError(bltInExpr.Arg2.ErrCtx, Strings.TypeMustBeInheritableType);
4933throw EntityUtil.EntitySqlError(bltInExpr.ErrCtx, Strings.NotASuperOrSubType(exprToFilter.ResultType.EdmType.FullName,
4971throw EntityUtil.EntitySqlError(bltInExpr.Arg2.ErrCtx,
4978throw EntityUtil.EntitySqlError(bltInExpr.Arg2.ErrCtx,
4990throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx,
4997throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx,
5005throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx, Strings.TypeMustBeInheritableType);
5010throw EntityUtil.EntitySqlError(bltInExpr.Arg2.ErrCtx, Strings.TypeMustBeInheritableType);
5015throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx, Strings.NotASuperOrSubType(exprToTreat.ResultType.EdmType.FullName,
5037throw EntityUtil.EntitySqlError(bltInExpr.Arg2.ErrCtx, Strings.InvalidCastType);
5050throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx, Strings.InvalidCastExpressionType);
5055throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx, Strings.InvalidCast(exprToCast.ResultType.EdmType.FullName, typeToCastTo.EdmType.FullName));
5077throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx, Strings.ExpressionMustBeCollection);
5083throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx,
5088throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx,
5094throw EntityUtil.EntitySqlError(bltInExpr.Arg2.ErrCtx,
5099throw EntityUtil.EntitySqlError(bltInExpr.Arg2.ErrCtx,
5105throw EntityUtil.EntitySqlError(bltInExpr.Arg2.ErrCtx, Strings.OfTypeOnlyTypeArgumentCannotBeAbstract(typeToFilterTo.EdmType.FullName));
5110throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx, Strings.NotASuperOrSubType(elementType.EdmType.FullName, typeToFilterTo.EdmType.FullName));
5142throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx, Strings.LikeArgMustBeStringType);
5152throw EntityUtil.EntitySqlError(bltInExpr.Arg2.ErrCtx, Strings.LikeArgMustBeStringType);
5164throw EntityUtil.EntitySqlError(bltInExpr.Arg3.ErrCtx, Strings.LikeArgMustBeStringType);
5219throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx, Strings.BetweenLimitsTypesAreNotCompatible(limitsExpr.Left.ResultType.EdmType.FullName, limitsExpr.Right.ResultType.EdmType.FullName));
5227throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx, Strings.BetweenLimitsTypesAreNotOrderComparable(limitsExpr.Left.ResultType.EdmType.FullName, limitsExpr.Right.ResultType.EdmType.FullName));
5244throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx, Strings.BetweenValueIsNotOrderComparable(valueExpr.ResultType.EdmType.FullName, rangeCommonType.EdmType.FullName));
System\Data\Common\EntitySql\SemanticResolver.cs (11)
119EntityUtil.CheckArgumentNull(perspective, "perspective");
120EntityUtil.CheckArgumentNull(parserOptions, "parserOptions");
185throw EntityUtil.EntitySqlError(Strings.MultipleDefinitionsOfParameter(paramDef.ParameterName));
212throw EntityUtil.EntitySqlError(Strings.MultipleDefinitionsOfVariable(varDef.VariableName));
490throw EntityUtil.EntitySqlError(errCtx, Strings.InvalidJoinLeftCorrelation);
602throw EntityUtil.EntitySqlError(errCtx, Strings.NotAMemberOfCollection(name, valueExpr.ResultType.EdmType.FullName));
606throw EntityUtil.EntitySqlError(errCtx, Strings.NotAMemberOfType(name, valueExpr.ResultType.EdmType.FullName));
654throw EntityUtil.EntitySqlError(errCtx, Strings.InvalidDeRefProperty(name, derefExprType.EdmType.FullName, valueExpr.ResultType.EdmType.FullName));
675throw EntityUtil.EntitySqlError(errCtx, Strings.MemberDoesNotBelongToEntityContainer(name, entityContainer.Name));
1225throw EntityUtil.EntitySqlError(Strings.GroupVarNotFoundInScope);
1288throw EntityUtil.EntitySqlError(Strings.NestedAggregateCannotBeUsedInAggregate(nestedAggregateInfo, currentAggregateInfo));
System\Data\Common\EntitySql\TypeResolver.cs (7)
190EntityUtil.CheckArgumentNull(perspective, "perspective");
248throw EntityUtil.EntitySqlError(errCtx, Strings.NamespaceAliasAlreadyUsed(alias));
261throw EntityUtil.EntitySqlError(errCtx, Strings.NamespaceAlreadyImported(@namespace.Name));
289throw EntityUtil.EntitySqlError(functionInfo.FunctionDefAst.ErrCtx, Strings.DuplicatedInlineFunctionOverload(name));
392throw EntityUtil.EntitySqlError(errCtx, Strings.NotAMemberOfType(name, qualifier.Name));
397throw EntityUtil.EntitySqlError(errCtx, Strings.InvalidMetadataMemberClassResolution(
547throw EntityUtil.EntitySqlError(errCtx, Strings.AmbiguousMetadataMemberName(name, ns1.Name, ns2 != null ? ns2.Name : null));
System\Data\Common\EntityUtil.cs (75)
177if (!EntityUtil.TryGetICollectionElementType(propertyType, out elementType))
179throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.PocoEntityWrapper_UnexpectedTypeForNavigationProperty(
203var elementType = EntityUtil.GetCollectionElementType(requestedType);
207throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectQuery_UnableToMaterializeArray(
750return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateEntry_OriginalValuesDoesNotExist);
754return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateEntry_CurrentValuesDoesNotExist);
758return EntityUtil.Argument(System.Data.Entity.Strings.ObjectStateEntry_InvalidTypeForComplexTypeProperty, argument);
762return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateEntry_InvalidState);
766throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateEntry_CantModifyDetachedDeletedEntries);
771throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateEntry_SetModifiedStates(methodName));
775return EntityUtil.InvalidOperation(System.Data.Entity.Strings.Entity_EntityCantHaveMultipleChangeTrackers);
779return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateEntry_CantModifyRelationValues);
783return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateEntry_CantModifyRelationState);
787return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateEntry_CannotModifyKeyProperty(fieldName));
791return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateEntry_CantSetEntityKey);
795return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateEntry_CannotAccessKeyEntryValues);
799return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateEntry_CannotModifyKeyEntryState);
804return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateEntry_CannotDeleteOnKeyEntry);
808return EntityUtil.Argument(System.Data.Entity.Strings.ObjectStateEntry_SetModifiedOnInvalidProperty(propertyName));
811return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateManager_NoEntryExistForEntityKey);
814return EntityUtil.Argument(System.Data.Entity.Strings.ObjectStateManager_DetachedObjectStateEntriesDoesNotExistInObjectStateManager);
818return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateManager_ObjectStateManagerContainsThisEntityKey);
821return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateManager_DoesnotAllowToReAddUnchangedOrModifiedOrDeletedEntity(state));
824return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateManager_CannotFixUpKeyToExistingValues);
830return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateManager_KeyPropertyDoesntMatchValueInKeyForAttach);
834return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateManager_KeyPropertyDoesntMatchValueInKey);
868return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateManager_InvalidKey);
871return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateManager_AcceptChangesEntityKeyIsNotValid);
874return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateManager_EntityConflictsWithKeyEntry);
877return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateManager_GetEntityKeyRequiresObjectToHaveAKey(entity.GetType().FullName));
880return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateEntry_EntityMemberChangedWithoutEntityMemberChanging);
883return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateEntry_ChangedInDifferentStateFromChanging(previousState, currentState));
886return EntityUtil.Argument(System.Data.Entity.Strings.ObjectStateEntry_ChangeOnUnmappedProperty(entityPropertyName));
890return EntityUtil.Argument(System.Data.Entity.Strings.ObjectStateEntry_ChangeOnUnmappedComplexProperty(complexPropertyName));
898return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateManager_NoEntryExistsForObject(entity.GetType().FullName));
902return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectStateManager_EntityNotTracked);
926throw EntityUtil.Constraint(
931throw EntityUtil.PropertyConstraint(
940throw EntityUtil.Constraint(
947throw EntityUtil.InvalidOperation(
959return EntityUtil.InvalidOperation(
965return EntityUtil.InvalidOperation(
973return EntityUtil.InvalidOperation(System.Data.Entity.Strings.Materializer_NullReferenceCast(destinationType.Name));
1135throw EntityUtil.UnexpectedNullContext();
1147throw EntityUtil.InvalidMergeOption(mergeOption);
1156throw EntityUtil.InvalidRefreshMode(refreshMode);
1199return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectContext_ClientEntityRemovedFromStore(entitiesKeys));
1202return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectContext_StoreEntityNotPresentInClient);
1205return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectContext_MetadataHasChanged);
1219return EntityUtil.Argument(System.Data.Entity.Strings.ObjectContext_InvalidConnectionString, parameter, inner);
1222return EntityUtil.Argument(System.Data.Entity.Strings.ObjectContext_InvalidConnection, parameter, inner);
1225return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectContext_InvalidDataAdapter);
1228return EntityUtil.Argument(System.Data.Entity.Strings.ObjectContext_InvalidDefaultContainerName(defaultContainerName), parameter);
1231return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectContext_NthElementInAddedState(i));
1234return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectContext_NthElementIsDuplicate(i));
1237return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectContext_NthElementIsNull(i));
1240return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectContext_NthElementNotInObjectStateManager(i));
1243return EntityUtil.ObjectDisposed(System.Data.Entity.Strings.ObjectContext_ObjectDisposed);
1246return EntityUtil.ObjectNotFound(System.Data.Entity.Strings.ObjectContext_ObjectNotFound);
1259return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectContext_EntitySetNotFoundForName(entitySetName));
1262return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectContext_EntityContainerNotFoundForName(entityContainerName));
1325return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectContext_EntityNotTrackedOrHasTempKey);
1376return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ComplexObject_NullableComplexTypesNotSupported(propertyName));
1380return EntityUtil.InvalidOperation(System.Data.Entity.Strings.ComplexObject_ComplexObjectAlreadyAttachedToParent);
1384return EntityUtil.Argument(System.Data.Entity.Strings.ComplexObject_ComplexChangeRequestedOnScalarProperty(propertyName));
1489throw EntityUtil.UnexpectedNullEntityKey();
1496throw EntityUtil.EntityKeyDoesntMatchKeySetOnEntity(wrappedEntity.Entity);
1505return EntityUtil.InvalidOperation(System.Data.Entity.Strings.RelationshipManager_InvalidRelationshipManagerOwner);
1528throw EntityUtil.InvalidEntitySetInKey(
1534throw EntityUtil.InvalidEntitySetInKeyFromName(
1632throw EntityUtil.Update(Strings.Update_MissingFunctionMapping(currentState, type, typeName),
1771throw EntityUtil.Argument(Strings.CheckArgumentContainsNullFailed(argumentName));
1783throw EntityUtil.Argument(errorMessage(argumentName));
1827return EntityUtil.ArgumentOutOfRange(System.Data.Entity.Strings.ADP_InvalidEnumerationValue(type.Name, value.ToString(System.Globalization.CultureInfo.InvariantCulture)), type.Name);
2037return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB, EntityUtil.StringCompareOptions);
System\Data\EntityClient\EntityConnection.cs (50)
101EntityUtil.CheckArgumentNull(workspace, "workspace");
102EntityUtil.CheckArgumentNull(connection, "connection");
107throw EntityUtil.Argument(System.Data.Entity.Strings.EntityClient_ItemCollectionsNotRegisteredInWorkspace("EdmItemCollection"));
111throw EntityUtil.Argument(System.Data.Entity.Strings.EntityClient_ItemCollectionsNotRegisteredInWorkspace("StoreItemCollection"));
115throw EntityUtil.Argument(System.Data.Entity.Strings.EntityClient_ItemCollectionsNotRegisteredInWorkspace("StorageMappingItemCollection"));
120throw EntityUtil.Argument(System.Data.Entity.Strings.EntityClient_ConnectionMustBeClosed);
126throw EntityUtil.ProviderIncompatible(System.Data.Entity.Strings.EntityClient_DbConnectionHasNoProvider(connection));
153if (!EntityUtil.TryGetProviderInvariantName(DbProviderFactories.GetFactory(_storeConnection), out invariantName))
189if (EntityUtil.IsCatchableExceptionType(e))
191throw EntityUtil.Provider(@"ConnectionString", e);
247if (EntityUtil.IsCatchableExceptionType(e))
249throw EntityUtil.Provider(@"ConnectionTimeout", e);
288if (EntityUtil.IsCatchableExceptionType(e))
290throw EntityUtil.Provider(@"State", e);
313if (EntityUtil.IsCatchableExceptionType(e))
315throw EntityUtil.Provider(@"DataSource", e);
330throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.EntityClient_ConnectionStringNeededBeforeOperation);
334throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.EntityClient_ConnectionNotOpen);
343if (EntityUtil.IsCatchableExceptionType(e))
345throw EntityUtil.Provider(@"ServerVersion", e);
510throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.EntityClient_ConnectionStringNeededBeforeOperation);
514throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.EntityClient_CannotReopenConnection);
529throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.EntityClient_ConnectionNotOpen);
566if (EntityUtil.IsCatchableExceptionType(e))
572throw EntityUtil.ProviderExceptionWithMessage(exceptionMessage, e);
598if (EntityUtil.IsCatchableExceptionType(ex))
665throw EntityUtil.NotSupported();
696throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.EntityClient_TransactionAlreadyStarted);
700throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.EntityClient_ConnectionStringNeededBeforeOperation);
704throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.EntityClient_ConnectionNotOpen);
714if (EntityUtil.IsCatchableExceptionType(e))
716throw EntityUtil.ProviderExceptionWithMessage(
728throw EntityUtil.ProviderIncompatible(System.Data.Entity.Strings.EntityClient_ReturnedNullOnProviderMethod("BeginTransaction", _storeConnection.GetType().Name));
742throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.EntityClient_ConnectionStringNeededBeforeOperation);
746throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.EntityClient_ConnectionNotOpen);
774if (EntityUtil.IsCatchableExceptionType(e))
776throw EntityUtil.Provider(@"EnlistTransaction", e);
858throw EntityUtil.Argument(System.Data.Entity.Strings.EntityClient_ExtraParametersWithNamedConnection);
865throw EntityUtil.Argument(System.Data.Entity.Strings.EntityClient_InvalidNamedConnection);
874throw EntityUtil.Argument(System.Data.Entity.Strings.EntityClient_NestedNamedConnection(namedConnection));
902if (EntityUtil.IsCatchableExceptionType(e))
904throw EntityUtil.Provider(@"ConnectionString", e);
939throw EntityUtil.Argument(System.Data.Entity.Strings.EntityClient_ConnectionStringMissingInfo(keywordName));
1002EntityUtil.CheckArgumentNull(factory, "factory");
1005if (!EntityUtil.TryGetProviderInvariantName(factory, out providerName))
1204if (EntityUtil.IsCatchableExceptionType(e))
1206throw EntityUtil.ProviderExceptionWithMessage(
1249throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.EntityClient_SettingsCannotBeChangedOnOpenConnection);
1264throw EntityUtil.Argument(System.Data.Entity.Strings.EntityClient_InvalidStoreProvider, e);
1276throw EntityUtil.ProviderIncompatible(System.Data.Entity.Strings.EntityClient_ReturnedNullOnProviderMethod("CreateConnection", factory.GetType().Name));
System\Data\EntityKey.cs (42)
121EntityUtil.CheckArgumentNull(entityKeyValues, "entityKeyValues");
136EntityUtil.CheckStringArgument(keyName, "keyName");
137EntityUtil.CheckArgumentNull(keyValue, "keyValue");
191EntityUtil.CheckArgumentNull(entitySet, "entitySet");
375EntityUtil.CheckArgumentNull(metadataWorkspace, "metadataWorkspace");
378throw EntityUtil.MissingQualifiedEntitySetName();
734throw EntityUtil.EntitySetDoesNotMatch("metadataWorkspace", TypeHelpers.GetFullName(entitySet));
808throw EntityUtil.ArgumentOutOfRange("keyName");
816EntityUtil.CheckStringArgument(qualifiedEntitySetName, "qualifiedEntitySetName");
821throw EntityUtil.InvalidQualifiedEntitySetName();
831throw EntityUtil.InvalidQualifiedEntitySetName();
842throw EntityUtil.EntityKeyInvalidName(name);
857EntityUtil.CheckArgumentNull(entityKeyValues, "entityKeyValues");
877throw EntityUtil.EntityKeyMustHaveValues("entityKeyValues");
890if (EntityUtil.IsNull(keyValuePair.Value) || String.IsNullOrEmpty(keyValuePair.Key))
892throw EntityUtil.NoNullsAllowedInKeyValuePairs("entityKeyValues");
909if (EntityUtil.IsNull(keyValuePair.Value) || String.IsNullOrEmpty(keyValuePair.Key))
911throw EntityUtil.NoNullsAllowedInKeyValuePairs("entityKeyValues");
958if (EntityUtil.IsNull(singletonKeyValue))
960throw EntityUtil.NoNullsAllowedInKeyValuePairs("record");
971if (EntityUtil.IsNull(compositeKeyValues[i]))
973throw EntityUtil.NoNullsAllowedInKeyValuePairs("record");
1013throw EntityUtil.IncorrectNumberOfKeyValuePairs(argumentName, entitySet.ElementType.FullName, keyMembers.Count, 1);
1017throw EntityUtil.IncorrectNumberOfKeyValuePairsInvalidOperation(entitySet.ElementType.FullName, keyMembers.Count, 1);
1029throw EntityUtil.MissingKeyValue(argumentName, keyMembers[0].Name, entitySet.ElementType.FullName);
1033throw EntityUtil.MissingKeyValueInvalidOperation(keyMembers[0].Name, entitySet.ElementType.FullName);
1044throw EntityUtil.IncorrectNumberOfKeyValuePairs(argumentName, entitySet.ElementType.FullName, keyMembers.Count, _compositeKeyValues.Length);
1048throw EntityUtil.IncorrectNumberOfKeyValuePairsInvalidOperation(entitySet.ElementType.FullName, keyMembers.Count, _compositeKeyValues.Length);
1072throw EntityUtil.MissingKeyValue(argumentName, keyField.Name, entitySet.ElementType.FullName);
1076throw EntityUtil.MissingKeyValueInvalidOperation(keyField.Name, entitySet.ElementType.FullName);
1108throw EntityUtil.IncorrectValueType(argumentName, keyMember.Name, entitySetKeyType.FullName, keyValue.GetType().FullName);
1112throw EntityUtil.IncorrectValueTypeInvalidOperation(keyMember.Name, entitySetKeyType.FullName, keyValue.GetType().FullName);
1128throw EntityUtil.IncorrectValueType(argumentName, keyMember.Name, expectedClrEnumType.FullName, keyValue.GetType().FullName);
1132throw EntityUtil.IncorrectValueTypeInvalidOperation(keyMember.Name, expectedClrEnumType.FullName, keyValue.GetType().FullName);
1140throw EntityUtil.NoCorrespondingOSpaceTypeForEnumKeyField(argumentName, keyMember.Name, keyMemberEdmType.FullName);
1144throw EntityUtil.NoCorrespondingOSpaceTypeForEnumKeyFieldInvalidOperation(keyMember.Name, keyMemberEdmType.FullName);
1261throw EntityUtil.CannotChangeEntityKey();
1341EntityUtil.CheckArgumentNull(keyName, "keyName");
1342EntityUtil.CheckArgumentNull(keyValue, "keyValue");
1360EntityUtil.CheckArgumentNull(value, "value");
1378EntityUtil.CheckArgumentNull(value, "value");
1399throw EntityUtil.CannotChangeEntityKey();
System\Data\Mapping\FunctionImportMapping.cs (11)
32this.FunctionImport = EntityUtil.CheckArgumentNull(functionImport, "functionImport");
33this.TargetFunction = EntityUtil.CheckArgumentNull(targetFunction, "targetFunction");
53EntityUtil.CheckArgumentNull(structuralTypeMappings, "structuralTypeMappings");
54m_itemCollection = EntityUtil.CheckArgumentNull(itemCollection, "itemCollection");
521EntityUtil.CheckArgumentNull(parent, "parent");
522EntityUtil.CheckArgumentNull(columnConditions, "discriminatorValues");
523EntityUtil.CheckArgumentNull(impliedEntityTypes, "impliedEntityTypes");
563this.ColumnName = EntityUtil.CheckArgumentNull(columnName, "columnName");
585this._xPathValue = EntityUtil.CheckArgumentNull(columnValue, "columnValue");
619throw EntityUtil.CommandExecution(Strings.Mapping_FunctionImport_UnsupportedType(this.ColumnName, columnValueType.FullName));
623throw EntityUtil.CommandExecution(Strings.Mapping_FunctionImport_ConditionValueTypeMismatch(StorageMslConstructs.FunctionImportMappingElement, this.ColumnName, columnValueType.FullName));
System\Data\Mapping\StorageMappingItemCollection.cs (14)
83EntityUtil.CheckArgumentNull(edmCollection, "edmCollection");
84EntityUtil.CheckArgumentNull(storeCollection, "storeCollection");
85EntityUtil.CheckArgumentNull(filePaths, "filePaths");
125EntityUtil.CheckArgumentNull(xmlReaders, "xmlReaders");
159EntityUtil.CheckArgumentNull(xmlReaders, "xmlReaders");
160EntityUtil.CheckArgumentContainsNull(ref xmlReaders, "xmlReaders");
199EntityUtil.CheckArgumentNull(xmlReaders, "xmlReaders");
200EntityUtil.CheckArgumentNull(edmCollection, "edmCollection");
201EntityUtil.CheckArgumentNull(storeCollection, "storeCollection");
306EntityUtil.CheckArgumentNull(identity, "identity");
309throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.Mapping_Storage_InvalidSpace(typeSpace));
326throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.Mapping_Storage_InvalidSpace(typeSpace));
360EntityUtil.CheckArgumentNull(item, "item");
364throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.Mapping_Storage_InvalidSpace(typeSpace));
System\Data\Mapping\StorageModificationFunctionMapping.cs (10)
33this.AssociationSet = EntityUtil.CheckArgumentNull(associationSet, "associationSet");
82this.EntityType = EntityUtil.CheckArgumentNull(entityType, "entityType");
139EntityUtil.CheckArgumentNull(entitySet, "entitySet");
140this.Function = EntityUtil.CheckArgumentNull(function, "function");
142this.ParameterBindings = EntityUtil.CheckArgumentNull(parameterBindings, "parameterBindings")
235this.ColumnName = EntityUtil.CheckArgumentNull(columnName, "columnName");
236this.Property = EntityUtil.CheckArgumentNull(property, "property");
264this.Parameter = EntityUtil.CheckArgumentNull(parameter, "parameter");
265this.MemberPath = EntityUtil.CheckArgumentNull(memberPath, "memberPath");
300EntityUtil.CheckArgumentNull(members, "members")));
System\Data\Mapping\Update\Internal\FunctionMappingTranslator.cs (5)
206EntityUtil.ValidateNecessaryModificationFunctionMapping(functionMapping, "Insert", stateEntry.Source, "EntityType", entityType.Name);
210EntityUtil.ValidateNecessaryModificationFunctionMapping(functionMapping, "Delete", stateEntry.Source, "EntityType", entityType.Name);
215EntityUtil.ValidateNecessaryModificationFunctionMapping(functionMapping, "Update", stateEntry.Source, "EntityType", entityType.Name);
249throw EntityUtil.Update(Strings.Update_MissingRequiredRelationshipValue(entitySetName, associationSetName),
311EntityUtil.ValidateNecessaryModificationFunctionMapping(
System\Data\Mapping\Update\Internal\PropagatorResult.cs (14)
143throw EntityUtil.InternalError(EntityUtil.InternalErrorCode.UpdatePipelineResultRequestInvalid, 0, "PropagatorResult.GetSimpleValue");
153throw EntityUtil.InternalError(EntityUtil.InternalErrorCode.UpdatePipelineResultRequestInvalid, 0, "PropagatorResult.GetMemberValue");
173throw EntityUtil.InternalError(EntityUtil.InternalErrorCode.UpdatePipelineResultRequestInvalid, 0, "PropagatorResult.GetMembersValues");
190throw EntityUtil.InternalError(EntityUtil.InternalErrorCode.UpdatePipelineResultRequestInvalid, 0, "PropagatorResult.ReplicateResultWithNewValue");
213throw EntityUtil.InternalError(EntityUtil.InternalErrorCode.UpdatePipelineResultRequestInvalid, 0, "PropagatorResult.Merge");
429EntityUtil.InternalError(EntityUtil.InternalErrorCode.UpdatePipelineResultRequestInvalid, 0, "KeyValue.Merge");
555throw EntityUtil.InternalError(EntityUtil.InternalErrorCode.UpdatePipelineResultRequestInvalid, 0, "StructuralValue.ReplicateResultWithNewFlags");
System\Data\Mapping\Update\Internal\RelationshipConstraintValidator.cs (13)
70EntityUtil.CheckArgumentNull(stateEntry, "stateEntry");
78EntityKey entityKey = EntityUtil.CheckArgumentNull(stateEntry.EntityKey, "stateEntry.EntityKey");
137EntityUtil.CheckArgumentNull(associationSet, "relationshipSet");
138EntityUtil.CheckArgumentNull(record, "record");
139EntityUtil.CheckArgumentNull(stateEntry, "stateEntry");
205throw EntityUtil.UpdateRelationshipCardinalityConstraintViolation(
240throw EntityUtil.Update(Strings.Update_RelationshipCardinalityViolation(maximumCount.Value,
266throw EntityUtil.UpdateEntityMissingConstraintViolation(actualRelationship.AssociationSet.Name,
390ToEntityKey = EntityUtil.CheckArgumentNull(toEntityKey, "toEntityKey");
391FromEnd = EntityUtil.CheckArgumentNull(fromEnd, "fromEnd");
392ToEnd = EntityUtil.CheckArgumentNull(toEnd, "toEnd");
393AssociationSet = EntityUtil.CheckArgumentNull(associationSet, "associationSet");
394StateEntry = EntityUtil.CheckArgumentNull(stateEntry, "stateEntry");
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (22)
49EntityUtil.CheckArgumentNull(stateManager, "stateManager");
50EntityUtil.CheckArgumentNull(metadataWorkspace, "metadataWorkspace");
51EntityUtil.CheckArgumentNull(connection, "connection");
287throw EntityUtil.Update(Strings.Update_AmbiguousForeignKey(constraint.ToRole.DeclaringType.FullName), null, stateEntry);
327throw EntityUtil.Update(
407throw EntityUtil.Update(System.Data.Entity.Strings.Update_GeneralExecutionException, e, translator.DetermineStateEntriesFromSource(source));
455throw EntityUtil.UpdateConcurrency(rowsAffected, null, stateEntries);
534throw EntityUtil.Update(System.Data.Entity.Strings.Update_NullReturnValueForNonNullableMember(
573throw EntityUtil.Update(System.Data.Entity.Strings.Update_ReturnValueHasUnexpectedType(
650throw EntityUtil.Update(System.Data.Entity.Strings.Update_MappingNotFound(
771throw EntityUtil.Update(System.Data.Entity.Strings.Update_ConstraintCycle, null, stateEntries);
797throw EntityUtil.CommandCompilation(System.Data.Entity.Strings.EntityClient_CommandDefinitionPreparationFailed, e);
825if (!EntityUtil.IsCatchableExceptionType(e)) { return false; }
884throw EntityUtil.UpdateMissingEntity(required.Value.Name, TypeHelpers.GetFullName(key.EntityContainerName, key.EntitySetName));
924EntityUtil.CheckArgumentNull(stateEntry, "stateEntry");
929throw EntityUtil.InternalError(EntityUtil.InternalErrorCode.InvalidStateEntry, 1);
1029throw EntityUtil.InternalError(EntityUtil.InternalErrorCode.InvalidStateEntry, 2);
1061throw EntityUtil.Update(System.Data.Entity.Strings.Update_WorkspaceMismatch, null);
1111EntityUtil.CheckArgumentNull(extent, "extent");
1132EntityUtil.CheckArgumentNull(extent, "extent");
System\Data\Metadata\AspProxy.cs (15)
53if (EntityUtil.IsCatchableExceptionType(e))
89if (!EntityUtil.IsCatchableExceptionType(e))
109throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.UnableToDetermineApplicationContext);
137throw EntityUtil.InvalidOperation(errMsg);
169throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.UnableToDetermineApplicationContext, e);
173throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.UnableToDetermineApplicationContext, e);
177throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.UnableToDetermineApplicationContext, e);
181throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.UnableToDetermineApplicationContext, e);
185throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.UnableToDetermineApplicationContext, e);
189throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.UnableToDetermineApplicationContext, e);
193throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.UnableToDetermineApplicationContext, e);
222throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.UnableToFindReflectedType(BUILD_MANAGER_TYPE_NAME, AssemblyRef.SystemWeb));
248throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.UnableToDetermineApplicationContext, e);
252throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.UnableToDetermineApplicationContext, e);
256throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.UnableToDetermineApplicationContext, e);
System\Data\Metadata\Edm\ItemCollection.cs (11)
186throw EntityUtil.ItemInvalidIdentity(identity, "identity");
277EntityUtil.GenericCheckArgumentNull(name, "name");
278EntityUtil.GenericCheckArgumentNull(namespaceName, "namespaceName");
293EntityUtil.GenericCheckArgumentNull(name, "name");
294EntityUtil.GenericCheckArgumentNull(namespaceName, "namespaceName");
390EntityUtil.GenericCheckArgumentNull(functionName, "functionName");
391EntityUtil.GenericCheckArgumentNull(parameterTypes, "parameterTypes");
411EntityUtil.GenericCheckArgumentNull(name, "name");
423EntityUtil.GenericCheckArgumentNull(name, "name");
442throw EntityUtil.ItemInvalidIdentity(name, "name");
454EntityUtil.GenericCheckArgumentNull(name, "name");
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (12)
388Debug.Assert(null != (Action<Object,Type,String,String>)EntityUtil.ThrowSetInvalidValue, "missing method ThrowSetInvalidValue(object,Type,string,string)");
389gen.Emit(OpCodes.Call, typeof(EntityUtil).GetMethod("ThrowSetInvalidValue", BindingFlags.Static | BindingFlags.NonPublic, null, new Type[] { typeof(object),typeof(Type),typeof(string),typeof(string)},null));
521throw EntityUtil.InvalidEnumerationValue(typeof(RelationshipMultiplicity), (int)targetMember.RelationshipMultiplicity);
529throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.CodeGen_ConstructorNoParameterless(type.FullName));
533throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.CodeGen_PropertyDeclaringTypeIsValueType);
537throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.CodeGen_PropertyUnsupportedForm);
541throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.CodeGen_PropertyUnsupportedType);
545throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.CodeGen_PropertyStrongNameIdentity);
549throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.CodeGen_PropertyIsIndexed);
553throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.CodeGen_PropertyIsStatic);
557throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.CodeGen_PropertyNoGetter);
561throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.CodeGen_PropertyNoSetter);
System\Data\Metadata\Edm\MetadataCollection.cs (19)
61throw EntityUtil.CollectionParameterElementIsNull("items");
152throw EntityUtil.OperationOnReadOnlyCollection();
172throw EntityUtil.OperationOnReadOnlyCollection();
191throw EntityUtil.ItemInvalidIdentity(identity, "identity");
237throw EntityUtil.ItemDuplicateIdentity(identity, "item", null);
252throw EntityUtil.ItemDuplicateIdentity(identity, "item", null);
337throw EntityUtil.ItemDuplicateIdentity(item.Identity, "item", null);
414throw EntityUtil.OperationOnReadOnlyCollection();
425throw EntityUtil.OperationOnReadOnlyCollection();
435throw EntityUtil.OperationOnReadOnlyCollection();
444throw EntityUtil.OperationOnReadOnlyCollection();
469EntityUtil.CheckStringArgument(identity, "identity");
504throw EntityUtil.MoreThanOneItemMatchesIdentity(identity);
526throw EntityUtil.MoreThanOneItemMatchesIdentity(identity);
575EntityUtil.GenericCheckArgumentNull(array, "array");
579throw EntityUtil.ArgumentOutOfRange("arrayIndex");
584throw EntityUtil.ArrayTooSmall("arrayIndex");
653int index = IndexOf(_collectionData, EntityUtil.GenericCheckArgumentNull(identity, "identity"), ignoreCase);
668throw EntityUtil.OperationOnReadOnlyCollection();
System\Data\Metadata\Edm\TypeUsage.cs (22)
34EntityUtil.GenericCheckArgumentNull(edmType, "edmType");
105EntityUtil.CheckArgumentNull<EdmType>(edmType, "edmType");
124EntityUtil.CheckArgumentNull<PrimitiveType>(primitiveType, "primitiveType");
128throw EntityUtil.NotStringTypeForTypeUsage();
152EntityUtil.CheckArgumentNull<PrimitiveType>(primitiveType, "primitiveType");
156throw EntityUtil.NotStringTypeForTypeUsage();
177EntityUtil.CheckArgumentNull<PrimitiveType>(primitiveType, "primitiveType");
181throw EntityUtil.NotBinaryTypeForTypeUsage();
201EntityUtil.CheckArgumentNull<PrimitiveType>(primitiveType, "primitiveType");
205throw EntityUtil.NotBinaryTypeForTypeUsage();
223EntityUtil.CheckArgumentNull<PrimitiveType>(primitiveType, "primitiveType");
227throw EntityUtil.NotDateTimeTypeForTypeUsage();
244EntityUtil.CheckArgumentNull<PrimitiveType>(primitiveType, "primitiveType");
248throw EntityUtil.NotDateTimeOffsetTypeForTypeUsage();
266EntityUtil.CheckArgumentNull<PrimitiveType>(primitiveType, "primitiveType");
270throw EntityUtil.NotTimeTypeForTypeUsage();
291EntityUtil.CheckArgumentNull<PrimitiveType>(primitiveType, "primitiveType");
295throw EntityUtil.NotDecimalTypeForTypeUsage();
311EntityUtil.CheckArgumentNull<PrimitiveType>(primitiveType, "primitiveType");
315throw EntityUtil.NotDecimalTypeForTypeUsage();
441throw EntityUtil.ProviderIncompatible(System.Data.Entity.Strings.Mapping_ProviderReturnsNullType(this.ToString()));
643throw EntityUtil.ArgumentOutOfRange(System.Data.Entity.Strings.InvalidMaxLengthSize, "maxLength");
System\Data\Metadata\MetadataWorkspace.cs (35)
57EntityUtil.CheckArgumentNull(paths, "paths");
58EntityUtil.CheckArgumentContainsNull(ref paths, "paths");
60EntityUtil.CheckArgumentNull(assembliesToConsider, "assembliesToConsider");
61EntityUtil.CheckArgumentContainsNull(ref assembliesToConsider, "assembliesToConsider");
72throw EntityUtil.Argument(Strings.AssemblyMissingFromAssembliesToConsider(referenceName.FullName), "assembliesToConsider");
195EntityUtil.CheckArgumentNull(collection, "collection");
209throw EntityUtil.InvalidOperation(
252throw EntityUtil.InvalidCollectionForMapping(collection.DataSpace);
256throw EntityUtil.ItemCollectionAlreadyRegistered(collection.DataSpace);
264throw EntityUtil.InvalidCollectionSpecified(collection.DataSpace);
272throw EntityUtil.InvalidCollectionSpecified(collection.DataSpace);
280throw EntityUtil.InvalidCollectionSpecified(collection.DataSpace);
285throw EntityUtil.InvalidCollectionSpecified(collection.DataSpace);
322throw EntityUtil.DifferentSchemaVersionInCollection(itemCollectionType, versionToRegister, this._schemaVersion);
362EntityUtil.CheckArgumentNull(assembly, "assembly");
654EntityUtil.GenericCheckArgumentNull(name, "name");
690EntityUtil.GenericCheckArgumentNull(name, "name");
734EntityUtil.CheckStringArgument(name, "name");
735EntityUtil.CheckStringArgument(namespaceName, "namespaceName");
762EntityUtil.GenericCheckArgumentNull(name, "name");
763EntityUtil.GenericCheckArgumentNull(namespaceName, "namespaceName");
929throw EntityUtil.NoCollectionForSpace(dataSpace);
1008throw EntityUtil.Argument(Strings.FailedToFindOSpaceTypeMapping(edmSpaceType.Identity));
1031EntityUtil.CheckArgumentNull(edmSpaceType, "edmSpaceType");
1035throw EntityUtil.Argument(Strings.ArgumentMustBeCSpaceType, "edmSpaceType");
1125throw EntityUtil.Argument(Strings.FailedToFindCSpaceTypeMapping(objectSpaceType.Identity));
1147EntityUtil.CheckArgumentNull(objectSpaceType, "objectSpaceType");
1151throw EntityUtil.Argument(Strings.ArgumentMustBeOSpaceType, "objectSpaceType");
1260EntityUtil.CheckArgumentNull(edmSpaceTypeUsage, "edmSpaceTypeUsage");
1431EntityUtil.CheckArgumentNull<EntitySetBase>(entitySet, "entitySet");
1432EntityUtil.CheckArgumentNull<EntityTypeBase>(entityType, "entityType");
1442throw EntityUtil.AssociationSetNotInCSpace(entitySet.Name);
1446throw EntityUtil.EntitySetNotInCSpace(entitySet.Name);
1456throw EntityUtil.TypeNotInAssociationSet(entitySet.Name, entitySet.ElementType.FullName, entityType.FullName);
1460throw EntityUtil.TypeNotInEntitySet(entitySet.Name, entitySet.ElementType.FullName, entityType.FullName);
System\Data\Metadata\StoreItemCollection.cs (11)
83EntityUtil.CheckArgumentNull(xmlReaders, "xmlReaders");
84EntityUtil.CheckArgumentContainsNull(ref xmlReaders, "xmlReaders");
85EntityUtil.CheckArgumentEmpty(ref xmlReaders, Strings.StoreItemCollectionMustHaveOneArtifact, "xmlReader");
107EntityUtil.CheckArgumentNull(filePaths, "filePaths");
108EntityUtil.CheckArgumentEmpty(ref xmlReaders, Strings.StoreItemCollectionMustHaveOneArtifact, "xmlReader");
125EntityUtil.CheckArgumentNull(xmlReaders, "xmlReaders");
126EntityUtil.CheckArgumentEmpty(ref xmlReaders, Strings.StoreItemCollectionMustHaveOneArtifact, "xmlReader");
151EntityUtil.CheckArgumentNull(filePaths, "filePaths");
153EntityUtil.CheckArgumentEmpty(ref enumerableFilePaths, Strings.StoreItemCollectionMustHaveOneArtifact, "filePaths");
165EntityUtil.CheckArgumentEmpty(ref ieReaders, Strings.StoreItemCollectionMustHaveOneArtifact, "filePaths");
193EntityUtil.CheckArgumentNull(xmlReaders, "xmlReaders");
System\Data\Objects\CompiledQuery.cs (17)
40EntityUtil.CheckArgumentNull(query, "query");
378EntityUtil.CheckArgumentNull(arg0, "arg0");
390EntityUtil.CheckArgumentNull(arg0, "arg0");
402EntityUtil.CheckArgumentNull(arg0, "arg0");
414EntityUtil.CheckArgumentNull(arg0, "arg0");
426EntityUtil.CheckArgumentNull(arg0, "arg0");
438EntityUtil.CheckArgumentNull(arg0, "arg0");
450EntityUtil.CheckArgumentNull(arg0, "arg0");
462EntityUtil.CheckArgumentNull(arg0, "arg0");
474EntityUtil.CheckArgumentNull(arg0, "arg0");
486EntityUtil.CheckArgumentNull(arg0, "arg0");
498EntityUtil.CheckArgumentNull(arg0, "arg0");
510EntityUtil.CheckArgumentNull(arg0, "arg0");
522EntityUtil.CheckArgumentNull(arg0, "arg0");
534EntityUtil.CheckArgumentNull(arg0, "arg0");
546EntityUtil.CheckArgumentNull(arg0, "arg0");
558EntityUtil.CheckArgumentNull(arg0, "arg0");
System\Data\Objects\DataClasses\RelatedEnd.cs (48)
47EntityUtil.CheckArgumentNull(wrappedOwner, "wrappedOwner");
48EntityUtil.CheckArgumentNull(wrappedOwner.Entity, "wrappedOwner.Entity");
49EntityUtil.CheckArgumentNull(navigation, "navigation");
50EntityUtil.CheckArgumentNull(relationshipFixer, "fixer");
233throw EntityUtil.NotSupported();
346throw EntityUtil.InvalidEntityStateSource();
360throw EntityUtil.InvalidEntityStateSource();
385EntityUtil.CheckEntityKeyNull(key); // Might be null because of faulty IPOCO implementation
671throw EntityUtil.RelatedEndNotAttachedToContext(relatedEndName);
678throw EntityUtil.InvalidEntityStateLoad(relatedEndName);
686throw EntityUtil.MismatchedMergeOptionOnLoad(mergeOption);
693throw EntityUtil.LoadCalledOnAlreadyLoadedNoTrackedRelatedEnd();
698throw EntityUtil.LoadCalledOnNonEmptyNoTrackedRelatedEnd();
798EntityUtil.CheckEntityKeyNull(sourceKey);
836EntityUtil.CheckArgumentNull(entity, "entity");
872throw EntityUtil.InconsistentReferentialConstraintProperties();
886throw EntityUtil.InconsistentReferentialConstraintProperties();
905throw EntityUtil.InvalidOwnerStateForAttach();
913throw EntityUtil.InvalidOwnerStateForAttach();
924throw EntityUtil.InvalidNthElementNullForAttach(index);
928throw EntityUtil.ArgumentNull("wrappedEntity");
944throw EntityUtil.InvalidNthElementContextForAttach(index);
948throw EntityUtil.InvalidEntityContextForAttach();
961throw EntityUtil.InvalidNthElementStateForAttach(index);
965throw EntityUtil.InvalidEntityStateForAttach();
996EntityUtil.CheckArgumentNull(entity, "entity");
1040EntityUtil.CheckArgumentNull(entity, "entity");
1109throw EntityUtil.EntitySetIsNotValidForRelationship(set.EntityContainer.Name, set.Name, _navigation.To, _relationshipSet.EntityContainer.Name, _relationshipSet.Name);
1119throw EntityUtil.UnableToAddRelationshipWithDeletedEntity();
1153throw EntityUtil.CannotCreateRelationshipBetweenTrackedAndNoTrackedEntities(UsingNoTracking ?
1170throw EntityUtil.CannotCreateRelationshipEntitiesInDifferentContexts();
1581throw EntityUtil.UnableToAddRelationshipWithDeletedEntity();
1654throw EntityUtil.CannotCreateRelationshipBetweenTrackedAndNoTrackedEntities(_navigation.To);
1657throw EntityUtil.EntityKeyValueMismatch();
1899EntityUtil.ValidateEntitySetInKey(principalKey, principalEntitySet);
2126throw EntityUtil.EntityKeyValueMismatch();
2156EntityUtil.CheckEntityKeyNull(ownerKey);
2157EntityUtil.CheckEntityKeyNull(entityKey);
2300EntityUtil.CheckEntityKeyNull(ownerKey);
2313EntityUtil.CheckArgumentNull(context, "context");
2314EntityUtil.CheckArgumentMergeOption(mergeOption);
2315EntityUtil.CheckArgumentNull(entitySet, "entitySet");
2352throw EntityUtil.EntitySetIsNotValidForRelationship(entitySet.EntityContainer.Name, entitySet.Name, _navigation.From, ((AssociationSet)set).EntityContainer.Name, ((AssociationSet)set).Name);
2355throw EntityUtil.NoRelationshipSetMatched(_navigation.RelationshipName);
2380throw EntityUtil.RelatedEndNotFound();
2395throw EntityUtil.CannotSetSpecialKeys();
2427throw EntityUtil.NoRelationshipSetMatched(_navigation.RelationshipName);
2499throw EntityUtil.OwnerIsNull();
System\Data\Objects\DataClasses\RelationshipManager.cs (30)
145EntityUtil.CheckArgumentNull(owner, "owner");
175throw EntityUtil.InvalidRelationshipManagerOwner();
323throw EntityUtil.CannotRemergeCollections();
409EntityUtil.CheckArgumentNull(relationshipName, "relationshipName");
410EntityUtil.CheckArgumentNull(targetRoleName, "targetRoleName");
478throw EntityUtil.InvalidTargetRole(relationshipName, targetRoleName, "targetRoleName");
500throw EntityUtil.OwnerIsNotSourceType(wrappedOwner.IdentityType.FullName, sourceType.FullName, sourceEnd.Name, relationshipName);
525EntityUtil.CheckArgumentNull(relationshipName, "relationshipName");
526EntityUtil.CheckArgumentNull(targetRoleName, "targetRoleName");
527EntityUtil.CheckArgumentNull(entityReference, "entityReference");
531throw EntityUtil.ReferenceAlreadyInitialized();
537throw EntityUtil.RelationshipManagerAttached();
561throw EntityUtil.ExpectedReferenceGotCollection(typeof(TTargetEntity).Name, targetRoleName, relationshipName);
579EntityUtil.CheckArgumentNull(relationshipName, "relationshipName");
580EntityUtil.CheckArgumentNull(targetRoleName, "targetRoleName");
581EntityUtil.CheckArgumentNull(entityCollection, "entityCollection");
585throw EntityUtil.CollectionAlreadyInitialized();
591throw EntityUtil.CollectionRelationshipManagerAttached();
602throw EntityUtil.ExpectedCollectionGotReference(typeof(TTargetEntity).Name, targetRoleName, relationshipName);
617EntityUtil.CheckArgumentNull(relationshipName, "relationshipName");
727ArgumentException argException = EntityUtil.UnableToFindRelationshipTypeInMetadata(relationshipName, "relationshipName");
730return EntityUtil.ProxyMetadataIsUnavailable(wrappedOwner.IdentityType, argException);
839throw EntityUtil.NoRelationshipSetMatched(relationship.FullName);
868throw EntityUtil.ExpectedCollectionGotReference(typeof(TTargetEntity).Name, targetRoleName, relationshipName);
887throw EntityUtil.ExpectedReferenceGotCollection(typeof(TTargetEntity).Name, targetRoleName, relationshipName);
965throw EntityUtil.InvalidEnumerationValue(typeof(RelationshipMultiplicity), (int)targetRoleMultiplicity);
1278throw EntityUtil.UnableToRetrieveReferentialConstraintProperties();
1379throw EntityUtil.InconsistentReferentialConstraintProperties();
1439EntityUtil.CheckEntityKeyNull(ownerKey);
1444EntityUtil.CheckContextNull(wrappedOwner.Context);
System\Data\Objects\ELinq\ExpressionConverter.cs (25)
120EntityUtil.CheckArgumentNull(funcletizer, "funcletizer");
121EntityUtil.CheckArgumentNull(expression, "expression");
296throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedHeterogeneousInitializers(
559throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedCast(DescribeClrType(fromClrType), DescribeClrType(toClrType)));
579throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedCastToDecimal);
637throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedIsOrAs(operationType,
654throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedDifferentContexts);
895throw EntityUtil.InternalError(EntityUtil.InternalErrorCode.UnexpectedLinqLambdaExpressionFormat);
920throw EntityUtil.InternalError(EntityUtil.InternalErrorCode.UnknownLinqNodeType, -1,
953throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedNominalType(
961throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedEnumerableType(
1008throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedType(linqType));
1098throw EntityUtil.NotSupported(Strings.ELinq_UnsupportedComparison(DescribeClrType(clrType)));
1109throw EntityUtil.NotSupported(Strings.ELinq_UnsupportedRowComparison(memberPathDescription.ToString()));
1193throw EntityUtil.NotSupported(Strings.ELinq_UnsupportedRefComparison(leftRefType.ElementType.FullName, rightRefType.ElementType.FullName));
1426throw EntityUtil.ProviderIncompatible(System.Data.Entity.Strings.ProviderEscapeLikeArgumentReturnedNull);
1532throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnresolvableFunctionForMethod(methodInfo, methodInfo.DeclaringType));
1539throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnresolvableFunctionForMember(memberInfo, memberInfo.DeclaringType));
1541throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnresolvableFunctionForExpression(Expression.NodeType));
1555throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnresolvableFunctionForMethodAmbiguousMatch(methodInfo, methodInfo.DeclaringType));
1559throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnresolvableFunctionForMethodNotFound(methodInfo, methodInfo.DeclaringType));
1567throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnresolvableStoreFunctionForMember(memberInfo, memberInfo.DeclaringType));
1569throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnresolvableStoreFunctionForExpression(Expression.NodeType));
System\Data\Objects\ELinq\Funcletizer.cs (18)
68EntityUtil.CheckArgumentNull(rootContext, "rootContext");
69EntityUtil.CheckArgumentNull(rootContextParameter, "rootContextParameter");
70EntityUtil.CheckArgumentNull(compiledQueryParameters, "compiledQueryParameters");
82EntityUtil.CheckArgumentNull(rootContext, "rootContext");
113EntityUtil.CheckArgumentNull(expression, "expression");
178EntityUtil.CheckArgumentNull(localCriterion, "localCriterion");
290EntityUtil.CheckArgumentNull(type, "type");
333EntityUtil.CheckArgumentNull(funcletizer, "funcletizer");
334EntityUtil.CheckArgumentNull(isClientConstant, "isClientConstant");
335EntityUtil.CheckArgumentNull(isClientVariable, "isClientVariable");
361throw EntityUtil.InvalidOperation(Strings.ELinq_CycleDetected);
420return EntityUtil.NotSupported(Strings.CompiledELinq_UnsupportedParameterTypes(expression.Type.FullName));
429return EntityUtil.NotSupported(Strings.CompiledELinq_UnsupportedNamedParameterType(parameterExp.Name, parameterExp.Type.FullName));
434return EntityUtil.NotSupported(Strings.CompiledELinq_UnsupportedNamedParameterUseAsType(parameterExp.Name, expression.Type.FullName));
552EntityUtil.CheckArgumentNull(inlineQuery, "inlineQuery");
565throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedDifferentContexts);
611EntityUtil.CheckArgumentNull(parameterReference, "parameterReference");
612EntityUtil.CheckArgumentNull(funcletizedExpression, "funcletizedExpression");
System\Data\Objects\ELinq\MethodCallTranslator.cs (28)
453throw EntityUtil.NotSupported(Strings.ELinq_UnsupportedInclude);
480throw EntityUtil.NotSupported(Strings.ELinq_UnsupportedMergeAs);
484EntityUtil.CheckArgumentMergeOption(mergeAsOption);
526throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedMethodSuggestedAlternative(call.Method, suggestedMethodInfo));
529throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedMethod(call.Method));
614throw EntityUtil.NotSupported(System.Data.Entity.Strings.CannotCallNoncomposableFunction(function.FullName));
738throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionAttributedFunctionWithWrongReturnType(call.Method, call.Method.DeclaringType));
743throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionAttributedFunctionWithWrongReturnType(call.Method, call.Method.DeclaringType));
753throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionAttributedFunctionWithWrongReturnType(call.Method, call.Method.DeclaringType));
761throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionAttributedFunctionWithWrongReturnType(call.Method, call.Method.DeclaringType));
774throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionAttributedFunctionWithWrongReturnType(call.Method, call.Method.DeclaringType));
783throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionAttributedFunctionWithWrongReturnType(call.Method, call.Method.DeclaringType));
807throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionAttributeParameterNameNotValid(call.Method, call.Method.DeclaringType, parameterName));
907throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedAsUnicodeAndAsNonUnicode(call.Method));
1164throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedStringRemoveCase(call.Method, call.Method.GetParameters()[1].Name));
1329throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedTrimStartTrimEndCase(call.Method));
1504throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedVBDatePartNonConstantInterval(call.Method, call.Method.GetParameters()[0].Name));
1510throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedVBDatePartInvalidInterval(call.Method, call.Method.GetParameters()[0].Name, intervalValue));
1609throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedKeySelector(call.Method.Name));
2053throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedPassthrough(
2073throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_InvalidOfTypeResult(DescribeClrType(clrType)));
2352throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedNestedFirst);
2369throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedNestedSingle);
2444throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedNestedFirst);
2461throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedNestedSingle);
2756throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedKeySelector(call.Method.Name));
2877throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedKeySelector(call.Method.Name));
3018throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.ELinq_ThenByDoesNotFollowOrderBy);
System\Data\Objects\EntityEntry.cs (58)
237EntityUtil.CheckArgumentNull(propertyName, "propertyName");
244throw EntityUtil.CannotModifyKeyEntryState();
250throw EntityUtil.InvalidModifiedPropertyName(propertyName);
256throw EntityUtil.SetModifiedStates(methodName);
338throw EntityUtil.OriginalValuesDoesNotExist();
343throw EntityUtil.CannotAccessKeyEntryValues();
394throw EntityUtil.CurrentValuesDoesNotExist();
399throw EntityUtil.CannotAccessKeyEntryValues();
498throw EntityUtil.CannotModifyKeyEntryState();
509throw EntityUtil.SetModifiedStates("SetModified");
542EntityUtil.CheckValidStateForChangeEntityState(state);
570EntityUtil.CheckArgumentNull(currentEntity, "currentEntity");
576throw EntityUtil.CannotAccessKeyEntryValues();
590EntityUtil.CheckArgumentNull(originalEntity, "originalEntity");
596throw EntityUtil.CannotAccessKeyEntryValues();
983throw EntityUtil.CannotAccessKeyEntryValues();
998throw EntityUtil.CannotAccessKeyEntryValues();
1014throw EntityUtil.CannotAccessKeyEntryValues();
1016EntityUtil.CheckArgumentNull(complexObjectMemberName, "complexObjectMemberName");
1017EntityUtil.CheckArgumentNull(complexObject, "complexObject");
1032throw EntityUtil.CannotAccessKeyEntryValues();
1034EntityUtil.CheckArgumentNull(complexObjectMemberName, "complexObjectMemberName");
1035EntityUtil.CheckArgumentNull(complexObject, "complexObject");
1085throw EntityUtil.EntityValueChangedWithoutEntityValueChanging();
1093throw EntityUtil.ChangedInDifferentStateFromChanging(this.State, _cache.ChangingState);
1199throw EntityUtil.OriginalValuesDoesNotExist();
1219throw EntityUtil.NullableComplexTypesNotSupported(memberMetadata.CLayerName);
1444throw EntityUtil.NullableComplexTypesNotSupported(memberMetadata.CLayerName);
1537EntityUtil.CheckArgumentNull(entityMemberName, "entityMemberName");
1550throw EntityUtil.CantSetEntityKey();
1569throw EntityUtil.ChangeOnUnmappedProperty(entityMemberName);
1584throw EntityUtil.ComplexChangeRequestedOnScalarProperty(entityMemberName);
1591throw EntityUtil.ChangeOnUnmappedComplexProperty(complexObjectMemberName);
1883throw EntityUtil.CannotModifyKeyProperty(member.CLayerName);
1933throw EntityUtil.NullableComplexTypesNotSupported(complexMember.CLayerName);
2192throw EntityUtil.UnableToAddRelationshipWithDeletedEntity();
2215throw EntityUtil.InconsistentReferentialConstraintProperties();
2393throw EntityUtil.CannotAddMoreThanOneEntityToEntityReference(
2480throw EntityUtil.CannotCallDeleteOnKeyEntry();
2769throw EntityUtil.InconsistentReferentialConstraintProperties();
2819throw EntityUtil.InconsistentReferentialConstraintProperties();
2966throw EntityUtil.CannotModifyKeyProperty(member.CLayerName);
2987throw EntityUtil.CantModifyDetachedDeletedEntries();
2998throw EntityUtil.CannotModifyKeyProperty(memberName);
3020throw EntityUtil.NullableComplexTypesNotSupported(member.CLayerName);
3026throw EntityUtil.InvalidTypeForComplexTypeProperty("value");
3072throw EntityUtil.CannotModifyKeyEntryState();
3108throw EntityUtil.InvalidEntityStateArgument("state");
3141throw EntityUtil.InvalidEntityStateArgument("state");
3175throw EntityUtil.InvalidEntityStateArgument("state");
3230throw EntityUtil.InvalidEntityStateArgument("state");
3297throw EntityUtil.NullableComplexTypesNotSupported(field.FieldType.Name);
3349throw EntityUtil.EntityMustBeUnchangedOrModified(this.State);
3354throw EntityUtil.EntitiesHaveDifferentType(this.Entity.GetType().FullName, wrappedCurrentEntity.Entity.GetType().FullName);
3377throw EntityUtil.EntityMustBeUnchangedOrModifiedOrDeleted(this.State);
3382throw EntityUtil.EntitiesHaveDifferentType(this.Entity.GetType().FullName, wrappedOriginalEntity.Entity.GetType().FullName);
3637throw EntityUtil.CannotAddMoreThanOneEntityToEntityReference(
3722throw EntityUtil.CircularRelationshipsWithReferentialConstraints();
System\Data\Objects\ObjectContext.cs (100)
170: this(EntityUtil.CheckArgumentNull(connection, "connection"), true)
242throw EntityUtil.InvalidConnection(isConnectionConstructor, null);
253throw EntityUtil.InvalidConnection(isConnectionConstructor, e);
292throw EntityUtil.ObjectContextDisposed();
317throw EntityUtil.CannotSetDefaultContainerName();
379throw EntityUtil.InvalidCommandTimeout("value");
543EntityUtil.ValidateEntitySetInKey(key, entitySetFromName, "entitySetName");
553throw EntityUtil.EntitySetNameOrEntityKeyRequired();
573throw EntityUtil.ObjectStateManagerContainsThisEntityKey();
582EntityUtil.EntityAlreadyExistsInObjectStateManager() :
583EntityUtil.ObjectStateManagerDoesnotAllowToReAddUnchangedOrModifiedOrDeletedEntity(existingEntry.State);
613EntityUtil.CheckArgumentNull(entity, "entity");
706EntityUtil.ValidateEntitySetInKey(key, entitySet);
839EntityUtil.CheckArgumentNull(selector, "selector");
873EntityUtil.CheckStringArgument(entitySetName, "entitySetName");
874EntityUtil.CheckArgumentNull(changed, "changed");
886EntityUtil.CheckStringArgument(entitySetName, "entitySetName");
887EntityUtil.CheckArgumentNull(currentEntity, "currentEntity");
901EntityUtil.ValidateEntitySetInKey(key, entitySet, "entitySetName");
913throw EntityUtil.EntityNotTracked();
930EntityUtil.CheckStringArgument(entitySetName, "entitySetName");
931EntityUtil.CheckArgumentNull(originalEntity, "originalEntity");
946EntityUtil.ValidateEntitySetInKey(key, entitySet, "entitySetName");
958throw EntityUtil.EntityNotTrackedOrHasTempKey();
965throw EntityUtil.EntityMustBeUnchangedOrModifiedOrDeleted(ose.State);
970throw EntityUtil.EntitiesHaveDifferentType(ose.Entity.GetType().FullName, originalEntity.GetType().FullName);
993EntityUtil.CheckArgumentNull(entity, "entity");
1078EntityUtil.CheckArgumentNull(entity, "entity");
1082throw EntityUtil.CannotAttachEntityWithoutKey();
1107EntityUtil.ValidateEntitySetInKey(key, entitySet);
1120throw EntityUtil.CannotAttachEntityWithTemporaryKey();
1167throw EntityUtil.ObjectStateManagerContainsThisEntityKey();
1201throw EntityUtil.EntityCantHaveMultipleChangeTrackers();
1214EntityUtil.CheckStringArgument(entitySetName, "entitySetName");
1215EntityUtil.CheckArgumentNull(entity, "entity");
1221MetadataWorkspace.ImplicitLoadAssemblyForType(EntityUtil.GetEntityIdentityType(entity.GetType()), null);
1244throw EntityUtil.NthElementIsNull(entities.Count);
1305throw EntityUtil.MultipleEntitySetsFoundInAllContainers(entityCLRType.FullName, exceptionParameterName);
1321throw EntityUtil.NoEntitySetFoundForType(entityCLRType.FullName, exceptionParameterName);
1343throw EntityUtil.MultipleEntitySetsFoundInSingleContainer(entityCLRType.FullName, container.Name, exceptionParameterName);
1387throw EntityUtil.InvalidEntityTypeForObjectSet(entityCLRType.FullName, entitySet.ElementType.FullName, entitySetName, exceptionParameterName);
1404throw EntityUtil.ObjectContextDisposed();
1423throw EntityUtil.InvalidOperation(message);
1565throw EntityUtil.ObjectContextDisposed();
1595throw EntityUtil.ObjectContextDisposed();
1612throw EntityUtil.ContextMetadataHasChanged();
1630EntityUtil.CheckArgumentNull(queryString, "queryString");
1631EntityUtil.CheckArgumentNull(parameters, "parameters");
1659EntityUtil.CheckStringArgument(connectionString, "connectionString");
1676throw EntityUtil.ObjectContextDisposed();
1712EntityUtil.CheckArgumentNull(entity, "entity");
1717throw EntityUtil.CannotDeleteEntityNotInObjectStateManager();
1725throw EntityUtil.EntityNotInObjectSet_Delete(actualEntitySet.EntityContainer.Name, actualEntitySet.Name, expectedEntitySet.EntityContainer.Name, expectedEntitySet.Name);
1760EntityUtil.CheckArgumentNull(entity, "entity");
1767throw EntityUtil.CannotDetachEntityNotInObjectStateManager();
1775throw EntityUtil.EntityNotInObjectSet_Detach(actualEntitySet.EntityContainer.Name, actualEntitySet.Name, expectedEntitySet.EntityContainer.Name, expectedEntitySet.Name);
1849throw EntityUtil.EntityContainterNotFoundForName(entityContainerName);
1857throw EntityUtil.EntitySetNotFoundForName(TypeHelpers.GetFullName(container.Name, entitySetName));
1867EntityUtil.CheckStringArgument(qualifiedName, parameterName);
1872throw EntityUtil.QualfiedEntitySetName(parameterName);
1884throw EntityUtil.QualfiedEntitySetName(parameterName);
1889throw EntityUtil.QualfiedEntitySetName(parameterName);
1894throw EntityUtil.ContainerQualifiedEntitySetNameRequired(parameterName);
1908throw EntityUtil.InvalidEntitySetOnEntity(entitySet.Name, entityType, "entity");
1921throw EntityUtil.InvalidEntityType(entityCLRType);
1936EntityUtil.CheckArgumentNull(key, "key");
1950throw EntityUtil.ObjectNotFound();
1970EntityUtil.CheckArgumentRefreshMode(refreshMode);
1971EntityUtil.CheckArgumentNull(collection, "collection");
1995EntityUtil.CheckArgumentRefreshMode(refreshMode);
1996EntityUtil.CheckArgumentNull(entity, "entity");
2025throw EntityUtil.NthElementNotInObjectStateManager(entities.Count);
2029throw EntityUtil.NthElementInAddedState(entities.Count);
2040throw EntityUtil.NthElementIsDuplicate(entities.Count);
2148throw EntityUtil.ClientEntityRemovedFromStore(builder.ToString());
2256EntityUtil.CheckEntityKeyNull(key);
2261throw EntityUtil.StoreEntityNotPresentInClient();
2361throw EntityUtil.InvalidDataAdapter();
2434if (EntityUtil.IsCatchableExceptionType(e))
2436throw EntityUtil.AcceptAllChangesFailure(e);
2510esql.AppendFormat("SELECT VALUE X FROM {0}.{1} AS X WHERE ", EntityUtil.QuoteIdentifier(entitySet.EntityContainer.Name), EntityUtil.QuoteIdentifier(entitySet.Name));
2522esql.AppendFormat("X.{0} = @{1}", EntityUtil.QuoteIdentifier(members[i].Key), parameterName);
2575EntityUtil.CheckStringArgument(functionName, "function");
2576EntityUtil.CheckArgumentNull(parameters, "parameters");
2587throw EntityUtil.ExecuteFunctionCalledWithNonReaderFunction(functionImport);
2606EntityUtil.CheckStringArgument(functionName, "function");
2607EntityUtil.CheckArgumentNull(parameters, "parameters");
2623if (EntityUtil.IsCatchableEntityExceptionType(e))
2625throw EntityUtil.CommandExecution(System.Data.Entity.Strings.EntityClient_CommandExecutionFailed, e);
2643throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectContext_ExecuteFunctionCalledWithNullParameter(i));
2689if (EntityUtil.IsCatchableEntityExceptionType(e))
2691throw EntityUtil.CommandExecution(System.Data.Entity.Strings.EntityClient_CommandExecutionFailed, e);
2933EntityUtil.CheckArgumentNull(type, "type");
3056EntityUtil.CheckStringArgument(entitySetName, "entitySetName");
3137EntityUtil.CheckStringArgument(entitySetName, "entitySetName");
3154EntityUtil.CheckArgumentNull(reader, "reader");
3155EntityUtil.CheckArgumentMergeOption(mergeOption);
3176throw EntityUtil.InvalidOperation(Strings.ObjectContext_InvalidEntitySetForStoreQuery(entitySet.EntityContainer.Name,
3249throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.ObjectContext_ExecuteCommandWithMixOfDbParameterAndValues);
System\Data\Objects\ObjectQuery_EntitySqlExtensions.cs (36)
136EntityUtil.CheckArgumentMergeOption(mergeOption);
180EntityUtil.CheckArgumentMergeOption(mergeOption);
196EntityUtil.CheckArgumentNull(entitySet, "entitySet");
200EntityUtil.QuoteIdentifier(entitySet.EntityContainer.Name),
201EntityUtil.QuoteIdentifier(entitySet.Name));
223EntityUtil.CheckArgumentNull(value, "value");
227throw EntityUtil.Argument(System.Data.Entity.Strings.ObjectQuery_InvalidQueryName(value), "value");
274EntityUtil.CheckArgumentNull(query, "query");
301EntityUtil.CheckArgumentNull(keys, "keys");
302EntityUtil.CheckArgumentNull(projection, "projection");
303EntityUtil.CheckArgumentNull(parameters, "parameters");
307throw EntityUtil.Argument(System.Data.Entity.Strings.ObjectQuery_QueryBuilder_InvalidGroupKeyList, "keys");
312throw EntityUtil.Argument(System.Data.Entity.Strings.ObjectQuery_QueryBuilder_InvalidProjectionList, "projection");
333EntityUtil.CheckArgumentNull(query, "query");
372throw EntityUtil.EntitySqlError(System.Data.Entity.Strings.ObjectQuery_QueryBuilder_InvalidResultType(typeof(TResultType).FullName));
402EntityUtil.CheckArgumentNull(keys, "keys");
403EntityUtil.CheckArgumentNull(parameters, "parameters");
407throw EntityUtil.Argument(System.Data.Entity.Strings.ObjectQuery_QueryBuilder_InvalidSortKeyList, "keys");
434EntityUtil.CheckArgumentNull(projection, "projection");
435EntityUtil.CheckArgumentNull(parameters, "parameters");
439throw EntityUtil.Argument(System.Data.Entity.Strings.ObjectQuery_QueryBuilder_InvalidProjectionList, "projection");
466EntityUtil.CheckArgumentNull(projection, "projection");
467EntityUtil.CheckArgumentNull(parameters, "parameters");
471throw EntityUtil.Argument(System.Data.Entity.Strings.ObjectQuery_QueryBuilder_InvalidProjectionList, "projection");
506EntityUtil.CheckArgumentNull(keys, "keys");
507EntityUtil.CheckArgumentNull(count, "count");
508EntityUtil.CheckArgumentNull(parameters, "parameters");
512throw EntityUtil.Argument(System.Data.Entity.Strings.ObjectQuery_QueryBuilder_InvalidSortKeyList, "keys");
517throw EntityUtil.Argument(System.Data.Entity.Strings.ObjectQuery_QueryBuilder_InvalidSkipCount, "count");
545EntityUtil.CheckArgumentNull(count, "count");
549throw EntityUtil.Argument(System.Data.Entity.Strings.ObjectQuery_QueryBuilder_InvalidTopCount, "count");
571EntityUtil.CheckArgumentNull(query, "query");
596EntityUtil.CheckArgumentNull(query, "query");
622EntityUtil.CheckArgumentNull(predicate, "predicate");
623EntityUtil.CheckArgumentNull(parameters, "parameters");
627throw EntityUtil.Argument(System.Data.Entity.Strings.ObjectQuery_QueryBuilder_InvalidFilterPredicate, "predicate");
System\Data\Objects\ObjectStateEntryDbDataRecord.cs (13)
29EntityUtil.CheckArgumentNull(cacheEntry, "cacheEntry");
30EntityUtil.CheckArgumentNull(userObject, "userObject");
31EntityUtil.CheckArgumentNull(metadata, "metadata");
49EntityUtil.CheckArgumentNull(cacheEntry, "cacheEntry");
106throw EntityUtil.InvalidSourceBufferIndex(tempBuffer.Length, srcIndex, "dataIndex");
110throw EntityUtil.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, "bufferIndex");
119throw EntityUtil.InvalidDataLength(length);
145throw EntityUtil.InvalidSourceBufferIndex(buffer.Length, bufferIndex, "bufferIndex");
149throw EntityUtil.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, "bufferIndex");
158throw EntityUtil.InvalidDataLength(length);
168throw EntityUtil.NotSupported();
219throw EntityUtil.ArgumentOutOfRange("name");
242throw EntityUtil.ArgumentNull("values");
System\Data\Objects\ObjectStateManager.cs (43)
136EntityUtil.CheckArgumentNull(metadataWorkspace, "metadataWorkspace");
286throw EntityUtil.ObjectStateManagerContainsThisEntityKey();
317throw EntityUtil.DuplicateTypeForProxyType(identityType);
351throw EntityUtil.EntityTypeDoesNotMatchEntitySet(wrappedObject.Entity.GetType().Name, TypeHelpers.GetFullName(entitySet), argumentName);
373EntityUtil.CheckEntityKeyNull(entityKey);
374EntityUtil.CheckEntityKeysMatch(wrappedObject, entityKey);
394throw EntityUtil.ObjectStateManagerContainsThisEntityKey();
401throw EntityUtil.ObjectStateManagerDoesnotAllowToReAddUnchangedOrModifiedOrDeletedEntity(existingEntry.State);
838throw EntityUtil.EntityConflictsWithKeyEntry();
884throw EntityUtil.CannotFillTryDifferentMergeOption(targetRelatedEnd.SourceRoleName, targetRelatedEnd.RelationshipName);
942EntityUtil.CheckEntityKeyNull(targetKey);
984throw EntityUtil.CannotFillTryDifferentMergeOption(relatedEnd.SourceRoleName, relatedEnd.RelationshipName);
1466throw EntityUtil.InvalidKey();
1486throw EntityUtil.InvalidKey();
1495throw EntityUtil.KeyPropertyDoesntMatchValueInKey(forAttach);
1773throw EntityUtil.DetachedObjectStateEntriesDoesNotExistInObjectStateManager();
1998throw EntityUtil.CannotFixUpKeyToExistingValues();
2121throw EntityUtil.AcceptChangesEntityKeyIsNotValid();
2127EntityUtil.CheckEntityKeysMatch(entry.WrappedEntity, value);
2153EntityUtil.CheckArgumentNull(entity, "entity");
2154EntityUtil.CheckValidStateForChangeEntityState(entityState);
2172throw EntityUtil.NoEntryExistsForObject(entity);
2206EntityUtil.CheckStringArgument(navigationProperty, "navigationProperty");
2317EntityUtil.CheckArgumentNull(sourceEntity, "sourceEntity");
2318EntityUtil.CheckArgumentNull(targetEntity, "targetEntity");
2333EntityUtil.CheckValidStateForChangeRelationshipState(relationshipState, "relationshipState");
2400throw EntityUtil.NoEntryExistsForObject(o);
2432throw EntityUtil.NoEntryExistForEntityKey();
2442throw EntityUtil.NoEntryExistForEntityKey();
2459throw EntityUtil.NoEntryExistsForObject(entity);
2472throw EntityUtil.NoEntryExistsForObject(entity);
2487EntityUtil.CheckArgumentNull(entity, "entity");
2558EntityUtil.CheckArgumentNull(key, "key");
2653EntityUtil.CheckArgumentNull(entity, "entity");
2660throw EntityUtil.UnexpectedNullRelationshipManager();
2664throw EntityUtil.InvalidRelationshipManagerOwner();
3038throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.Mapping_CannotMapCLRTypeMultipleTimes(typeMetadata.CdmMetadata.EdmType.FullName));
3132throw EntityUtil.UnableToAddRelationshipWithDeletedEntity();
3146throw EntityUtil.CannotChangeReferentialConstraintProperty();
3182throw EntityUtil.CannotChangeReferentialConstraintProperty();
3723StateManagerTypeMetadata typeMetadata = this.GetOrAddStateManagerTypeMetadata(EntityUtil.GetEntityIdentityType(entity.GetType()), entitySet);
3732throw EntityUtil.EntityTypeDoesNotMatchEntitySet(entity.GetType().FullName, entitySet.Name, "entity");
3738throw EntityUtil.NullKeyValue(keyName, entitySet.ElementType.Name);
System\Data\Query\PlanCompiler\NestPullup.cs (21)
155throw EntityUtil.NestingNotSupported(op, chi.Op);
192throw EntityUtil.InternalError(EntityUtil.InternalErrorCode.ColumnCountMismatch, 2);
199throw EntityUtil.InternalError(EntityUtil.InternalErrorCode.ColumnCountMismatch, 3);
338throw EntityUtil.NestingNotSupported(op, chi.Op);
345throw EntityUtil.NestingNotSupported(op, chi.Op);
447throw EntityUtil.InternalError(EntityUtil.InternalErrorCode.JoinOverSingleStreamNest);
469throw EntityUtil.KeysRequiredForJoinOverNest(op);
1787throw EntityUtil.InternalError(EntityUtil.InternalErrorCode.InvalidInternalTree, 2, newNode.Op.OpType);
1900throw EntityUtil.InternalError(EntityUtil.InternalErrorCode.NestOverNest);
2173throw EntityUtil.KeysRequiredForNesting();
2605throw EntityUtil.InternalError(EntityUtil.InternalErrorCode.ColumnCountMismatch, 4); // more columns from children than are on the unionAll?
2619throw EntityUtil.InternalError(EntityUtil.InternalErrorCode.ColumnCountMismatch, 5); // more columns from children than are on the unionAll?
2627throw EntityUtil.InternalError(EntityUtil.InternalErrorCode.ColumnCountMismatch, 6); // at this point, we better be done with both lists...
System\Data\Spatial\Internal\SpatialExceptions.cs (12)
20return EntityUtil.ArgumentNull(argumentName);
26return EntityUtil.Argument(System.Data.Entity.Strings.Spatial_ProviderValueNotCompatibleWithSpatialServices, "providerValue");
36return EntityUtil.InvalidOperation(System.Data.Entity.Strings.Spatial_WellKnownValueSerializationPropertyNotDirectlySettable);
44return EntityUtil.Argument(System.Data.Entity.Strings.Spatial_GeographyValueNotCompatibleWithSpatialServices, argumentName);
50return EntityUtil.Argument(System.Data.Entity.Strings.Spatial_WellKnownGeographyValueNotValid, argumentName);
56return EntityUtil.Argument(System.Data.Entity.Strings.SqlSpatialservices_CouldNotCreateWellKnownGeographyValueNoSrid, argumentName);
62return EntityUtil.Argument(System.Data.Entity.Strings.SqlSpatialservices_CouldNotCreateWellKnownGeographyValueNoWkbOrWkt, argumentName);
72return EntityUtil.Argument(System.Data.Entity.Strings.Spatial_GeometryValueNotCompatibleWithSpatialServices, argumentName);
78throw EntityUtil.Argument(System.Data.Entity.Strings.Spatial_WellKnownGeometryValueNotValid, argumentName);
84return EntityUtil.Argument(System.Data.Entity.Strings.SqlSpatialservices_CouldNotCreateWellKnownGeometryValueNoSrid, argumentName);
90return EntityUtil.Argument(System.Data.Entity.Strings.SqlSpatialservices_CouldNotCreateWellKnownGeometryValueNoWkbOrWkt, argumentName);
99return EntityUtil.Argument(System.Data.Entity.Strings.SqlSpatialServices_ProviderValueNotSqlType(requiredType.AssemblyQualifiedName), "providerValue");
System\Data\SqlClient\SqlGen\SqlGenerator.cs (31)
541throw EntityUtil.NotSupported();
611throw EntityUtil.InvalidOperation(String.Empty);
656throw EntityUtil.InvalidOperation(String.Empty);
758throw EntityUtil.InvalidOperation(String.Empty);
777throw EntityUtil.NotSupported();
1027throw EntityUtil.NotSupported(System.Data.Entity.Strings.NoStoreTypeForEdmType(resultType.Identity, ((PrimitiveType)(resultType.EdmType)).PrimitiveTypeKind));
1032throw EntityUtil.NotSupported();
1092throw EntityUtil.NotSupported(System.Data.Entity.Strings.SqlGen_TypedNaNNotSupported(Enum.GetName(typeof(PrimitiveTypeKind), PrimitiveTypeKind.Double)));
1096throw EntityUtil.NotSupported(System.Data.Entity.Strings.SqlGen_TypedPositiveInfinityNotSupported(Enum.GetName(typeof(PrimitiveTypeKind), PrimitiveTypeKind.Double), typeof(Double).Name));
1100throw EntityUtil.NotSupported(System.Data.Entity.Strings.SqlGen_TypedNegativeInfinityNotSupported(Enum.GetName(typeof(PrimitiveTypeKind), PrimitiveTypeKind.Double), typeof(Double).Name));
1113throw EntityUtil.NotSupported(System.Data.Entity.Strings.SqlGen_TypedNaNNotSupported(Enum.GetName(typeof(PrimitiveTypeKind), PrimitiveTypeKind.Single)));
1117throw EntityUtil.NotSupported(System.Data.Entity.Strings.SqlGen_TypedPositiveInfinityNotSupported(Enum.GetName(typeof(PrimitiveTypeKind), PrimitiveTypeKind.Single), typeof(Single).Name));
1121throw EntityUtil.NotSupported(System.Data.Entity.Strings.SqlGen_TypedNegativeInfinityNotSupported(Enum.GetName(typeof(PrimitiveTypeKind), PrimitiveTypeKind.Single), typeof(Single).Name));
1167throw EntityUtil.NotSupported();
1230throw EntityUtil.InvalidOperation(String.Empty);
1348throw EntityUtil.NotSupported();
1358throw EntityUtil.NotSupported();
1368throw EntityUtil.NotSupported();
1606throw EntityUtil.NotSupported();
1765throw EntityUtil.NotSupported();
1868throw EntityUtil.NotSupported();
2429throw EntityUtil.NotSupported();
2439throw EntityUtil.NotSupported();
2592throw EntityUtil.NotSupported();
2623throw EntityUtil.NotSupported();
2657throw EntityUtil.NotSupported();
3274throw EntityUtil.NotSupported();
3303throw EntityUtil.NotSupported();
4026throw EntityUtil.InvalidOperation(String.Empty);
4376throw EntityUtil.NotSupported(System.Data.Entity.Strings.SqlGen_PrimitiveTypeNotSupportedPriorSql10(primitiveTypeKind));
4388throw EntityUtil.NotSupported(System.Data.Entity.Strings.SqlGen_CanonicalFunctionNotSupportedPriorSql10(e.Function.Name));
System\Data\SqlClient\SqlProviderServices.cs (30)
71EntityUtil.CheckArgumentNull(commandTree, "commandTree");
86EntityUtil.CheckArgumentNull(providerManifest, "providerManifest");
87EntityUtil.CheckArgumentNull(commandTree, "commandTree");
92throw EntityUtil.Argument(System.Data.Entity.Strings.Mapping_Provider_WrongManifestType(typeof(SqlProviderManifest)));
143throw EntityUtil.InternalError(EntityUtil.InternalErrorCode.SqlGenParametersNotPermitted);
217EntityUtil.CheckArgumentNull(connection, "connection");
222throw EntityUtil.Argument(Strings.UnableToDetermineStoreVersion);
247throw EntityUtil.Argument(Strings.UnableToDetermineStoreVersion);
255EntityUtil.CheckArgumentNull(fromReader, "fromReader");
262throw EntityUtil.ProviderIncompatible(Strings.SqlProvider_NeedSqlDataReader(fromReader.GetType()));
279throw EntityUtil.Argument(Strings.UnableToDetermineStoreVersion);
288throw EntityUtil.ProviderIncompatible(Strings.SqlProvider_Sql2008RequiredForSpatial);
297throw EntityUtil.SqlTypesAssemblyNotFound();
701EntityUtil.CheckArgumentNull(providerManifestToken, "providerManifestToken");
702EntityUtil.CheckArgumentNull(storeItemCollection, "storeItemCollection");
719EntityUtil.CheckArgumentNull(connection, "connection");
720EntityUtil.CheckArgumentNull(storeItemCollection, "storeItemCollection");
751if (EntityUtil.IsCatchableExceptionType(e))
761if (EntityUtil.IsCatchableExceptionType(ie))
779throw EntityUtil.Argument(System.Data.Entity.Strings.Mapping_Provider_WrongManifestType(typeof(SqlProviderManifest)));
817throw EntityUtil.InvalidOperation(Strings.SqlProvider_DdlGeneration_MissingInitialCatalog);
889EntityUtil.CheckArgumentNull(connection, "connection");
890EntityUtil.CheckArgumentNull(storeItemCollection, "storeItemCollection");
897throw EntityUtil.InvalidOperation(Strings.SqlProvider_DdlGeneration_MissingInitialCatalog);
936throw EntityUtil.InvalidOperation(Strings.SqlProvider_DdlGeneration_CannotTellIfDatabaseExists, e);
973EntityUtil.CheckArgumentNull(connection, "connection");
974EntityUtil.CheckArgumentNull(storeItemCollection, "storeItemCollection");
1014throw EntityUtil.InvalidOperation(Strings.SqlProvider_DdlGeneration_CannotDeleteDatabaseNoInitialCatalog);
1020throw EntityUtil.InvalidOperation(Strings.SqlProvider_DdlGeneration_MissingInitialCatalog);