Skip to content

Commit

Permalink
Upgrade Pomelo.EntityFrameworkCore.MySql to NET 5
Browse files Browse the repository at this point in the history
  • Loading branch information
realLiangshiwei committed Nov 16, 2020
1 parent c37bebf commit 39732ce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="3.1.1" />
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="5.0.0-alpha.3.ci.20201114020548" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ public static DbContextOptionsBuilder UseMySQL(
{
if (context.ExistingConnection != null)
{
return context.DbContextOptions.UseMySql(context.ExistingConnection, mySQLOptionsAction);
return context.DbContextOptions.UseMySql(context.ExistingConnection, ServerVersion.AutoDetect(context.ConnectionString), mySQLOptionsAction);
}
else
{
return context.DbContextOptions.UseMySql(context.ConnectionString, mySQLOptionsAction);
return context.DbContextOptions.UseMySql(context.ConnectionString, ServerVersion.AutoDetect(context.ConnectionString), mySQLOptionsAction);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion nupkg/common.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ $projects = (
"framework/src/Volo.Abp.Ddd.Domain",
"framework/src/Volo.Abp.Emailing",
"framework/src/Volo.Abp.EntityFrameworkCore",
# "framework/src/Volo.Abp.EntityFrameworkCore.MySQL",
"framework/src/Volo.Abp.EntityFrameworkCore.MySQL",
# "framework/src/Volo.Abp.EntityFrameworkCore.Oracle",
# "framework/src/Volo.Abp.EntityFrameworkCore.Oracle.Devart",
"framework/src/Volo.Abp.EntityFrameworkCore.PostgreSql",
Expand Down

0 comments on commit 39732ce

Please sign in to comment.