EFMigrationResource Constructors
Class Constructors 1 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
name string The name of the resource. projectResource ProjectResource The parent project resource that contains the DbContext. dbContextTypeName string? 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.