IRelationalCommand.ExecuteNonQuery 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ExecuteNonQuery(RelationalCommandParameterObject)
- Source:
- IRelationalCommand.cs
- Source:
- IRelationalCommand.cs
- Source:
- IRelationalCommand.cs
- Source:
- IRelationalCommand.cs
执行没有结果的命令。
public int ExecuteNonQuery (Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject parameterObject);
abstract member ExecuteNonQuery : Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject -> int
Public Function ExecuteNonQuery (parameterObject As RelationalCommandParameterObject) As Integer
参数
- parameterObject
- RelationalCommandParameterObject
此方法的参数。
返回
受影响的行数。
适用于
ExecuteNonQuery(IRelationalConnection, IReadOnlyDictionary<String,Object>)
执行没有结果的命令。
public int ExecuteNonQuery (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Collections.Generic.IReadOnlyDictionary<string,object> parameterValues);
abstract member ExecuteNonQuery : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Collections.Generic.IReadOnlyDictionary<string, obj> -> int
Public Function ExecuteNonQuery (connection As IRelationalConnection, parameterValues As IReadOnlyDictionary(Of String, Object)) As Integer
参数
- connection
- IRelationalConnection
要对其执行的连接。
- parameterValues
- IReadOnlyDictionary<String,Object>
参数的值。
返回
受影响的行数。
适用于
ExecuteNonQuery(IRelationalConnection, IReadOnlyDictionary<String,Object>, Boolean)
注意
Use overload without 'manageConnection' parameter
执行没有结果的命令。
public int ExecuteNonQuery (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Collections.Generic.IReadOnlyDictionary<string,object> parameterValues = default, bool manageConnection = true);
[System.Obsolete("Use overload without 'manageConnection' parameter")]
public int ExecuteNonQuery (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Collections.Generic.IReadOnlyDictionary<string,object> parameterValues, bool manageConnection);
abstract member ExecuteNonQuery : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Collections.Generic.IReadOnlyDictionary<string, obj> * bool -> int
[<System.Obsolete("Use overload without 'manageConnection' parameter")>]
abstract member ExecuteNonQuery : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Collections.Generic.IReadOnlyDictionary<string, obj> * bool -> int
Public Function ExecuteNonQuery (connection As IRelationalConnection, Optional parameterValues As IReadOnlyDictionary(Of String, Object) = Nothing, Optional manageConnection As Boolean = true) As Integer
Public Function ExecuteNonQuery (connection As IRelationalConnection, parameterValues As IReadOnlyDictionary(Of String, Object), manageConnection As Boolean) As Integer
参数
- connection
- IRelationalConnection
要对其执行的连接。
- parameterValues
- IReadOnlyDictionary<String,Object>
参数的值。
- manageConnection
- Boolean
一个 值,该值指示是否根据需要打开和关闭连接。
返回
受影响的行数。
- 属性