EFMigrationResource Constructors
ClassConstructors1 member
Represents an EF Core migration resource associated with a project.
Constructor(string, ProjectResource, string?)Section titled Constructor(string, ProjectResource, string?) Represents an EF Core migration resource associated with a project.
public class EFMigrationResource{ public EFMigrationResource( string name, ProjectResource projectResource, string? dbContextTypeName) { // ... }}Parameters
namestringThe name of the resource.projectResourceProjectResourceThe parent project resource that contains the DbContext.dbContextTypeNamestring?The fully qualified name of the DbContext type, or null to auto-detect.Remarks
The resource inherits from
ApplicationModel.ContainerResource so it can be published as a container image that runs the migration bundle at deploy time when EFMigrationResourceBuilderExtensions.PublishAsMigrationBundle is called with publishContainer: true.