16 references to Argument
System.Data.Common (16)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (5)
281
return
Argument
(SR.Format(SR.ADP_ConnectionStringSyntax, index));
285
return
Argument
(SR.Format(SR.ADP_KeywordNotSupported, keyword));
309
return
Argument
(SR.Format(SR.ADP_CollectionRemoveInvalidObject, itemType.Name, collection.GetType().Name));
395
return
Argument
(SR.Format(SR.ADP_CollectionIsNotParent, parameterType.Name, collection.GetType().Name));
399
return
Argument
(SR.Format(SR.ADP_CollectionIsNotParent, parameterType.Name, collection.GetType().Name));
System\Data\Common\AdapterUtil.Common.cs (6)
52
throw
Argument
(SR.Format(SR.ADP_EmptyString, parameterName));
60
throw
Argument
(SR.Format(SR.ADP_EmptyArray, parameterName));
280
return
Argument
(SR.Format(SR.SQL_WrongType, got, expected));
288
return
Argument
(SR.Format(SR.ADP_CollectionUniqueValue, itemType.Name, propertyName, propertyValue));
513
return
Argument
(SR.Format(SR.ADP_UnwantedStatementType, statementType.ToString()));
639
return
Argument
(SR.Format(SR.ADP_UpdateMismatchRowTable, i.ToString(CultureInfo.InvariantCulture)));
System\Data\Common\DbProviderFactories.cs (5)
63
throw ADP.
Argument
(SR.ADP_DbProviderFactories_NoAssemblyQualifiedName);
69
throw ADP.
Argument
(SR.ADP_DbProviderFactories_NoAssemblyQualifiedName);
154
return throwOnError ? throw ADP.
Argument
(SR.Format(SR.ADP_DbProviderFactories_InvariantNameNotFound, providerInvariantName)) : (DbProviderFactory?)null;
173
throw ADP.
Argument
(SR.Format(SR.ADP_DbProviderFactories_NotAFactoryType, providerFactoryClass.FullName));
199
throw ADP.
Argument
(SR.Format(SR.ADP_DbProviderFactories_FactoryNotLoadable, assemblyQualifiedName));