Quellcode durchsuchen

修复切换产品时的bug

wanghan vor 6 Monaten
Ursprung
Commit
b519d3249f
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      TeamAAS-VM/Data/DatabaseInitializer.cs

+ 1 - 1
TeamAAS-VM/Data/DatabaseInitializer.cs

@@ -26,7 +26,7 @@ namespace TeamAAS_VP.Data
                 // 创建数据库(如果不存在)
                 _db.DbMaintenance.CreateDatabase();
                 // 创建表
-                _db.CodeFirst.InitTables(typeof(User), typeof(ProductionRecord), typeof(UserLoginRecord), typeof(AlarmRecord), typeof(LockResult), typeof(PhotoCaptureRecord), typeof(AssemblyRecord), typeof(ThrowRecord));
+                _db.CodeFirst.InitTables(typeof(User), typeof(ProductionRecord), typeof(UserLoginRecord), typeof(AlarmRecord), typeof(LockResult), typeof(PhotoCaptureRecord), typeof(AssemblyRecord), typeof(ThrowRecord), typeof(ProductWithMes));
 
                 // 创建索引
                 CreateIndexes();