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