Share via


ReferenceOwnershipBuilder.HasData(Object[]) Method

Definition

Configures this entity to have seed data. 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