OleDbFactory 类

定义

表示一组方法,这些方法用于创建 OLEDB 提供程序实现数据源类的实例。Represents a set of methods for creating instances of the OLEDB provider's implementation of the data source classes.

public ref class OleDbFactory sealed : System::Data::Common::DbProviderFactory
public sealed class OleDbFactory : System.Data.Common.DbProviderFactory
type OleDbFactory = class
    inherit DbProviderFactory
Public NotInheritable Class OleDbFactory
Inherits DbProviderFactory
继承
OleDbFactory

字段

Instance

获取 OleDbFactory 的实例。Gets an instance of the OleDbFactory. 它可用于检索强类型的数据对象。This can be used to retrieve strongly-typed data objects.

属性

CanCreateCommandBuilder

获取一个值,该值指示此 DbProviderFactory 是否支持 DbCommandBuilder 类。Gets a value that indicates whether this DbProviderFactory instance supports the DbCommandBuilder class.

(继承自 DbProviderFactory)
CanCreateDataAdapter

获取一个值,该值指示此 DbProviderFactory 是否支持 DbDataAdapter 类。Gets a value that indicates whether this DbProviderFactory instance supports the DbDataAdapter class.

(继承自 DbProviderFactory)
CanCreateDataSourceEnumerator

获取一个值,该值指示此 DbProviderFactory 是否支持 DbDataSourceEnumerator 类。Gets a value that indicates whether this DbProviderFactory instance supports the DbDataSourceEnumerator class.

(继承自 DbProviderFactory)

方法

CreateCommand()

返回强类型 DbCommand 实例。Returns a strongly-typed DbCommand instance.

CreateCommandBuilder()

返回强类型 DbCommandBuilder 实例。Returns a strongly-typed DbCommandBuilder instance.

CreateConnection()

返回强类型 DbConnection 实例。Returns a strongly-typed DbConnection instance.

CreateConnectionStringBuilder()

返回强类型 DbConnectionStringBuilder 实例。Returns a strongly-typed DbConnectionStringBuilder instance.

CreateDataAdapter()

返回强类型 DbDataAdapter 实例。Returns a strongly-typed DbDataAdapter instance.

CreateDataSourceEnumerator()

返回实现 DbDataSourceEnumerator 类的提供程序类的一个新实例。Returns a new instance of the provider's class that implements the DbDataSourceEnumerator class.

(继承自 DbProviderFactory)
CreateParameter()

返回强类型 DbParameter 实例。Returns a strongly-typed DbParameter instance.

CreatePermission(PermissionState)

返回强类型 CodeAccessPermission 实例。Returns a strongly-typed CodeAccessPermission instance.

CreatePermission(PermissionState)

返回实现 CodeAccessPermission 类的提供程序版本的提供程序类的一个新实例。Returns a new instance of the provider's class that implements the provider's version of the CodeAccessPermission class.

(继承自 DbProviderFactory)
Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于