IRelationalCommand.ExecuteNonQuery 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ExecuteNonQuery(RelationalCommandParameterObject)
執行沒有結果的命令。
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
值,指出是否視需要開啟和關閉連線。
傳回
受影響的資料列數目。
- 屬性