语言

PropertyExtensions.Format(IEnumerable<IPropertyBase>, Boolean) 方法

定义

创建给定属性的格式化字符串表示形式,例如,在引发有关使用属性的键、索引等异常时非常有用。

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

参数

properties
IEnumerable<IPropertyBase>

要设置格式的属性。

includeTypes
Boolean

如果为 true,则字符串中包含类型名称。 默认值为 false。

返回

字符串表示形式。

适用于