|
|
@@ -94,15 +94,7 @@ namespace WCS.Service
|
|
|
{
|
|
|
case "WCSDB"://WCS基本数据库
|
|
|
SqlSugarHelper.SetDefault(connectionString.Key);
|
|
|
- //_db.CodeFirst.InitTables(typeof(WCS_PlcSet));
|
|
|
- //_db.CodeFirst.InitTables(typeof(WCS_PlcDataBlock));
|
|
|
_db.CodeFirst.InitTables(typeof(WCS_PlcData));
|
|
|
- //_db.CodeFirst.InitTables(typeof(WCS_DeviceInfo));
|
|
|
- //_db.CodeFirst.InitTables(typeof(WCS_DeviceGrp));
|
|
|
- //_db.CodeFirst.InitTables(typeof(WCS_DeviceProt));
|
|
|
- //_db.CodeFirst.InitTables(typeof(WCS_PathInfo));
|
|
|
- //_db.CodeFirst.InitTables(typeof(WCS_PathGrp));
|
|
|
- //_db.CodeFirst.InitTables(typeof(WCS_Route));
|
|
|
_db.CodeFirst.InitTables(typeof(WCS_TaskInfo));
|
|
|
_db.CodeFirst.InitTables(typeof(WCS_TaskDtl));
|
|
|
_db.CodeFirst.InitTables(typeof(WCS_TaskOld));
|
|
|
@@ -111,19 +103,6 @@ namespace WCS.Service
|
|
|
break;
|
|
|
|
|
|
case "WCSDlog"://WCS日志数据库
|
|
|
- //SqlSugarHelper.SetDlog(connectionString.Key);
|
|
|
- //_db.DbMaintenance.CreateDatabase();
|
|
|
- //_db.CodeFirst.InitTables(typeof(WCS_BCR80));
|
|
|
- ////db.Context(WcsDlog).CodeFirst.InitTables(typeof(WCS_RGV520));
|
|
|
- ////db.Context(WcsDlog).CodeFirst.InitTables(typeof(WCS_RGV521));
|
|
|
- ////db.Context(WcsDlog).CodeFirst.InitTables(typeof(WCS_RGV523));
|
|
|
- ////_db.CodeFirst.InitTables(typeof(WCS_SRM520));
|
|
|
- ////_db.CodeFirst.InitTables(typeof(WCS_SRM521));
|
|
|
- ////db.Context(WcsDlog).CodeFirst.InitTables(typeof(WCS_SRM537));
|
|
|
- //_db.CodeFirst.InitTables(typeof(WCS_Station520));
|
|
|
- //_db.CodeFirst.InitTables(typeof(WCS_Station521));
|
|
|
- //_db.CodeFirst.InitTables(typeof(WCS_Station523));
|
|
|
- //_db.CodeFirst.InitTables(typeof(WCS_Station91));
|
|
|
|
|
|
break;
|
|
|
|
|
|
@@ -135,13 +114,7 @@ namespace WCS.Service
|
|
|
|
|
|
#endregion 初始化数据库连接
|
|
|
|
|
|
- #region 配置DebugRedisUrl
|
|
|
-
|
|
|
- var debugRedisUrl = RedisHub.Default.Check("DebugRedisUrl") ?? throw new Exception("请在Redis中配置DebugRedisUrl地址");
|
|
|
- if (debugRedisUrl.IsNullOrEmpty()) throw new Exception("请在Redis中配置DebugRedisUrl地址");
|
|
|
- Configs.DebugRedisUrl = debugRedisUrl;
|
|
|
-
|
|
|
- #endregion 配置DebugRedisUrl
|
|
|
+
|
|
|
|
|
|
#region 初始化设备信息
|
|
|
|