|
|
@ -20,7 +20,6 @@ namespace DB
|
|
|
|
PostgreSQLContext context = new PostgreSQLContext(() =>
|
|
|
|
PostgreSQLContext context = new PostgreSQLContext(() =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
IDbConnection conn = new NpgsqlConnection(RfidSetting.Current.Db); //需要自己引入数据库驱动
|
|
|
|
IDbConnection conn = new NpgsqlConnection(RfidSetting.Current.Db); //需要自己引入数据库驱动
|
|
|
|
|
|
|
|
|
|
|
|
return conn;
|
|
|
|
return conn;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
context.Options.ConvertToLowercase = true;
|
|
|
|
context.Options.ConvertToLowercase = true;
|
|
|
|