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,则使用提供程序值。

返回

数据。

适用于