数据库变更CNPC_XJYJ

This commit is contained in:
2025-08-04 18:04:41 +08:00
parent bafbf97359
commit 79a7f35e22
679 changed files with 5590 additions and 3465 deletions
+5 -5
View File
@@ -20,7 +20,7 @@ namespace BLL
/// <summary>
/// 维护一个DB集合
/// </summary>
private static Dictionary<int, Model.SGGLDB> dataBaseLinkList = new System.Collections.Generic.Dictionary<int, Model.SGGLDB>();
private static Dictionary<int, Model.CNPCDB> dataBaseLinkList = new System.Collections.Generic.Dictionary<int, Model.CNPCDB>();
public static IScheduler ScheduledTasks
{
get;
@@ -30,7 +30,7 @@ namespace BLL
/// <summary>
/// 维护一个DB集合
/// </summary>
public static System.Collections.Generic.Dictionary<int, Model.SGGLDB> DBList
public static System.Collections.Generic.Dictionary<int, Model.CNPCDB> DBList
{
get
{
@@ -130,7 +130,7 @@ namespace BLL
/// <summary>
/// 数据库上下文。
/// </summary>
public static SGGLDB DB
public static CNPCDB DB
{
get
{
@@ -139,7 +139,7 @@ namespace BLL
{
if (!DBList.ContainsKey(System.Threading.Thread.CurrentThread.ManagedThreadId))
{
DBList.Add(System.Threading.Thread.CurrentThread.ManagedThreadId, new SGGLDB(connString));
DBList.Add(System.Threading.Thread.CurrentThread.ManagedThreadId, new CNPCDB(connString));
}
// DBList[System.Threading.Thread.CurrentThread.ManagedThreadId].CommandTimeout = 1200;
@@ -147,7 +147,7 @@ namespace BLL
}
catch
{
var db = new SGGLDB(connString);
var db = new CNPCDB(connString);
if (DBList.ContainsKey(System.Threading.Thread.CurrentThread.ManagedThreadId))
{
DBList[System.Threading.Thread.CurrentThread.ManagedThreadId] = db;