MigrationCommand.ExecuteNonQuery 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ExecuteNonQuery(IRelationalConnection, IReadOnlyDictionary<String,Object>) |
执行命令并返回受影响的行数。 |
ExecuteNonQuery(IRelationalConnection, IReadOnlyDictionary<String,Object>, Boolean) |
ExecuteNonQuery(IRelationalConnection, IReadOnlyDictionary<String,Object>)
- Source:
- MigrationCommand.cs
- Source:
- MigrationCommand.cs
- Source:
- MigrationCommand.cs
- Source:
- MigrationCommand.cs
- Source:
- MigrationCommand.cs
- Source:
- MigrationCommand.cs
- Source:
- MigrationCommand.cs
- Source:
- MigrationCommand.cs
- Source:
- MigrationCommand.cs
执行命令并返回受影响的行数。
public virtual int ExecuteNonQuery (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Collections.Generic.IReadOnlyDictionary<string,object> parameterValues = default);
public virtual int ExecuteNonQuery (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Collections.Generic.IReadOnlyDictionary<string,object?>? parameterValues = default);
abstract member ExecuteNonQuery : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Collections.Generic.IReadOnlyDictionary<string, obj> -> int
override this.ExecuteNonQuery : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Collections.Generic.IReadOnlyDictionary<string, obj> -> int
Public Overridable Function ExecuteNonQuery (connection As IRelationalConnection, Optional parameterValues As IReadOnlyDictionary(Of String, Object) = Nothing) As Integer
参数
- connection
- IRelationalConnection
要对其执行的连接。
- parameterValues
- IReadOnlyDictionary<String,Object>
参数的值;如果命令没有参数, null
则为 。
返回
受影响的行数。
适用于
ExecuteNonQuery(IRelationalConnection, IReadOnlyDictionary<String,Object>, Boolean)
public virtual int ExecuteNonQuery (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Collections.Generic.IReadOnlyDictionary<string,object> parameterValues = default, bool manageConnection = true);
abstract member ExecuteNonQuery : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Collections.Generic.IReadOnlyDictionary<string, obj> * bool -> int
override this.ExecuteNonQuery : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Collections.Generic.IReadOnlyDictionary<string, obj> * bool -> int
Public Overridable Function ExecuteNonQuery (connection As IRelationalConnection, Optional parameterValues As IReadOnlyDictionary(Of String, Object) = Nothing, Optional manageConnection As Boolean = true) As Integer
参数
- connection
- IRelationalConnection
- parameterValues
- IReadOnlyDictionary<String,Object>
- manageConnection
- Boolean