OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>.HasData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
HasData(IEnumerable<Object>) |
Configures this entity to have seed data. It is used to generate data motion migrations. |
HasData(IEnumerable<TDependentEntity>) |
Adds seed data to this entity type. It is used to generate data motion migrations. |
HasData(Object[]) |
Configures this entity to have seed data. It is used to generate data motion migrations. |
HasData(TDependentEntity[]) |
Adds seed data to this entity type. It is used to generate data motion migrations. |
HasData(IEnumerable<Object>)
- Source:
- OwnedNavigationBuilder%60.cs
- Source:
- OwnedNavigationBuilder%60.cs
- Source:
- OwnedNavigationBuilder%60.cs
- Source:
- OwnedNavigationBuilder%60.cs
- Source:
- OwnedNavigationBuilder%60.cs
Configures this entity to have seed data. It is used to generate data motion migrations.
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)
Parameters
- data
- IEnumerable<Object>
A collection of seed data represented by anonymous types.
Returns
An object that can be used to configure the model data.
Applies to
HasData(IEnumerable<TDependentEntity>)
- Source:
- OwnedNavigationBuilder%60.cs
- Source:
- OwnedNavigationBuilder%60.cs
- Source:
- OwnedNavigationBuilder%60.cs
- Source:
- OwnedNavigationBuilder%60.cs
- Source:
- OwnedNavigationBuilder%60.cs
Adds seed data to this entity type. It is used to generate data motion migrations.
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)
Parameters
- data
- IEnumerable<TDependentEntity>
A collection of seed data.
Returns
An object that can be used to configure the model data.
Applies to
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
Configures this entity to have seed data. It is used to generate data motion migrations.
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)
Parameters
- data
- Object[]
An array of seed data represented by anonymous types.
Returns
An object that can be used to configure the model data.
Applies to
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
Adds seed data to this entity type. It is used to generate data motion migrations.
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)
Parameters
- data
- TDependentEntity[]
An array of seed data.
Returns
An object that can be used to configure the model data.
Applies to
Entity Framework