System.Data.Odbc Namespace

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

OdbcCommand

表示要对数据源执行的 SQL 语句或存储过程。Represents an SQL statement or stored procedure to execute against a data source. 此类不能被继承。This class cannot be inherited.

OdbcCommandBuilder

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

OdbcConnection

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

OdbcConnectionStringBuilder

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

OdbcDataAdapter

表示数据命令集和到数据源的连接,它们用于填充 DataSet 以及更新该数据源。Represents a set of data commands and a connection to a data source that are used to fill the DataSet and update the data source. 此类不能被继承。This class cannot be inherited.

OdbcDataReader

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

OdbcError

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

OdbcErrorCollection

收集 OdbcDataAdapter 生成的所有错误。Collects all errors generated by the OdbcDataAdapter. 此类不能被继承。This class cannot be inherited.

OdbcException

ODBC 数据源返回警告或错误时生成的异常。The exception that is generated when a warning or error is returned by an ODBC data source. 此类不能被继承。This class cannot be inherited.

OdbcFactory

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

OdbcInfoMessageEventArgs

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

OdbcMetaDataCollectionNames

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

OdbcMetaDataColumnNames

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

OdbcParameter

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

OdbcParameterCollection

表示与 OdbcCommand 相关的参数的集合以及各个参数到 DataSet 中列的映射。Represents a collection of parameters relevant to an OdbcCommand and their respective mappings to columns in a DataSet. 此类不能被继承。This class cannot be inherited.

OdbcPermission

启用用于 ODBC 的 .NET Framework 数据提供程序,以帮助确保用户具有足够的安全级别来访问 ODBC 数据源。Enables the .NET Framework Data Provider for ODBC to help make sure that a user has a security level sufficient to access an ODBC data source. 此类不能被继承。This class cannot be inherited.

OdbcPermissionAttribute

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

OdbcRowUpdatedEventArgs

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

OdbcRowUpdatingEventArgs

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

OdbcTransaction

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

枚举

OdbcType

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

委托

OdbcInfoMessageEventHandler

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

OdbcRowUpdatedEventHandler

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

OdbcRowUpdatingEventHandler

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

注解

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

有关如何使用此命名空间的详细信息,请参阅OdbcDataReaderOdbcCommand,和OdbcConnection类。For more information about how to use this namespace, see the OdbcDataReader, OdbcCommand, and OdbcConnection classes.