OwnedNavigationBuilder.HasData Method
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.
HasData(IEnumerable<Object>) |
Adds seed data to this entity type. It is used to generate data motion migrations. |
HasData(Object[]) |
Adds seed data to this entity type. It is used to generate data motion migrations. |
- Source:
- OwnedNavigationBuilder.cs
- Source:
- OwnedNavigationBuilder.cs
- Source:
- OwnedNavigationBuilder.cs
- Source:
- OwnedNavigationBuilder.cs
- Source:
- OwnedNavigationBuilder.cs
Adds seed data to this entity type. It is used to generate data motion migrations.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DataBuilder HasData (System.Collections.Generic.IEnumerable<object> data);
abstract member HasData : seq<obj> -> Microsoft.EntityFrameworkCore.Metadata.Builders.DataBuilder
override this.HasData : seq<obj> -> Microsoft.EntityFrameworkCore.Metadata.Builders.DataBuilder
Public Overridable Function HasData (data As IEnumerable(Of Object)) As DataBuilder
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
Entity Framework Core 9.0 ja muud versioonid
Toode | Versioonid |
---|---|
Entity Framework Core | 5.0, 6.0, 7.0, 8.0, 9.0 |
- Source:
- OwnedNavigationBuilder.cs
- Source:
- OwnedNavigationBuilder.cs
- Source:
- OwnedNavigationBuilder.cs
- Source:
- OwnedNavigationBuilder.cs
- Source:
- OwnedNavigationBuilder.cs
- Source:
- OwnedNavigationBuilder.cs
- Source:
- OwnedNavigationBuilder.cs
Adds seed data to this entity type. It is used to generate data motion migrations.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DataBuilder HasData (params object[] data);
abstract member HasData : obj[] -> Microsoft.EntityFrameworkCore.Metadata.Builders.DataBuilder
override this.HasData : obj[] -> Microsoft.EntityFrameworkCore.Metadata.Builders.DataBuilder
Public Overridable Function HasData (ParamArray data As Object()) As DataBuilder
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
Entity Framework Core 9.0 ja muud versioonid
Toode | Versioonid |
---|---|
Entity Framework Core | 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
Toote „Entity Framework“ tagasiside
Entity Framework on avatud lähtekoodiga projekt. Tagasiside andmiseks valige link: