RelationalCommandExtensions.ExecuteNonQuery 方法

定义

执行命令,但没有结果。

public static int ExecuteNonQuery (this Microsoft.EntityFrameworkCore.Storage.IRelationalCommand command, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection);
static member ExecuteNonQuery : Microsoft.EntityFrameworkCore.Storage.IRelationalCommand * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection -> int
<Extension()>
Public Function ExecuteNonQuery (command As IRelationalCommand, connection As IRelationalConnection) As Integer

参数

command
IRelationalCommand

要执行的命令。

connection
IRelationalConnection

要对其执行的连接。

返回

受影响的行数。

适用于