strartup 调整整体调整

main_dev_1.0
冉成楼 4 months ago
parent 1794ed9696
commit 4eca96b2c6

@ -211,22 +211,7 @@ namespace OpenAuth.WebApi
PgSqlIsAutoToLower = false,
PgSqlIsAutoToLowerCodeFirst = false
}
},
//var sqlSugar = new SqlSugarClient(new ConnectionConfig()
//{
// DbType = SqlSugar.DbType.Kdbndp,
// ConnectionString = Configuration.GetConnectionString("OpenAuthDBContext"),
// IsAutoCloseConnection = true,
// MoreSettings = new SqlSugar.ConnMoreSettings()
// {
// //PgSqlIsAutoToLower = false,
// //PgSqlIsAutoToLowerCodeFirst = false,
// IsAutoToUpper = false,
// DatabaseModel = DbType.PostgreSQL
// }
//},
},
db =>
{
NpgsqlConnection.GlobalTypeMapper.UseNetTopologySuite();
@ -278,9 +263,7 @@ namespace OpenAuth.WebApi
AutofacExt.InitAutofac(builder);
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
//public void Configure(IApplicationBuilder app, IHostEnvironment env, ILogger<Startup> loggerFactory)
public void Configure(IApplicationBuilder app, IHostEnvironment env)
{
//loggerFactory.AddLog4Net();

Loading…
Cancel
Save