Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

EFMigrationResource Constructors

ClassConstructors1 member
Represents an EF Core migration resource associated with a project.
Constructor(string, ProjectResource, string?)Section titled Constructor(string, ProjectResource, string?)
Initializes a new instance of the EFMigrationResource class.
public class EFMigrationResource
{
public EFMigrationResource(
string name,
ProjectResource projectResource,
string? dbContextTypeName)
{
// ...
}
}
namestringThe name of the resource.
projectResourceProjectResourceThe startup project resource that contains the DbContext.
dbContextTypeNamestring?The fully qualified name of the DbContext type, or null to auto-detect.