abp 切换默认项目为pgsql
切换数据库为PGSQL
-
将EntityFrameworkCore项目中的Volo.Abp.EntityFrameworkCore.SqlServer包
替换为相同版本的Volo.AbpEntityFrameworkCore.Postgresql包 -
将TestEntityFrameworkCoreModule文件中
AbpEntityFrameworkCoreSqlServerModule 替换为 AbpEntityFrameworkCorePostgreSqlModule
-
将全局options.UseSqlServer();替换为options.UseNpgsql();
-
在Migration项目和webapi项目中的Program文件Main方法顶部添加
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);
AppContext.SetSwitch("Npgsql.DisableDateTimeInfinityConversions", true);
留待后查,同时方便他人
联系我:renhanlinbsl@163.com
联系我:renhanlinbsl@163.com