EntityCommand 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
EntityCommand() |
使用指定的值初始化 EntityCommand 类的新实例。 |
EntityCommand(String) |
使用指定的语句初始化 EntityCommand 类的新实例。 |
EntityCommand(String, EntityConnection) |
用指定的语句和连接初始化 EntityCommand 类的新实例。 |
EntityCommand(String, EntityConnection, EntityTransaction) |
用指定的语句,连接和事务初始化 EntityCommand 类的新实例。 |
EntityCommand(String, EntityConnection, IDbDependencyResolver) |
使用给定的 eSQL 语句和要使用的连接对象构造 EntityCommand 对象 |
EntityCommand()
EntityCommand(String)
使用指定的语句初始化 EntityCommand 类的新实例。
public EntityCommand (string statement);
new System.Data.Entity.Core.EntityClient.EntityCommand : string -> System.Data.Entity.Core.EntityClient.EntityCommand
Public Sub New (statement As String)
参数
- statement
- String
命令的文本。
适用于
EntityCommand(String, EntityConnection)
用指定的语句和连接初始化 EntityCommand 类的新实例。
public EntityCommand (string statement, System.Data.Entity.Core.EntityClient.EntityConnection connection);
new System.Data.Entity.Core.EntityClient.EntityCommand : string * System.Data.Entity.Core.EntityClient.EntityConnection -> System.Data.Entity.Core.EntityClient.EntityCommand
Public Sub New (statement As String, connection As EntityConnection)
参数
- statement
- String
命令的文本。
- connection
- EntityConnection
与数据源的连接。
适用于
EntityCommand(String, EntityConnection, EntityTransaction)
用指定的语句,连接和事务初始化 EntityCommand 类的新实例。
public EntityCommand (string statement, System.Data.Entity.Core.EntityClient.EntityConnection connection, System.Data.Entity.Core.EntityClient.EntityTransaction transaction);
new System.Data.Entity.Core.EntityClient.EntityCommand : string * System.Data.Entity.Core.EntityClient.EntityConnection * System.Data.Entity.Core.EntityClient.EntityTransaction -> System.Data.Entity.Core.EntityClient.EntityCommand
Public Sub New (statement As String, connection As EntityConnection, transaction As EntityTransaction)
参数
- statement
- String
命令的文本。
- connection
- EntityConnection
与数据源的连接。
- transaction
- EntityTransaction
在其中执行命令的事务。
适用于
EntityCommand(String, EntityConnection, IDbDependencyResolver)
使用给定的 eSQL 语句和要使用的连接对象构造 EntityCommand 对象
public EntityCommand (string statement, System.Data.Entity.Core.EntityClient.EntityConnection connection, System.Data.Entity.Infrastructure.DependencyResolution.IDbDependencyResolver resolver);
new System.Data.Entity.Core.EntityClient.EntityCommand : string * System.Data.Entity.Core.EntityClient.EntityConnection * System.Data.Entity.Infrastructure.DependencyResolution.IDbDependencyResolver -> System.Data.Entity.Core.EntityClient.EntityCommand
Public Sub New (statement As String, connection As EntityConnection, resolver As IDbDependencyResolver)
参数
- statement
- String
要执行的 eSQL 命令文本
- connection
- EntityConnection
连接对象
- resolver
- IDbDependencyResolver
用于解析 DbProviderServices 的解析程序