DbProviderServices 类

定义

重要

此 API 不符合 CLS。

用于生成命令定义的工厂;用该对象的类型作为程序提供工厂中的 IServiceProvider.GetService 方法参数;The factory for building command definitions; use the type of this object as the argument to the IServiceProvider.GetService method on the provider factory;

public ref class DbProviderServices abstract
public abstract class DbProviderServices
[System.CLSCompliant(false)]
public abstract class DbProviderServices
type DbProviderServices = class
[<System.CLSCompliant(false)>]
type DbProviderServices = class
Public MustInherit Class DbProviderServices
继承
DbProviderServices
派生
属性

构造函数

DbProviderServices()

初始化 DbProviderServices 类的新实例。Initializes a new instance of the DbProviderServices class.

方法

CreateCommandDefinition(DbCommand)

创建使用指定命令的命令定义。Creates a command definition that uses a specified command.

CreateCommandDefinition(DbCommandTree)

从命令树创建命令定义。Creates command definition from command tree.

CreateCommandDefinition(DbProviderManifest, DbCommandTree)

从指定的清单和命令树创建命令定义。Creates command definition from specified manifest and command tree.

CreateDatabase(DbConnection, Nullable<Int32>, StoreItemCollection)

创建由连接指示的数据库和架构对象。Creates a database indicated by connection and creates schema objects.

CreateDatabaseScript(String, StoreItemCollection)

基于 StoreItemCollection 参数的内容并针对与提供程序清单标记相对应的数据库版本生成数据定义语言(创建架构对象(表、主键、外键)的 DDL 脚本)。Generates a data definition language (DDL script that creates schema objects (tables, primary keys, foreign keys) based on the contents of the StoreItemCollection parameter and targeted for the version of the database corresponding to the provider manifest token.

CreateDbCommandDefinition(DbProviderManifest, DbCommandTree)

为指定的提供程序清单和命令目录树创建命令定义对象。Creates a command definition object for the specified provider manifest and command tree.

DatabaseExists(DbConnection, Nullable<Int32>, StoreItemCollection)

返回一个值,该值指示服务器上是否存在给定数据库以及是否创建了 storeItemCollection 中包含的架构对象。Returns a value indicating whether a given database exists on the server and whether schema objects contained in the storeItemCollection have been created.

DbCreateDatabase(DbConnection, Nullable<Int32>, StoreItemCollection)

创建一个由连接指示的数据库并且基于 StoreItemCollection 的内容创建架构对象(表、主键、外键)。Creates a database indicated by connection and creates schema objects (tables, primary keys, foreign keys) based on the contents of a StoreItemCollection.

DbCreateDatabaseScript(String, StoreItemCollection)

基于 StoreItemCollection 参数的内容并针对与提供程序清单标记相对应的数据库版本生成数据定义语言(创建架构对象(表、主键、外键)的 DDL 脚本)。Generates a data definition language (DDL script that creates schema objects (tables, primary keys, foreign keys) based on the contents of the StoreItemCollection parameter and targeted for the version of the database corresponding to the provider manifest token.

DbDatabaseExists(DbConnection, Nullable<Int32>, StoreItemCollection)

返回一个值,该值指示服务器上是否存在给定数据库以及是否创建了 storeItemCollection 中包含的架构对象。Returns a value indicating whether a given database exists on the server and whether schema objects contained in the storeItemCollection have been created.

DbDeleteDatabase(DbConnection, Nullable<Int32>, StoreItemCollection)

删除数据库的存储项集合中指定的所有存储对象以及数据库本身。Deletes all store objects specified in the store item collection from the database and the database itself.

DbGetSpatialServices(String)

DbProviderServices 获取空间服务。Gets the spatial services for the DbProviderServices.

DeleteDatabase(DbConnection, Nullable<Int32>, StoreItemCollection)

删除数据库的存储项集合中指定的所有存储对象以及数据库本身。Deletes all store objects specified in the store item collection from the database and the database itself.

Equals(Object)

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

(继承自 Object)
GetDbProviderManifest(String)

在派生类中重写时,返回一个派生自 DbProviderManifest 的类的实例。When overridden in a derived class, returns an instance of a class that derives from the DbProviderManifest.

GetDbProviderManifestToken(DbConnection)

返回给定连接的提供程序清单标记。Returns provider manifest token given a connection.

GetDbSpatialDataReader(DbDataReader, String)

DbProviderServices 获取空间数据读取器。Gets the spatial data reader for the DbProviderServices.

GetHashCode()

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

(继承自 Object)
GetProviderFactory(DbConnection)

检索基于指定 DbConnection 的 DbProviderFactory。Retrieves the DbProviderFactory based on the specified DbConnection.

GetProviderManifest(String)

使用指定的版本信息返回提供程序清单。Returns the provider manifest by using the specified version information.

GetProviderManifestToken(DbConnection)

返回提供程序清单标记。Returns provider manifest token.

GetProviderServices(DbConnection)

返回给定连接的提供程序。Returns providers given a connection.

GetSpatialDataReader(DbDataReader, String)

DbProviderServices 获取空间数据读取器。Gets the spatial data reader for the DbProviderServices.

GetSpatialServices(String)

DbProviderServices 获取空间服务。Gets the spatial services for the DbProviderServices.

GetType()

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

(继承自 Object)
MemberwiseClone()

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

(继承自 Object)
SetDbParameterValue(DbParameter, TypeUsage, Object)

设置 DbProviderServices 的参数值。Sets the parameter values for the DbProviderServices.

ToString()

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

(继承自 Object)

适用于