Class UpdateFileTest
A base class inherited by each EF Core migration.
Inherited Members
Namespace: OEMS.Core.Migrations
Assembly: OEMS.Core.dll
Syntax
[DbContext(typeof(OEMSDBContext))]
[Migration("20250516164138_UpdateFileTest")]
public class UpdateFileTest : Migration
Remarks
See Database migrations for more information and examples.
Methods
BuildTargetModel(ModelBuilder)
Implemented to build the TargetModel.
Declaration
protected override void BuildTargetModel(ModelBuilder modelBuilder)
Parameters
Type | Name | Description |
---|---|---|
ModelBuilder | modelBuilder | The ModelBuilder to use to build the model. |
Overrides
Remarks
See Database migrations for more information and examples.
Up(MigrationBuilder)
Builds the operations that will migrate the database 'up'.
Declaration
protected override void Up(MigrationBuilder migrationBuilder)
Parameters
Type | Name | Description |
---|---|---|
MigrationBuilder | migrationBuilder | The MigrationBuilder that will build the operations. |
Overrides
Remarks
That is, builds the operations that will take the database from the state left in by the previous migration so that it is up-to-date with regard to this migration.
This method must be overridden in each class that inherits from Migration.
See Database migrations for more information and examples.