Files
Pf2eDataScrapper/Documentation/Pf2eModel/_1.Up(MigrationBuilder).md
T

26 lines
1.6 KiB
Markdown

#### [Pf2eModel](index.md 'index')
### [Pf2eModel\.Migrations](Pf2eModel.Migrations.md 'Pf2eModel\.Migrations').[\_1](_1.md 'Pf2eModel\.Migrations\.\_1')
## \_1\.Up\(MigrationBuilder\) Method
Builds the operations that will migrate the database 'up'\.
```csharp
protected override void Up(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder migrationBuilder);
```
#### Parameters
<a name='Pf2eModel.Migrations._1.Up(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder).migrationBuilder'></a>
`migrationBuilder` [Microsoft\.EntityFrameworkCore\.Migrations\.MigrationBuilder](https://docs.microsoft.com/en-us/dotnet/api/Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder 'Microsoft\.EntityFrameworkCore\.Migrations\.MigrationBuilder')
The [Microsoft\.EntityFrameworkCore\.Migrations\.MigrationBuilder](https://docs.microsoft.com/en-us/dotnet/api/Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder 'Microsoft\.EntityFrameworkCore\.Migrations\.MigrationBuilder') that will build the operations\.
### 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 [Microsoft\.EntityFrameworkCore\.Migrations\.Migration](https://docs.microsoft.com/en-us/dotnet/api/Microsoft.EntityFrameworkCore.Migrations.Migration 'Microsoft\.EntityFrameworkCore\.Migrations\.Migration').
See [Database migrations](https://aka.ms/efcore-docs-migrations 'https://aka\.ms/efcore\-docs\-migrations') for more information and examples.