|
@@ -45,18 +45,6 @@ namespace WCS.WorkEngineering
|
|
|
switch (connectionString.Key)
|
|
|
{
|
|
|
case "WCSDB"://WCS基本数据库
|
|
|
- //SqlSugarHelper.SetDefault(connectionString.Key);
|
|
|
- //_db.CodeFirst.InitTables(typeof(WCS_PlcData));
|
|
|
- //_db.CodeFirst.InitTables(typeof(WCS_TaskInfo));
|
|
|
- //_db.CodeFirst.InitTables(typeof(WCS_TaskDtl));
|
|
|
- //_db.CodeFirst.InitTables(typeof(WCS_TaskOld));
|
|
|
- //_db.CodeFirst.InitTables(typeof(WCS_AgvTaskInfo));
|
|
|
- //_db.CodeFirst.InitTables(typeof(WCS_Palletizing));
|
|
|
- //_db.CodeFirst.InitTables(typeof(WCS_PalletizingLayer));
|
|
|
- //_db.CodeFirst.InitTables(typeof(WCS_PalletizingRow));
|
|
|
- //_db.CodeFirst.InitTables(typeof(WCS_PalletizingLoc));
|
|
|
- //_db.CodeFirst.InitTables(typeof(WCS_CacheLine));
|
|
|
- //_db.CodeFirst.InitTables(typeof(WCS_CacheLineLoc));
|
|
|
|
|
|
break;
|
|
|
|
|
@@ -69,34 +57,9 @@ namespace WCS.WorkEngineering
|
|
|
SqlSugarHelper.SetPLC(connectionString.Key);
|
|
|
|
|
|
_db.DbMaintenance.CreateDatabase();
|
|
|
- _db.CodeFirst.InitTables<WCS_Log>();
|
|
|
- _db.CodeFirst.InitTables<WCS_SRM520>();
|
|
|
- _db.CodeFirst.InitTables<DevRunInfo>();
|
|
|
- _db.CodeFirst.InitTables<WCS_SRM521>();
|
|
|
- _db.CodeFirst.InitTables<WCS_SRM537>();
|
|
|
- _db.CodeFirst.InitTables<WCS_RGV520>();
|
|
|
- _db.CodeFirst.InitTables<WCS_RGV521>();
|
|
|
- _db.CodeFirst.InitTables<WCS_BCR80>();
|
|
|
- _db.CodeFirst.InitTables<WCS_BCR81>();
|
|
|
- _db.CodeFirst.InitTables<WCS_BCR83>();
|
|
|
- _db.CodeFirst.InitTables<WCS_Station520>();
|
|
|
- _db.CodeFirst.InitTables<WCS_Station521>();
|
|
|
- _db.CodeFirst.InitTables<WCS_Station523>();
|
|
|
- _db.CodeFirst.InitTables<WCS_Station524>();
|
|
|
- _db.CodeFirst.InitTables<WCS_Station525>();
|
|
|
- _db.CodeFirst.InitTables<WCS_Station90>();
|
|
|
- _db.CodeFirst.InitTables<WCS_Station91>();
|
|
|
- _db.CodeFirst.InitTables<WCS_Truss520>();
|
|
|
- _db.CodeFirst.InitTables<WCS_Truss521>();
|
|
|
- _db.CodeFirst.InitTables<WCS_Truss523>();
|
|
|
- _db.CodeFirst.InitTables<WCS_Truss530>();
|
|
|
- _db.CodeFirst.InitTables<WCS_Truss531>();
|
|
|
- _db.CodeFirst.InitTables<WCS_Robot520>();
|
|
|
- _db.CodeFirst.InitTables<WCS_Robot521>();
|
|
|
- _db.CodeFirst.InitTables<WCS_Robot522>();
|
|
|
- _db.CodeFirst.InitTables<WCS_Robot530>();
|
|
|
- _db.CodeFirst.InitTables<WCS_Robot531>();
|
|
|
- var a = false;
|
|
|
+ //_db.CodeFirst.InitTables<DevRunInfo>();
|
|
|
+ _db.CodeFirst.InitTables<DevAlarmInfo>();
|
|
|
+
|
|
|
break;
|
|
|
|
|
|
default: //其他库
|