System.Data.OleDb 命名空间

System.Data.OleDb 命名空间为 OLE DB .NET Framework数据提供程序。 The System.Data.OleDb namespace is the.NET Framework Data Provider for OLE DB.


表示要对数据源执行的 SQL 语句或存储过程。Represents an SQL statement or stored procedure to execute against a data source.


自动生成用于协调对 DataSet 的更改与关联数据库的单表命令。Automatically generates single-table commands that are used to reconcile changes made to a DataSet with the associated database. 此类不能被继承。This class cannot be inherited.


表示到数据源的连接是打开的。Represents an open connection to a data source.


为创建和管理由 OleDbConnection 类使用的连接字符串的内容提供了一种简单方法。Provides a simple way to create and manage the contents of connection strings used by the OleDbConnection class.


表示用于填充 DataSet 和更新数据源的一组数据命令和一个数据库连接。Represents a set of data commands and a database connection that are used to fill the DataSet and update the data source.


提供从数据源读取数据行的只进流的方法。Provides a way of reading a forward-only stream of data rows from a data source. 此类不能被继承。This class cannot be inherited.


提供用于枚举本地网络中所有可用 OLE DB 提供程序的机制。Provides a mechanism for enumerating all available OLE DB providers within the local network.


收集与数据源返回的警告或错误有关的信息。Collects information relevant to a warning or error returned by the data source.


收集 OLE DB .NET Framework 数据提供程序生成的所有错误。Collects all errors generated by the .NET Framework Data Provider for OLE DB. 此类不能被继承。This class cannot be inherited.


在基础提供程序返回 OLE DB 数据源的警告或错误时引发的异常。The exception that is thrown when the underlying provider returns a warning or error for an OLE DB data source. 此类不能被继承。This class cannot be inherited.


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


InfoMessage 事件提供数据。Provides data for the InfoMessage event. 此类不能被继承。This class cannot be inherited.


提供一个常数列表,该列表与 GetSchema 方法一起使用以检索元数据集合。Provides a list of constants for use with the GetSchema method to retrieve metadata collections.


提供静态值,这些值用于 OleDbMetaDataCollectionNames 中包含的 DataTable 对象的列名称。Provides static values that are used for the column names in the OleDbMetaDataCollectionNames objects contained in the DataTable. DataTable 由 GetSchema 方法创建。The DataTable is created by the GetSchema method.


表示 OleDbCommand 的参数,还可以是参数到 DataSet 列的映射。Represents a parameter to an OleDbCommand and optionally its mapping to a DataSet column. 此类不能被继承。This class cannot be inherited.


表示与 OleDbCommand 相关的参数集合及其各自到 DataSet 中列的映射。Represents a collection of parameters relevant to an OleDbCommand as well as their respective mappings to columns in a DataSet.


启用用于 OLE DB 的 .NET Framework 数据提供程序,以帮助确保用户具有足够的安全级别来访问 OLE DB 数据源。Enables the .NET Framework Data Provider for OLE DB to help make sure that a user has a security level sufficient to access an OLE DB data source.


将某安全操作与自定义安全特性相关联。Associates a security action with a custom security attribute.


RowUpdated 事件提供数据。Provides data for the RowUpdated event.


RowUpdating 事件提供数据。Provides data for the RowUpdating event.


返回由 GetOleDbSchemaTable(Guid, Object[]) 方法指定的架构表类型。Returns the type of schema table specified by the GetOleDbSchemaTable(Guid, Object[]) method.


表示要在数据源进行的 SQL 事务。Represents an SQL transaction to be made at a data source. 此类不能被继承。This class cannot be inherited.



返回有关文本命令、数据值和数据库对象中使用的文本的信息。Returns information about literals used in text commands, data values, and database objects.


指定字段的数据类型、属性,以便在 OleDbParameter 中使用。Specifies the data type of a field, a property, for use in an OleDbParameter.



表示将要处理 OleDbConnectionInfoMessage 事件的方法。Represents the method that will handle the InfoMessage event of an OleDbConnection.


表示将要处理 OleDbDataAdapterRowUpdated 事件的方法。Represents the method that will handle the RowUpdated event of an OleDbDataAdapter.


表示将要处理 OleDbDataAdapterRowUpdating 事件的方法。Represents the method that will handle the RowUpdating event of an OleDbDataAdapter.


用于 OLE DB 的 The.NET Framework 数据提供程序描述用于访问托管空间中 OLE DB 数据源的类的集合。The.NET Framework Data Provider for OLE DB describes a collection of classes used to access an OLE DB data source in the managed space. 使用 OleDbDataAdapter ,你可以填充 DataSet 可用于查询和更新数据源的内存驻留。Using the OleDbDataAdapter, you can fill a memory-resident DataSet that you can use to query and update the data source.

有关如何使用此命名空间的信息,请参阅 OleDbDataAdapterOleDbDataReaderOleDbCommandOleDbConnection 类。For information about how to use this namespace, see the OleDbDataAdapter, OleDbDataReader, OleDbCommand, and OleDbConnection classes.