語言

ModificationCommand 類別

定義

代表一個概念性指令,用於資料庫插入/更新/刪除一列。

此類型通常由資料庫提供者使用;通常不在應用程式碼中使用。

public class ModificationCommand
[System.Runtime.CompilerServices.Nullable(0)]
public class ModificationCommand : Microsoft.EntityFrameworkCore.Update.IModificationCommand, Microsoft.EntityFrameworkCore.Update.INonTrackedModificationCommand
public class ModificationCommand : Microsoft.EntityFrameworkCore.Update.IModificationCommand
public class ModificationCommand : Microsoft.EntityFrameworkCore.Update.IModificationCommand, Microsoft.EntityFrameworkCore.Update.INonTrackedModificationCommand
type ModificationCommand = class
[<System.Runtime.CompilerServices.Nullable(0)>]
type ModificationCommand = class
    interface IModificationCommand
    interface IReadOnlyModificationCommand
    interface INonTrackedModificationCommand
type ModificationCommand = class
    interface IModificationCommand
    interface IReadOnlyModificationCommand
type ModificationCommand = class
    interface IModificationCommand
    interface IReadOnlyModificationCommand
    interface INonTrackedModificationCommand
Public Class ModificationCommand
Public Class ModificationCommand
Implements IModificationCommand, INonTrackedModificationCommand
Public Class ModificationCommand
Implements IModificationCommand
繼承
ModificationCommand
屬性
實作

備註

更多資訊與範例請參見 資料庫提供者與擴充功能的實作 。

建構函式

名稱 Description
ModificationCommand(ModificationCommandParameters)

初始化新的 ModificationCommand 執行個體。

ModificationCommand(NonTrackedModificationCommandParameters)

初始化新的 ModificationCommand 執行個體。

ModificationCommand(String, String, Func<String>, Boolean, IComparer<IUpdateEntry>)

初始化新的 ModificationCommand 執行個體。

ModificationCommand(String, String, Func<String>, Func<IProperty,IRelationalPropertyAnnotations>)

代表一個概念性指令,用於資料庫插入/更新/刪除一列。

此類型通常由資料庫提供者使用;通常不在應用程式碼中使用。

ModificationCommand(String, String, IReadOnlyList<ColumnModification>, Boolean)

初始化新的 ModificationCommand 執行個體。

ModificationCommand(String, String, IReadOnlyList<ColumnModification>)

初始化新的 ModificationCommand 執行個體。

屬性

名稱 Description
ColumnModifications

執行插入、更新或刪除所需的清單 IColumnModification 。

EntityState

該 EntityState 表示該列是否會入Added()、更新Modified()、刪除(()。Deleted

Entries

代表 IUpdateEntry映射到要更新的列的實體 s。

RequiresResultPropagation

表示資料庫是否會回傳某些映射屬性的值,這些屬性需要再傳回追蹤的實體。

RowsAffectedColumn

使用儲存程序時,這可選擇性地指向包含受影響列的輸出參數或結果欄。

Schema

包含該表格的結構,或 null 使用預設架構。

StoreStoredProcedure

用於更新資料的儲存程序。

Table

包含待修改資料的表格。

TableName

包含待修改資料的資料表名稱。

方法

名稱 Description
AddColumnModification(ColumnModificationParameters)

建立一個新 IColumnModification 指令並加入這個指令。

AddEntry(IUpdateEntry, Boolean)

這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。

AddEntry(IUpdateEntry)
已淘汰.

在此指令中新增 IUpdateEntry 一個代表要插入、更新或刪除的實體。

AssertColumnsNotInitialized()

這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。

CreateColumnModification(ColumnModificationParameters)

建立一個新的實例來實 IColumnModification 作介面。

ProcessSinglePropertyJsonUpdate(ColumnModificationParameters)

執行針對單一屬性 JSON 更新的欄位修改所需的處理。

PropagateOutputParameters(DbParameterCollection, Int32)

讀取從給定 parameterCollection 資料庫回傳的輸出參數,並將其傳播回適當 IColumnModification 位置,從中數值可傳播至追蹤實體。

PropagateResults(RelationalDataReader)

讀取從資料庫 relationalReader 回傳的結果集欄位,並將其傳播回適當 IColumnModification 欄位,然後從中傳遞到可被追蹤的實體。

PropagateResults(ValueBuffer)

讀取從給定 ValueBuffer 資料庫回傳的值,並將其傳播回適當的 IColumnModification 位置,從那裡可以將值傳播到追蹤的實體。

ToString()

代表一個概念性指令,用於資料庫插入/更新/刪除一列。

此類型通常由資料庫提供者使用;通常不在應用程式碼中使用。

適用於