ScaffoldingModelExtensions.GetDbSetName(IReadOnlyEntityType) 方法

定義

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

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

實體類型。

傳回

屬性名稱。

適用於