SqlProviderServices Class

Definition

Important

This API is not CLS-compliant.

SQL Server 的 SqlClient 提供程序的 DbProviderServices 实现。The DbProviderServices implementation for the SqlClient provider for SQL Server.

public ref class SqlProviderServices sealed : System::Data::Common::DbProviderServices
[System.CLSCompliant(false)]
public sealed class SqlProviderServices : System.Data.Common.DbProviderServices
type SqlProviderServices = class
    inherit DbProviderServices
Public NotInheritable Class SqlProviderServices
Inherits DbProviderServices
Inheritance
SqlProviderServices
Attributes

Properties

SingletonInstance

获取 SqlProviderServices 的单一实例。Gets the singleton instance of SqlProviderServices.

Methods

CreateCommandDefinition(DbCommand)

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

(Inherited from DbProviderServices)
CreateCommandDefinition(DbCommandTree)

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

(Inherited from DbProviderServices)
CreateCommandDefinition(DbProviderManifest, DbCommandTree)

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

(Inherited from DbProviderServices)
CreateDatabase(DbConnection, Nullable<Int32>, StoreItemCollection)

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

(Inherited from DbProviderServices)
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.

(Inherited from DbProviderServices)
CreateDbCommandDefinition(DbProviderManifest, DbCommandTree)

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

(Inherited from DbProviderServices)
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.

(Inherited from DbProviderServices)
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.

(Inherited from DbProviderServices)
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.

(Inherited from DbProviderServices)
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.

(Inherited from DbProviderServices)
DbDeleteDatabase(DbConnection, Nullable<Int32>, StoreItemCollection)

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

(Inherited from DbProviderServices)
DbGetSpatialServices(String)

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

(Inherited from DbProviderServices)
DeleteDatabase(DbConnection, Nullable<Int32>, StoreItemCollection)

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

(Inherited from DbProviderServices)
Equals(Object)

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

(Inherited from Object)
GetDbProviderManifest(String)

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

(Inherited from DbProviderServices)
GetDbProviderManifestToken(DbConnection)

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

(Inherited from DbProviderServices)
GetDbSpatialDataReader(DbDataReader, String)

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

(Inherited from DbProviderServices)
GetHashCode()

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

(Inherited from Object)
GetProviderManifest(String)

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

(Inherited from DbProviderServices)
GetProviderManifestToken(DbConnection)

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

(Inherited from DbProviderServices)
GetSpatialDataReader(DbDataReader, String)

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

(Inherited from DbProviderServices)
GetSpatialServices(String)

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

(Inherited from DbProviderServices)
GetType()

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

(Inherited from Object)
MemberwiseClone()

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

(Inherited from Object)
SetDbParameterValue(DbParameter, TypeUsage, Object)

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

(Inherited from DbProviderServices)
ToString()

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

(Inherited from Object)

Applies to