EntityTypeExtensions.ToDebugString 方法

定義

建立人類可讀取的指定中繼資料標記法。

警告:不要依賴傳回字串的格式。 它專為偵錯而設計,而且可能會在發行之間任意變更。

public static string ToDebugString (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Infrastructure.MetadataDebugStringOptions options, int indent = 0);
static member ToDebugString : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Infrastructure.MetadataDebugStringOptions * int -> string
<Extension()>
Public Function ToDebugString (entityType As IEntityType, options As MetadataDebugStringOptions, Optional indent As Integer = 0) As String

參數

entityType
IEntityType

實體類型。

options
MetadataDebugStringOptions

產生字串的選項。

indent
Int32

每個新行之前要使用的縮排空格數目。

傳回

人類可讀的標記法。

適用於