Upraviť

Zdieľať cez


DbProviderFactory Class

Definition

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
type DbProviderFactory = class
Public MustInherit Class DbProviderFactory
Inheritance
DbProviderFactory
Derived

Constructors

DbProviderFactory()

Initializes a new instance of the DbProviderFactory class.

Properties

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

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