OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>.HasData 方法

定义

重载

HasData(IEnumerable<Object>)

将此实体配置为具有种子数据。 它用于生成数据运动迁移。

HasData(IEnumerable<TDependentEntity>)

将种子数据添加到此实体类型。 它用于生成数据运动迁移。

HasData(Object[])

将此实体配置为具有种子数据。 它用于生成数据运动迁移。

HasData(TDependentEntity[])

将种子数据添加到此实体类型。 它用于生成数据运动迁移。

HasData(IEnumerable<Object>)

Source:
OwnedNavigationBuilder%60.cs
Source:
OwnedNavigationBuilder%60.cs
Source:
OwnedNavigationBuilder%60.cs
Source:
OwnedNavigationBuilder%60.cs
Source:
OwnedNavigationBuilder%60.cs

将此实体配置为具有种子数据。 它用于生成数据运动迁移。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DataBuilder<TDependentEntity> HasData (System.Collections.Generic.IEnumerable<object> data);
override this.HasData : seq<obj> -> Microsoft.EntityFrameworkCore.Metadata.Builders.DataBuilder<'DependentEntity (requires 'DependentEntity : null)>
Public Overridable Function HasData (data As IEnumerable(Of Object)) As DataBuilder(Of TDependentEntity)

参数

data
IEnumerable<Object>

由匿名类型表示的种子数据的集合。

返回

DataBuilder<TDependentEntity>

可用于配置模型数据的 对象。

适用于

HasData(IEnumerable<TDependentEntity>)

Source:
OwnedNavigationBuilder%60.cs
Source:
OwnedNavigationBuilder%60.cs
Source:
OwnedNavigationBuilder%60.cs
Source:
OwnedNavigationBuilder%60.cs
Source:
OwnedNavigationBuilder%60.cs

将种子数据添加到此实体类型。 它用于生成数据运动迁移。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DataBuilder<TDependentEntity> HasData (System.Collections.Generic.IEnumerable<TDependentEntity> data);
override this.HasData : seq<'DependentEntity (requires 'DependentEntity : null)> -> Microsoft.EntityFrameworkCore.Metadata.Builders.DataBuilder<'DependentEntity (requires 'DependentEntity : null)>
Public Overridable Function HasData (data As IEnumerable(Of TDependentEntity)) As DataBuilder(Of TDependentEntity)

参数

data
IEnumerable<TDependentEntity>

种子数据的集合。

返回

DataBuilder<TDependentEntity>

可用于配置模型数据的 对象。

适用于

HasData(Object[])

Source:
OwnedNavigationBuilder%60.cs
Source:
OwnedNavigationBuilder%60.cs
Source:
OwnedNavigationBuilder%60.cs
Source:
OwnedNavigationBuilder%60.cs
Source:
OwnedNavigationBuilder%60.cs
Source:
OwnedNavigationBuilder%60.cs
Source:
OwnedNavigationBuilder%60.cs

将此实体配置为具有种子数据。 它用于生成数据运动迁移。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DataBuilder<TDependentEntity> HasData (params object[] data);
override this.HasData : obj[] -> Microsoft.EntityFrameworkCore.Metadata.Builders.DataBuilder<'DependentEntity (requires 'DependentEntity : null)>
Public Overridable Function HasData (ParamArray data As Object()) As DataBuilder(Of TDependentEntity)

参数

data
Object[]

由匿名类型表示的种子数据的数组。

返回

DataBuilder<TDependentEntity>

可用于配置模型数据的 对象。

适用于

HasData(TDependentEntity[])

Source:
OwnedNavigationBuilder%60.cs
Source:
OwnedNavigationBuilder%60.cs
Source:
OwnedNavigationBuilder%60.cs
Source:
OwnedNavigationBuilder%60.cs
Source:
OwnedNavigationBuilder%60.cs
Source:
OwnedNavigationBuilder%60.cs
Source:
OwnedNavigationBuilder%60.cs

将种子数据添加到此实体类型。 它用于生成数据运动迁移。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DataBuilder<TDependentEntity> HasData (params TDependentEntity[] data);
override this.HasData : 'DependentEntity[] -> Microsoft.EntityFrameworkCore.Metadata.Builders.DataBuilder<'DependentEntity (requires 'DependentEntity : null)>
Public Overridable Function HasData (ParamArray data As TDependentEntity()) As DataBuilder(Of TDependentEntity)

参数

data
TDependentEntity[]

种子数据的数组。

返回

DataBuilder<TDependentEntity>

可用于配置模型数据的 对象。

适用于