471 references to Error
System.Data.Linq (471)
DataShape.cs (15)
24
throw
Error
.ArgumentNull("expression");
35
throw
Error
.ArgumentNull("expression");
48
throw
Error
.ArgumentNull("expression");
58
throw
Error
.ArgumentNull("expression");
81
throw
Error
.ArgumentNull("member");
115
throw
Error
.ArgumentNull("member");
135
throw
Error
.ArgumentNull("association");
138
throw
Error
.IncludeNotAllowedAfterFreeze();
149
throw
Error
.SubqueryNotAllowedAfterFreeze();
179
throw
Error
.InvalidLoadOptionsLoadMemberSpecification();
233
throw
Error
.IncludeCycleNotAllowed(); // No edges removed, there must be a loop.
251
throw
Error
.SubqueryNotSupportedOn(mi);
254
throw
Error
.SubqueryNotSupportedOnType(mi.Name, mi.DeclaringType);
260
throw
Error
.SubqueryMustBeSequence();
274
throw
Error
.SubqueryDoesNotSupportOperator(m.Method.Name);
Mapping\AttributedMetaModel.cs (32)
171
throw
Error
.InvalidUseOfGenericMethodAsMappedFunction(mi.Name);
207
throw
Error
.ArgumentNull("rowType");
266
throw
Error
.ArgumentNull("type");
300
throw
Error
.ArgumentNull("method");
400
throw
Error
.NoDiscriminatorFound(type);
403
throw
Error
.DiscriminatorClrTypeNotSupported(this.Discriminator.DeclaringType.Name, this.Discriminator.Name, this.Discriminator.Type);
412
throw
Error
.InheritanceTypeDoesNotDeriveFromRoot(attr.Type, type);
415
throw
Error
.AbstractClassAssignInheritanceDiscriminator(attr.Type);
419
throw
Error
.InheritanceCodeMayNotBeNull();
422
throw
Error
.InheritanceTypeHasMultipleDiscriminators(attr.Type);
431
throw
Error
.InheritanceCodeUsedForMultipleTypes(codeValue);
438
throw
Error
.InheritanceTypeHasMultipleDefaults(type);
445
throw
Error
.InheritanceHierarchyDoesNotDefineDefault(type);
464
throw
Error
.InheritanceSubTypeIsAlsoRoot(type.Type);
469
throw
Error
.NonInheritanceClassHasDiscriminator(type);
478
throw
Error
.MemberMappedMoreThanOnce(mem.Member.Name);
567
throw(
Error
.PrimaryKeyInSubTypeNotSupported(this.type.Name, mm.Name));
649
throw
Error
.TwoMembersMarkedAsPrimaryKeyAndDBGenerated(mm.Member, this.dbGeneratedIdentity.Member);
654
throw
Error
.IdentityClrTypeNotSupported(mm.DeclaringType, mm.Name, mm.Type);
658
throw
Error
.TwoMembersMarkedAsRowVersion(mm.Member, this.version.Member);
663
throw
Error
.TwoMembersMarkedAsInheritanceDiscriminator(mm.Member, this.discriminator.Member);
810
throw
Error
.ArgumentNull("mi");
819
throw
Error
.MappingOfInterfacesMemberIsNotSupported(mi.DeclaringType.Name, mi.Name);
821
throw
Error
.UnmappedClassMember(mi.DeclaringType.Name, mi.Name);
883
throw
Error
.NoResultTypesDeclaredForFunction(mi.Name);
886
throw
Error
.TooManyResultTypesDeclaredForFunction(mi.Name);
1042
throw
Error
.BadStorageProperty(this.attr.Storage, mi.DeclaringType, mi.Name);
1051
throw
Error
.IncorrectAutoSyncSpecification(mi.Name);
1082
throw
Error
.ArgumentNull("declaringMetaType");
1301
throw
Error
.UnhandledDeferredStorageType(accessor.Type);
1353
throw
Error
.InvalidDeleteOnNullSpecification(member);
1359
throw
Error
.MismatchedThisKeyOtherKey(member.Name, member.DeclaringType.Name);
Mapping\MappedMetaModel.cs (43)
47
throw
Error
.ProviderTypeNotFound(this.mapping.Provider);
82
throw
Error
.CouldNotFindTypeFromMapping(tableMapping.RowType.Name);
134
throw
Error
.MethodCannotBeFound(fmap.MethodName);
174
throw
Error
.ArgumentNull("rowType");
183
throw
Error
.ArgumentNull("type");
230
throw
Error
.UnableToResolveRootForType(type);
427
throw
Error
.ArgumentNull("typeMapping");
431
throw
Error
.NoDiscriminatorFound(type.Name);
435
throw
Error
.DiscriminatorClrTypeNotSupported(this.Discriminator.DeclaringType.Name, this.Discriminator.Name, this.Discriminator.Type);
443
throw
Error
.InheritanceHierarchyDoesNotDefineDefault(type);
463
throw
Error
.NonInheritanceClassHasDiscriminator(type);
472
throw
Error
.MemberMappedMoreThanOnce(mem.Member.Name);
490
throw
Error
.CouldNotFindRuntimeTypeForMapping(typeMap.Name);
502
throw
Error
.NoDiscriminatorFound(type.Name);
505
throw
Error
.AbstractClassAssignInheritanceDiscriminator(type.Type);
514
throw
Error
.InheritanceCodeUsedForMultipleTypes(keyValue);
518
throw
Error
.InheritanceTypeHasMultipleDiscriminators(type);
523
throw
Error
.InheritanceTypeHasMultipleDefaults(type);
604
throw (
Error
.PrimaryKeyInSubTypeNotSupported(this.type.Name, mm.Name));
704
throw
Error
.MappedMemberHadNoCorrespondingMemberInType(orphan.Value.MemberName, type.Name);
717
throw
Error
.TwoMembersMarkedAsPrimaryKeyAndDBGenerated(mm.Member, this.dbGeneratedIdentity.Member);
723
throw
Error
.IdentityClrTypeNotSupported(mm.DeclaringType, mm.Name, mm.Type);
727
throw
Error
.TwoMembersMarkedAsRowVersion(mm.Member, this.version.Member);
734
throw
Error
.TwoMembersMarkedAsInheritanceDiscriminator(mm.Member, this.discriminator.Member);
801
throw
Error
.CannotGetInheritanceDefaultFromNonInheritanceClass();
890
throw
Error
.ArgumentNull("mi");
896
throw
Error
.MappingOfInterfacesMemberIsNotSupported(mi.DeclaringType.Name, mi.Name);
898
throw
Error
.UnmappedClassMember(mi.DeclaringType.Name, mi.Name);
973
throw
Error
.BadStorageProperty(this.memberMap.StorageMemberName, mi.DeclaringType, mi.Name);
983
throw
Error
.IncorrectAutoSyncSpecification(mi.Name);
1037
throw
Error
.ArgumentNull("metaType");
1206
throw
Error
.UnhandledDeferredStorageType(accessor.Type);
1233
throw
Error
.MismatchedThisKeyOtherKey(thisMember.Name, thisMember.DeclaringType.Name);
1250
throw
Error
.UnexpectedNull("MetaDataMember");
1261
throw
Error
.InvalidDeleteOnNullSpecification(thisMember);
1347
throw
Error
.NoResultTypesDeclaredForFunction(method.Name);
1350
throw
Error
.TooManyResultTypesDeclaredForFunction(method.Name);
1361
throw
Error
.CouldNotFindElementTypeInModel(rtm.Name);
1380
throw
Error
.IncorrectNumberOfParametersMappedForMethod(this.map.MethodName);
1497
throw
Error
.BadKeyMember(names[i], keyFields, mtype.Name);
1501
throw
Error
.BadKeyMember(names[i], keyFields, mtype.Name);
1641
throw
Error
.ArgumentNull("mi");
1734
throw
Error
.ArgumentNull("metaType");
SqlClient\Common\InheritanceRules.cs (1)
56
throw
Error
.ArgumentOutOfRange("mi");
SqlClient\Common\SqlFactory.cs (5)
301
throw
Error
.ArgumentNull("typeOf");
443
throw
Error
.EmptyCaseNotSupported();
478
throw
Error
.ArgumentNull("value");
487
throw
Error
.ArgumentNull("clrType");
583
throw
Error
.ArgumentNull("member");
SqlClient\Common\SqlNode.cs (109)
240
throw
Error
.ArgumentNull("discriminator");
313
throw
Error
.ArgumentNull("value");
322
throw
Error
.ArgumentNull("value");
336
throw
Error
.ArgumentWrongType("value", "bool", value.ClrType);
350
throw
Error
.ArgumentWrongType("value", "bool", value.ClrType);
451
throw
Error
.ArgumentWrongType("value", this.projection.ClrType, value.ClrType);
479
throw
Error
.ArgumentNull("function");
506
throw
Error
.ArgumentNull("value");
508
throw
Error
.ArgumentWrongType("value", this.ClrType, value.Projection.ClrType);
530
throw
Error
.ArgumentNull("value");
532
throw
Error
.ArgumentWrongValue("value");
564
throw
Error
.ArgumentNull("value");
566
throw
Error
.UnexpectedNode(value.NodeType);
578
throw
Error
.ArgumentNull("alias");
609
throw
Error
.UnexpectedNode(node.NodeType);
625
throw
Error
.UnexpectedNode(node.NodeType);
652
throw
Error
.ArgumentNull("value");
661
throw
Error
.ArgumentNull("value");
716
throw
Error
.ArgumentNull("node");
718
throw
Error
.UnexpectedNode(node.NodeType);
728
throw
Error
.CouldNotGetClrType();
738
throw
Error
.CouldNotGetSqlType();
754
throw
Error
.ArgumentNull("liftedExpression");
762
throw
Error
.ArgumentNull("value");
795
throw
Error
.ArgumentNull("value");
797
throw
Error
.ArgumentWrongType("value", this.expression.ClrType, value.ClrType);
878
throw
Error
.ArgumentNull("orderByList");
917
throw
Error
.UnexpectedNode(nt);
927
throw
Error
.ArgumentNull("value");
972
throw
Error
.UnexpectedNode(nt);
983
throw
Error
.ArgumentNull("value");
992
throw
Error
.ArgumentNull("value");
1044
throw
Error
.ArgumentNull("value");
1062
throw
Error
.ArgumentNull("expr");
1064
throw
Error
.ArgumentNull("pattern");
1074
throw
Error
.ArgumentNull("value");
1076
throw
Error
.ArgumentWrongType("value", "string", value.ClrType);
1085
throw
Error
.ArgumentNull("value");
1087
throw
Error
.ArgumentWrongType("value", "string", value.ClrType);
1096
throw
Error
.ArgumentWrongType("value", "string", value.ClrType);
1109
throw
Error
.ArgumentNull("value");
1121
throw
Error
.ArgumentWrongType("value", this.matchExpression.ClrType, value.ClrType);
1130
throw
Error
.ArgumentNull("value");
1132
throw
Error
.ArgumentWrongType("value", this.valueExpression.ClrType, value.ClrType);
1155
throw
Error
.ArgumentNull("whens");
1158
throw
Error
.ArgumentOutOfRange("whens");
1170
throw
Error
.ArgumentNull("value");
1172
throw
Error
.ArgumentWrongType("value", this.@else.ClrType, value.ClrType);
1200
throw
Error
.ArgumentNull("whens");
1203
throw
Error
.ArgumentOutOfRange("whens");
1210
throw
Error
.ArgumentNull("value");
1212
throw
Error
.ArgumentWrongType("value", this.expression.ClrType, value.ClrType);
1244
throw
Error
.ArgumentNull("whens");
1247
throw
Error
.ArgumentOutOfRange("whens");
1254
throw
Error
.ArgumentNull("value");
1256
throw
Error
.ArgumentWrongType("value", this.expression.ClrType, value.ClrType);
1280
throw
Error
.ArgumentNull("value");
1289
throw
Error
.ArgumentWrongType("value", this.matchExpression.ClrType, value.ClrType);
1298
throw
Error
.ArgumentNull("value");
1300
throw
Error
.ArgumentWrongType("value", this.matchValue.ClrType, value.ClrType);
1324
throw
Error
.ArgumentNull("whens");
1327
throw
Error
.ArgumentOutOfRange("whens");
1336
throw
Error
.ArgumentNull("value");
1338
throw
Error
.ArgumentWrongType("value", this.discriminator.ClrType, value.ClrType);
1373
throw
Error
.ArgumentWrongType("value", this.match.ClrType, value.ClrType);
1409
throw
Error
.ArgumentNull("name");
1411
throw
Error
.ArgumentWrongValue("clrType");
1432
throw
Error
.ArgumentNull("name");
1461
throw
Error
.ArgumentNull("value");
1464
throw
Error
.MemberAccessIllegal(this.member, this.member.ReflectedType, value.ClrType);
1481
throw
Error
.ArgumentWrongValue("clrType");
1487
throw
Error
.ArgumentNull("sqlType");
1526
throw
Error
.ArgumentWrongType("value", this.ClrType, value.ClrType);
1529
throw
Error
.ColumnCannotReferToItself();
1605
throw
Error
.ArgumentNull("member");
1618
throw
Error
.ArgumentNull("value");
1630
if (key == null) throw
Error
.ArgumentNull("key");
1631
if (group == null) throw
Error
.ArgumentNull("group");
1640
throw
Error
.ArgumentNull("value");
1643
throw
Error
.ArgumentWrongType("value", this.key.ClrType, value.ClrType);
1652
throw
Error
.ArgumentNull("value");
1654
throw
Error
.ArgumentWrongType("value", this.group.ClrType, value.ClrType);
1672
throw
Error
.ArgumentNull("cons");
1735
throw
Error
.ArgumentNull("method");
1751
throw
Error
.ArgumentNull("value");
1753
throw
Error
.ArgumentWrongType("value", this.method.DeclaringType, value.ClrType);
1879
throw
Error
.UnexpectedNode(nt);
1888
throw
Error
.ArgumentNull("value");
1911
throw
Error
.ArgumentWrongType(value, this.query.ClrType, value.ClrType);
1944
throw
Error
.ArgumentWrongType(value, this.expression.ClrType, value.ClrType);
1953
throw
Error
.ArgumentNull("value");
1955
throw
Error
.ArgumentWrongType(value, typeof(int), value.ClrType);
1975
throw
Error
.ArgumentNull("value");
2003
throw
Error
.ArgumentNull("null");
2017
throw
Error
.ArgumentNull("null");
2019
throw
Error
.ArgumentWrongType("value", this.table.RowType, value.ClrType);
2047
throw
Error
.ArgumentNull("value");
2080
throw
Error
.ArgumentNull("value");
2082
throw
Error
.ArgumentWrongType("value", this.rightValue.ClrType, value.ClrType);
2091
throw
Error
.ArgumentNull("value");
2093
throw
Error
.ArgumentWrongType("value", this.leftValue.ClrType, value.ClrType);
2105
throw
Error
.ArgumentNull("expr");
2132
throw
Error
.ArgumentNull("value");
2141
throw
Error
.ArgumentNull("value");
2143
throw
Error
.ArgumentWrongType("value", this.ClrType, value.ClrType);
2216
throw
Error
.ArgumentNull("value");
2219
throw
Error
.ArgumentWrongType("value", this.ClrType, value.ClrType);
2258
throw
Error
.ArgumentNull("value");
2260
throw
Error
.ArgumentWrongType("value", this.ClrType, value.ClrType);
SqlClient\Common\SqlNodeTypeOperators.cs (5)
36
throw
Error
.UnexpectedNode(nodeType);
66
throw
Error
.UnexpectedNode(nodeType);
100
throw
Error
.UnexpectedNode(nodeType);
134
throw
Error
.UnexpectedNode(nodeType);
168
throw
Error
.UnexpectedNode(nodeType);
SqlClient\Common\SqlServer2KCompatibilityCheck.cs (1)
55
throw
Error
.ExpressionNotSupportedForSqlServerVersion(visitor.reasons);
SqlClient\Common\SqlVisitor.cs (3)
233
throw
Error
.UnexpectedNode(node);
265
throw
Error
.UnexpectedNode(expr.NodeType);
410
throw
Error
.UnexpectedNode(ss.NodeType);
SqlClient\Common\TypeSystem.cs (2)
141
throw
Error
.NoMethodInTypeMatchingArguments(typeof(Queryable));
151
throw
Error
.NoMethodInTypeMatchingArguments(type);
SqlClient\Query\Funcletizer.cs (3)
212
throw
Error
.UnhandledExpressionType(exp.NodeType);
214
throw
Error
.UnhandledExpressionType(exp.NodeType);
227
throw
Error
.UnhandledBindingType(binding.BindingType);
SqlClient\Query\MethodCallConverter.cs (1)
326
throw
Error
.IifReturnTypesMustBeEqual(mc.Arguments[1].ClrType.Name, mc.Arguments[2].ClrType.Name);
SqlClient\Query\QueryConverter.cs (61)
69
throw
Error
.ArgumentNull("services");
72
throw
Error
.ArgumentNull("sql");
75
throw
Error
.ArgumentNull("translator");
78
throw
Error
.ArgumentNull("typeProvider");
110
throw
Error
.InvalidMethodExecution(((SqlMethodCall)retNode).Method.Name);
166
throw
Error
.UnrecognizedExpressionNode(node.NodeType);
222
throw
Error
.UnsupportedNodeType(node.NodeType);
228
throw
Error
.UnrecognizedExpressionNode(node.NodeType);
297
throw
Error
.IQueryableCannotReturnSelfReferencingConstantExpression();
299
throw
Error
.CapturedValuesCannotBeSequences();
305
throw
Error
.ConstructedArraysNotSupported();
308
throw
Error
.ParametersCannotBeSequences();
372
throw
Error
.BadParameterType(p.Type);
409
throw
Error
.UnrecognizedExpressionNode(result);
454
throw
Error
.BadProjectionInSelect();
623
throw
Error
.TypeBinaryOperatorNotRecognized();
647
throw
Error
.DidNotExpectAs(a);
682
throw
Error
.UnrecognizedExpressionNode(b.NodeType);
736
throw
Error
.UnhandledExpressionType(cm);
786
throw
Error
.WrongDataContext();
832
throw
Error
.CannotMaterializeEntityType(qn.Type);
852
throw
Error
.CannotMaterializeEntityType(init.Type);
881
throw
Error
.UnhandledBindingType(init.Bindings[i].BindingType);
914
throw
Error
.CouldNotConvertToPropertyOrField(mi);
934
throw
Error
.ArgumentOutOfRange("takeCount");
946
throw
Error
.ArgumentOutOfRange("skipCount");
1048
throw
Error
.ArgumentOutOfRange("skipCount");
1097
throw
Error
.SkipNotSupportedForSequenceTypes();
1121
throw
Error
.SkipRequiresSingleTableQueryWithPKs();
1154
throw
Error
.ParameterNotInScope(p.Name);
1180
throw
Error
.SprocsCannotBeComposed();
1205
throw
Error
.InvalidReturnFromSproc(returnType);
1372
throw
Error
.BinaryOperatorNotRecognized(b.NodeType);
1428
throw
Error
.IntersectNotSupportedForHierarchicalTypes();
1452
throw
Error
.ExceptNotSupportedForHierarchicalTypes();
1486
throw
Error
.GroupingNotSupportedAsOrderCriterion();
1489
throw
Error
.TypeCannotBeOrdered(expression.Body.Type);
1509
throw
Error
.GroupingNotSupportedAsOrderCriterion();
1512
throw
Error
.TypeCannotBeOrdered(expression.Body.Type);
1656
throw
Error
.CannotAggregateType(lambda.Body.Type);
1663
throw
Error
.NonCountAggregateFunctionsAreNotValidOnProjections(aggType);
1852
throw
Error
.WrongDataContext();
1895
throw
Error
.MethodFormHasNoSupportConversionToSql(mc.Method.Name, mc.Method);
1952
throw
Error
.NonConstantExpressionsNotSupportedFor(operation);
2310
throw
Error
.QueryOperatorOverloadNotSupported(mc.Method.Name);
2312
throw
Error
.QueryOperatorNotSupported(mc.Method.Name);
2315
throw
Error
.InvalidSequenceOperatorCall(declType);
2364
throw
Error
.QueryOperatorOverloadNotSupported(mc.Method.Name);
2366
throw
Error
.QueryOperatorNotSupported(mc.Method.Name);
2368
throw
Error
.InvalidSequenceOperatorCall(mc.Method.Name);
2391
throw
Error
.ArgumentNull("item");
2404
throw
Error
.InsertItemMustBeConstant();
2407
throw
Error
.ArgumentNull("item");
2524
throw
Error
.InvalidDbGeneratedType(sqlType.ToQueryString());
2558
throw
Error
.ArgumentNull("item");
2587
throw
Error
.UpdateItemMustBeConstant();
2590
throw
Error
.ArgumentNull("item");
2637
throw
Error
.ArgumentNull("item");
2694
throw
Error
.UnrecognizedExpressionNode(list.NodeType);
2701
throw
Error
.UnrecognizedExpressionNode(list.NodeType);
2769
throw
Error
.SkipRequiresSingleTableQueryWithPKs();
SqlClient\Query\SqlBinder.cs (14)
357
throw
Error
.ComparisonNotSupportedForType(bo.Left.ClrType);
360
throw
Error
.ComparisonNotSupportedForType(bo.Right.ClrType);
396
throw
Error
.UnexpectedNode(typeExpression.NodeType);
641
throw
Error
.DidNotExpectTypeBinding();
719
throw
Error
.ExpectedClrTypesToAgree(newClrType, newValue.ClrType);
740
throw
Error
.ExpectedClrTypesToAgree(newClrType, newValue.ClrType);
850
throw
Error
.MemberNotPartOfProjection(m.Member.DeclaringType, m.Member.Name);
907
throw
Error
.UnexpectedNode(result.NodeType);
999
throw
Error
.UnmappedDataMember(mi, mi.DeclaringType, type);
1243
throw
Error
.DidNotExpectTypeChange(when.Value.ClrType, sc.ClrType);
1266
throw
Error
.UnexpectedNode(node.NodeType);
1303
throw
Error
.DidNotExpectTypeChange(cc.ClrType, fetchedValue.ClrType);
1463
throw
Error
.SequenceOperatorsNotSupportedForType(expr.ClrType);
1467
throw
Error
.QueryOnLocalCollectionNotSupported();
SqlClient\Query\SqlCaseSimplifier.cs (1)
74
throw
Error
.ArgumentOutOfRange("nt");
SqlClient\Query\SqlDeflator.cs (1)
281
throw
Error
.InvalidReferenceToRemovedAliasDuringDeflation();
SqlClient\Query\SqlExpander.cs (10)
70
throw
Error
.CouldNotHandleAliasRef(node.NodeType);
203
throw
Error
.UnionIncompatibleConstruction();
206
throw
Error
.UnionDifferentMembers();
209
throw
Error
.UnionDifferentMemberOrder();
239
throw
Error
.UnionIncompatibleConstruction();
244
throw
Error
.UnionIncompatibleConstruction();
291
throw
Error
.UnionIncompatibleConstruction();
306
throw
Error
.UnionIncompatibleConstruction();
320
throw
Error
.UnionIncompatibleConstruction();
330
throw
Error
.UnionWithHierarchy();
SqlClient\Query\SqlFlattener.cs (5)
177
throw
Error
.InvalidGroupByExpressionType(gex.ClrType.Name);
232
throw
Error
.InvalidGroupByExpressionType(expr.SqlType.ToQueryString());
234
throw
Error
.InvalidGroupByExpression();
245
throw
Error
.InvalidOrderByExpression(obex.Expression.SqlType.ToQueryString());
248
throw
Error
.InvalidOrderByExpression(obex.Expression.ClrType.Name);
SqlClient\Query\SqlFormatter.cs (25)
115
throw
Error
.InvalidFormatNode("NOP");
177
throw
Error
.InvalidFormatNode(uo.NodeType);
308
throw
Error
.InvalidFormatNode("Column");
358
throw
Error
.InvalidFormatNode("SIMPLE");
368
throw
Error
.InvalidFormatNode("Shared");
378
throw
Error
.InvalidFormatNode("SharedRef");
439
throw
Error
.InvalidFormatNode("Value");
449
throw
Error
.InvalidFormatNode("ClientParameter");
483
throw
Error
.InvalidFormatNode("Element");
498
throw
Error
.InvalidFormatNode("Multiset");
700
throw
Error
.InvalidFormatNode("New");
731
throw
Error
.InvalidFormatNode("ClientArray");
929
throw
Error
.InvalidFormatNode(joinType);
949
throw
Error
.InvalidFormatNode("ClientQuery");
964
throw
Error
.InvalidFormatNode("JoinedCollection");
1145
throw
Error
.InvalidFormatNode("ClientCase");
1178
throw
Error
.InvalidFormatNode("TypeCase");
1294
throw
Error
.ValueHasNoLiteralInSql(value);
1353
throw
Error
.InvalidFormatNode(nt);
1359
throw
Error
.InvalidFormatNode("Link");
1377
throw
Error
.InvalidFormatNode("MemberAssign");
1382
throw
Error
.InvalidFormatNode("MethodCall");
1409
throw
Error
.InvalidFormatNode("OptionalValue");
1415
throw
Error
.InvalidFormatNode("UserRow");
1422
throw
Error
.InvalidFormatNode("Grouping");
SqlClient\Query\SqlIdentifier.cs (6)
26
throw
Error
.ArgumentNull("s");
45
throw
Error
.ArgumentNull("s");
96
throw
Error
.ArgumentNull("s");
112
throw
Error
.ArgumentNull("s");
117
throw
Error
.ArgumentWrongValue("s");
136
throw
Error
.ArgumentWrongValue("s");
SqlClient\Query\SqlMethodCallConverter.cs (31)
724
throw
Error
.UnsupportedStringConstructorForm();
778
throw
Error
.UnsupportedDateTimeConstructorForm();
845
throw
Error
.UnsupportedDateTimeOffsetConstructorForm();
857
throw
Error
.UnsupportedDateTimeOffsetConstructorForm();
895
throw
Error
.UnsupportedTimeSpanConstructorForm();
961
throw
Error
.ToStringOnlySupportedForPrimitiveTypes();
990
return
Error
.MethodFormHasNoSupportConversionToSql(mc.Method.Name, mc.Method);
993
return
Error
.MethodHasNoSupportConversionToSql(mc.Method);
1227
throw
Error
.ConvertToDateTimeOnlyForDateTimeOrString();
1527
throw
Error
.NonConstantExpressionsNotSupportedFor("String.Contains");
1561
throw
Error
.NonConstantExpressionsNotSupportedFor("String.StartsWith");
1595
throw
Error
.NonConstantExpressionsNotSupportedFor("String.EndsWith");
1608
throw
Error
.ArgumentNull("value");
1623
throw
Error
.ArgumentNull("value");
1626
throw
Error
.IndexOfWithStringComparisonArgNotSupported();
1644
throw
Error
.ArgumentNull("value");
1647
throw
Error
.IndexOfWithStringComparisonArgNotSupported();
1682
throw
Error
.ArgumentNull("value");
1710
throw
Error
.LastIndexOfWithStringComparisonArgNotSupported();
1715
throw
Error
.ArgumentNull("value");
1746
throw
Error
.LastIndexOfWithStringComparisonArgNotSupported();
1751
throw
Error
.ArgumentNull("value");
1782
throw
Error
.ArgumentNull("value");
1897
throw
Error
.ArgumentNull("old");
1900
throw
Error
.ArgumentNull("new");
1965
throw
Error
.ArgumentNull("value");
2080
throw
Error
.MathRoundNotSupported();
2093
throw
Error
.NonConstantExpressionsNotSupportedForRounding();
2333
throw
Error
.MemberCannotBeTranslated(member.DeclaringType, member.Name);
2336
throw
Error
.MemberCannotBeTranslated(member.DeclaringType, member.Name);
2494
throw
Error
.NonConstantExpressionsNotSupportedFor("LIKE");
SqlClient\Query\SqlResolver.cs (6)
37
throw
Error
.ColumnReferencedIsNotInScope(GetColumnName(cref.Column));
191
throw
Error
.ColumnIsDefinedInMultiplePlaces(GetColumnName(this.match));
204
throw
Error
.ColumnIsDefinedInMultiplePlaces(GetColumnName(this.match));
235
throw
Error
.ColumnIsDefinedInMultiplePlaces(GetColumnName(this.match));
282
throw
Error
.ColumnIsNotAccessibleThroughDistinct(GetColumnName(this.match));
289
throw
Error
.ColumnIsNotAccessibleThroughGroupBy(GetColumnName(this.match));
SqlClient\Query\SqlSupersetValidator.cs (10)
42
throw
Error
.ColumnClrTypeDoesNotAgreeWithExpressionsClrType();
61
throw
Error
.ClassLiteralsNotAllowed(value.ClrType);
81
throw
Error
.ExpectedPredicateFoundBit();
85
throw
Error
.ExpectedBitFoundPredicate();
96
throw
Error
.MethodHasNoSupportConversionToSql(mc.Method.Name);
119
throw
Error
.UnexpectedFloatingColumn();
125
throw
Error
.UnexpectedNode(aref.NodeType);
131
throw
Error
.UnexpectedSharedExpression();
134
throw
Error
.UnexpectedSharedExpressionReference();
151
throw
Error
.UnhandledStringTypeComparison();
SqlClient\Query\SqlTypeConverter.cs (3)
83
throw
Error
.ConvertToCharFromBoolNotSupported();
97
throw
Error
.UnsafeStringConversion(oldSqlType.ToQueryString(), newSqlType.ToQueryString());
115
throw
Error
.UnsafeStringConversion(oldSqlType.ToQueryString(), newSqlType.ToQueryString());
SqlClient\Query\Translator.cs (11)
31
throw
Error
.ArgumentWrongValue("rowType");
70
throw
Error
.EmptyCaseNotSupported();
113
throw
Error
.MappedTypeMustHaveDefaultConstructor(rowType.Type);
150
throw
Error
.ArgumentNull("association");
152
throw
Error
.ArgumentNull("keyValues");
197
throw
Error
.ArgumentNull("parameter");
199
throw
Error
.ArgumentNull("association");
201
throw
Error
.ArgumentNull("otherSouce");
203
throw
Error
.ArgumentNull("parameterReplacement");
320
throw
Error
.CannotCompareItemsAssociatedWithDifferentTable();
432
throw
Error
.UnexpectedNode(op);
SqlClient\Reader\ObjectReaderCompiler.cs (12)
88
return
Error
.CannotAssignNull(type);
770
throw
Error
.CouldNotTranslateExpressionForReading(node.SourceExpression);
865
throw
Error
.CannotMaterializeList(ca.ClrType);
1086
throw
Error
.DeferredMemberWrongType();
1090
throw
Error
.DeferredMemberWrongType();
1109
throw
Error
.CannotAssignToMember(m.Name);
1297
throw
Error
.CouldNotConvert(argType, eType);
1416
throw
Error
.ExpressionNotDeferredQuerySource();
1659
throw
Error
.CannotConvertToEntityRef(actualType);
1758
throw
Error
.GeneralCollectionMaterializationNotSupported();
2614
throw
Error
.RequiredColumnDoesNotExist(namedColumns[i].Name);
2994
throw
Error
.NotSupported();
SqlClient\SqlBuilder.cs (3)
84
throw
Error
.CreateDatabaseFailedBecauseOfClassWithNoMembers(table.RowType.Type);
232
throw
Error
.CouldNotDetermineDbGeneratedSqlType(type);
290
throw
Error
.CouldNotDetermineSqlType(type);
SqlClient\SqlConnectionManager.cs (3)
40
throw
Error
.ArgumentNull("user");
114
throw
Error
.TransactionDoesNotMatchConnection();
124
throw
Error
.ArgumentNull("user");
SqlClient\SqlMethods.cs (14)
568
throw
Error
.SqlMethodOnlyForSql(MethodInfo.GetCurrentMethod());
583
throw
Error
.SqlMethodOnlyForSql(MethodInfo.GetCurrentMethod());
596
throw
Error
.SqlMethodOnlyForSql(MethodInfo.GetCurrentMethod());
607
throw
Error
.SqlMethodOnlyForSql(MethodInfo.GetCurrentMethod());
618
throw
Error
.SqlMethodOnlyForSql(MethodInfo.GetCurrentMethod());
631
throw
Error
.ArgumentNull("text");
638
throw
Error
.ArgumentNull("text");
651
throw
Error
.ArgumentNull("text");
658
throw
Error
.ArgumentNull("text");
671
throw
Error
.ArgumentNull("text");
678
throw
Error
.ArgumentNull("text");
702
throw
Error
.ArgumentNull("pattern");
765
throw
Error
.VbLikeDoesNotSupportMultipleCharacterRanges();
838
throw
Error
.VbLikeUnclosedBracket();
SqlClient\SqlProvider.cs (25)
326
throw
Error
.ContextNotInitialized();
331
throw
Error
.DatabaseDeleteThroughContext();
338
throw
Error
.ArgumentNull("dataServices");
355
throw
Error
.ProviderNotInstalled(this.dbName, SqlCeProviderInvariantName);
378
throw
Error
.InvalidConnectionArgument("connection");
473
throw
Error
.ProviderCannotBeUsedAfterDispose();
560
throw
Error
.CreateDatabaseFailedBecauseSqlCEDatabaseAlreadyExists(this.dbName);
584
throw
Error
.CreateDatabaseFailedBecauseSqlCEDatabaseAlreadyExists(this.dbName);
607
throw
Error
.CouldNotDetermineCatalogName();
617
throw
Error
.CreateDatabaseFailedBecauseOfContextWithNoTables(this.services.Model.DatabaseName);
806
throw
Error
.ArgumentNull("query");
854
throw
Error
.ArgumentNull("query");
1218
throw
Error
.ArgumentNull("elementType");
1221
throw
Error
.ArgumentNull("reader");
1235
throw
Error
.ArgumentNull("reader");
1246
throw
Error
.ArgumentNull("query");
1275
throw
Error
.ArgumentNull("query");
1663
throw
Error
.ArgumentNull("rowType");
1702
throw
Error
.ArgumentNull("provider");
1707
throw
Error
.ArgumentTypeMismatch("provider");
1712
throw
Error
.CompiledQueryAgainstMultipleShapesNotSupported();
1751
throw
Error
.ArgumentNull("arguments");
1756
throw
Error
.ArgumentTypeMismatch("provider");
1844
throw
Error
.ArgumentOutOfRange("parameterIndex");
1900
throw
Error
.CannotEnumerateResultsMoreThanOnce();
SqlClient\SqlTypeSystemProvider.cs (10)
130
throw
Error
.UnexpectedTypeCode(SqlDbType.Udt);
736
throw
Error
.UnexpectedTypeCode(type);
798
throw
Error
.UnexpectedTypeCode(this);
811
throw
Error
.ArgumentOutOfRange("index");
879
throw
Error
.InvalidProviderType(typeName);
974
throw
Error
.BadParameterType(sqlType.GetClosestRuntimeType());
1084
throw
Error
.UnexpectedNode(unaryOp);
1146
throw
Error
.UnexpectedNode(binaryOp);
1461
throw
Error
.UnexpectedTypeCode(tc);
1581
throw
Error
.UnexpectedTypeCode(tc);