共用方式為


EntityTypeExtensions.GetSeedData(IEntityType, Boolean) 方法

定義

取得儲存在指定實體類型的模型中的資料。

public static System.Collections.Generic.IEnumerable<System.Collections.Generic.IDictionary<string,object>> GetSeedData (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, bool providerValues = false);
static member GetSeedData : Microsoft.EntityFrameworkCore.Metadata.IEntityType * bool -> seq<System.Collections.Generic.IDictionary<string, obj>>
<Extension()>
Public Function GetSeedData (entityType As IEntityType, Optional providerValues As Boolean = false) As IEnumerable(Of IDictionary(Of String, Object))

參數

entityType
IEntityType

實體類型。

providerValues
Boolean

如果為 true,則會使用提供者值。

傳回

資料。

適用於