File tree Expand file tree Collapse file tree 6 files changed +15
-9
lines changed
VirtoCommerce.Platform.Data.MySql
VirtoCommerce.Platform.Data.PostgreSql
VirtoCommerce.Platform.Data.SqlServer Expand file tree Collapse file tree 6 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 11using Microsoft . EntityFrameworkCore ;
2+ using Microsoft . EntityFrameworkCore . Diagnostics ;
23using Microsoft . EntityFrameworkCore . Infrastructure ;
34using Microsoft . Extensions . Configuration ;
45
@@ -22,6 +23,7 @@ public static DbContextOptionsBuilder UseMySqlDatabase(
2223 {
2324 mySqlDbContextOptionsBuilder . MigrationsAssembly ( migrationsAssemblyMarkerType . Assembly . GetName ( ) . Name ) ;
2425 mySqlOptionsAction ? . Invoke ( mySqlDbContextOptionsBuilder , configuration ) ;
25- } ) ;
26+ } )
27+ . ConfigureWarnings ( warnings => warnings . Ignore ( CoreEventId . NoEntityTypeConfigurationsWarning ) ) ;
2628 }
2729}
Original file line number Diff line number Diff line change 22
33## Install CLI tools for Entity Framework Core
44``` cmd
5- dotnet tool install --global dotnet-ef --version 10.0.0
5+ dotnet tool install --global dotnet-ef --version 10.0.1
66```
77
88or update
99
1010``` cmd
11- dotnet tool update --global dotnet-ef --version 10.0.0
11+ dotnet tool update --global dotnet-ef --version 10.0.1
1212```
1313
1414## Add Migration
Original file line number Diff line number Diff line change 11using Microsoft . EntityFrameworkCore ;
2+ using Microsoft . EntityFrameworkCore . Diagnostics ;
23using Microsoft . Extensions . Configuration ;
34using Npgsql . EntityFrameworkCore . PostgreSQL . Infrastructure ;
45
@@ -21,6 +22,7 @@ public static DbContextOptionsBuilder UsePostgreSqlDatabase(
2122 {
2223 npgsqlDbContextOptionsBuilder . MigrationsAssembly ( migrationsAssemblyMarkerType . Assembly . GetName ( ) . Name ) ;
2324 npgsqlOptionsAction ? . Invoke ( npgsqlDbContextOptionsBuilder , configuration ) ;
24- } ) ;
25+ } )
26+ . ConfigureWarnings ( warnings => warnings . Ignore ( CoreEventId . NoEntityTypeConfigurationsWarning ) ) ;
2527 }
2628}
Original file line number Diff line number Diff line change 22
33## Install CLI tools for Entity Framework Core
44``` cmd
5- dotnet tool install --global dotnet-ef --version 10.0.0
5+ dotnet tool install --global dotnet-ef --version 10.0.1
66```
77
88or update
99
1010``` cmd
11- dotnet tool update --global dotnet-ef --version 10.0.0
11+ dotnet tool update --global dotnet-ef --version 10.0.1
1212```
1313
1414## Add Migration
Original file line number Diff line number Diff line change 11using Microsoft . EntityFrameworkCore ;
2+ using Microsoft . EntityFrameworkCore . Diagnostics ;
23using Microsoft . EntityFrameworkCore . Infrastructure ;
34using Microsoft . Extensions . Configuration ;
45
@@ -33,6 +34,7 @@ public static DbContextOptionsBuilder UseSqlServerDatabase(
3334
3435 sqlServerOptionsBuilder . MigrationsAssembly ( migrationsAssemblyMarkerType . Assembly . GetName ( ) . Name ) ;
3536 sqlServerOptionsAction ? . Invoke ( sqlServerOptionsBuilder , configuration ) ;
36- } ) ;
37+ } )
38+ . ConfigureWarnings ( warnings => warnings . Ignore ( CoreEventId . NoEntityTypeConfigurationsWarning ) ) ;
3739 }
3840}
Original file line number Diff line number Diff line change 22
33## Install CLI tools for Entity Framework Core
44``` cmd
5- dotnet tool install --global dotnet-ef --version 10.0.0
5+ dotnet tool install --global dotnet-ef --version 10.0.1
66```
77
88or update
99
1010``` cmd
11- dotnet tool update --global dotnet-ef --version 10.0.0
11+ dotnet tool update --global dotnet-ef --version 10.0.1
1212```
1313
1414## Add Migration
You can’t perform that action at this time.
0 commit comments