UpdateEntryExtensions.ToDebugString 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立一個人類可讀的給定 IUpdateEntry表示。
警告:請勿依賴回傳字串的格式。 它僅設計用於除錯,且可能在不同版本間任意變動。
public static string ToDebugString(this Microsoft.EntityFrameworkCore.Update.IUpdateEntry updateEntry, Microsoft.EntityFrameworkCore.ChangeTracking.ChangeTrackerDebugStringOptions options = Microsoft.EntityFrameworkCore.ChangeTracking.ChangeTrackerDebugStringOptions.LongDefault, int indent = 0);
public static string ToDebugString(this Microsoft.EntityFrameworkCore.Update.IUpdateEntry updateEntry, Microsoft.EntityFrameworkCore.ChangeTracking.ChangeTrackerDebugStringOptions options, int indent = 0);
static member ToDebugString : Microsoft.EntityFrameworkCore.Update.IUpdateEntry * Microsoft.EntityFrameworkCore.ChangeTracking.ChangeTrackerDebugStringOptions * int -> string
<Extension()>
Public Function ToDebugString (updateEntry As IUpdateEntry, Optional options As ChangeTrackerDebugStringOptions = Microsoft.EntityFrameworkCore.ChangeTracking.ChangeTrackerDebugStringOptions.LongDefault, Optional indent As Integer = 0) As String
<Extension()>
Public Function ToDebugString (updateEntry As IUpdateEntry, options As ChangeTrackerDebugStringOptions, Optional indent As Integer = 0) As String
參數
- updateEntry
- IUpdateEntry
入口。
- options
- ChangeTrackerDebugStringOptions
產生字串的選項。
- indent
- Int32
每行新增前應使用縮排空格數。
傳回
一個人類可讀的表示。
備註
更多資訊與範例請參閱 EF Core 除錯檢視 。