Browse Source

Update Entity-Framework-Core-Migrations.md

pull/5133/head
Halil İbrahim Kalkan 6 years ago
parent
commit
9cb345bf57
  1. 2
      docs/en/Entity-Framework-Core-Migrations.md

2
docs/en/Entity-Framework-Core-Migrations.md

@ -398,7 +398,7 @@ builder.Entity<AppRole>(b =>
You've configured the custom property for your `DbContext` that is used by your application on the runtime. We also need to configure the `MigrationsDbContext`.
Instead of directly changing the `MigrationsDbContext`, we could use the entity extension system of the ABP Framework. Find the `YourProjectNameEfCoreEntityExtensionMappings` class in the `.EntityFrameworkCore` project of your solution (`BookStoreMyProjectNameEfCoreEntityExtensionMappings` for this example) and change it as shown below:
Instead of directly changing the `MigrationsDbContext`, we **should** use the entity extension system of the ABP Framework. Find the `YourProjectNameEfCoreEntityExtensionMappings` class in the `.EntityFrameworkCore` project of your solution (`BookStoreEfCoreEntityExtensionMappings` for this example) and change it as shown below:
````csharp
public static class MyProjectNameEntityExtensions

Loading…
Cancel
Save