語言

ScaffoldingModelExtensions.GetDbSetName(IReadOnlyEntityType) 方法

定義

取得該實體類型類別中應該使用的 DbSet<TEntity> 屬性 DbContext 名稱。

public static string GetDbSetName(this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType entityType);
static member GetDbSetName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> string
<Extension()>
Public Function GetDbSetName (entityType As IReadOnlyEntityType) As String

參數

entityType
IReadOnlyEntityType

實體類型。

傳回

屬性名稱。

適用於