Bagikan melalui


PropertyBaseExtensions.Format Metode

Definisi

Membuat representasi string yang diformat dari properti yang diberikan seperti berguna saat melemparkan pengecualian tentang kunci, indeks, dll. yang menggunakan properti .

public static string Format(this System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyPropertyBase> properties, bool includeTypes = false);
static member Format : seq<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyPropertyBase> * bool -> string
<Extension()>
Public Function Format (properties As IEnumerable(Of IReadOnlyPropertyBase), Optional includeTypes As Boolean = false) As String

Parameter

properties
IEnumerable<IReadOnlyPropertyBase>

Properti yang akan diformat.

includeTypes
Boolean

Jika true, maka nama jenis disertakan dalam string. Default adalah false.

Mengembalikan

Representasi string.

Berlaku untuk