共用方式為


MigrationCommand.ExecuteNonQuery 方法

定義

多載

ExecuteNonQuery(IRelationalConnection, IReadOnlyDictionary<String,Object>)

執行 命令,並傳回受影響的資料列數目。

ExecuteNonQuery(IRelationalConnection, IReadOnlyDictionary<String,Object>, Boolean)

ExecuteNonQuery(IRelationalConnection, IReadOnlyDictionary<String,Object>)

來源:
MigrationCommand.cs
來源:
MigrationCommand.cs
來源:
MigrationCommand.cs
來源:
MigrationCommand.cs
來源:
MigrationCommand.cs
來源:
MigrationCommand.cs
來源:
MigrationCommand.cs
來源:
MigrationCommand.cs
來源:
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

參數

parameterValues
IReadOnlyDictionary<String,Object>
manageConnection
Boolean

傳回

適用於