Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
DbProviderFactory Class
Definition
- Namespace:
- System.Data.Common
- Assembly:
- System.Data.Common.dll
- Assemblies:
- netstandard.dll, System.Data.Common.dll
- Assembly:
- System.Data.dll
- Assembly:
- netstandard.dll
- Source:
- DbProviderFactory.cs
- Source:
- DbProviderFactory.cs
- Source:
- DbProviderFactory.cs
- Source:
- DbProviderFactory.cs
- Source:
- DbProviderFactory.cs
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a set of methods for creating instances of a provider's implementation of the data source classes.
public ref class DbProviderFactory abstract
public abstract class DbProviderFactory
[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicFields)]
public abstract class DbProviderFactory
type DbProviderFactory = class
[<System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicFields)>]
type DbProviderFactory = class
Public MustInherit Class DbProviderFactory
- Inheritance
-
DbProviderFactory
- Derived
- Attributes
Constructors
| Name | Description |
|---|---|
| DbProviderFactory() |
Initializes a new instance of the DbProviderFactory class. |
Properties
| Name | Description |
|---|---|
| CanCreateBatch |
Gets a value that indicates whether this DbProviderFactory instance supports the DbBatch class. |
| CanCreateCommandBuilder |
Gets a value that indicates whether this DbProviderFactory instance supports the DbCommandBuilder class. |
| CanCreateDataAdapter |
Gets a value that indicates whether this DbProviderFactory instance supports the DbDataAdapter class. |
| CanCreateDataSourceEnumerator |
Gets a value that indicates whether this DbProviderFactory instance supports the DbDataSourceEnumerator class. |
Methods
| Name | Description |
|---|---|
| CreateBatch() |
Returns a new instance of the provider's class that implements the DbBatch class. |
| CreateBatchCommand() |
Returns a new instance of the provider's class that implements the DbBatchCommand class. |
| CreateCommand() |
Returns a new instance of the provider's class that implements the DbCommand class. |
| CreateCommandBuilder() |
Returns a new instance of the provider's class that implements the DbCommandBuilder class. |
| CreateConnection() |
Returns a new instance of the provider's class that implements the DbConnection class. |
| CreateConnectionStringBuilder() |
Returns a new instance of the provider's class that implements the DbConnectionStringBuilder class. |
| CreateDataAdapter() |
Returns a new instance of the provider's class that implements the DbDataAdapter class. |
| CreateDataSource(String) |
Returns a new instance of the provider's class that implements the DbDataSource class, representing the database for the given connection string and ready to hand out connections to it. |
| CreateDataSourceEnumerator() |
Returns a new instance of the provider's class that implements the DbDataSourceEnumerator class. |
| CreateParameter() |
Returns a new instance of the provider's class that implements the DbParameter class. |
| CreatePermission(PermissionState) |
Returns a new instance of the provider's class that implements the provider's version of the CodeAccessPermission class. |
| Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
| GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
| GetType() |
Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
| ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Applies to
See also
Feedback
Was this page helpful?
