IMutableEntityType.AddData(IEnumerable<Object>) 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.
Adds seed data to this entity type. It is used to generate data motion migrations.
public void AddData (System.Collections.Generic.IEnumerable<object> data);
abstract member AddData : seq<obj> -> unit
Public Sub AddData (data As IEnumerable(Of Object))
Parameters
- data
- IEnumerable<Object>
An array of seed data represented by anonymous types or entities.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework