增加固体饮料批号初版
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using NLog;
|
||||
using FATrace.Model;
|
||||
|
||||
namespace FATrace.App
|
||||
{
|
||||
@@ -42,6 +43,19 @@ namespace FATrace.App
|
||||
// To customize application configuration such as set high DPI settings or default font,
|
||||
// see https://aka.ms/applicationconfiguration.
|
||||
ApplicationConfiguration.Initialize();
|
||||
|
||||
// 结构同步:App 端当前 UseAutoSyncStructure(false),需要显式同步新增列
|
||||
try
|
||||
{
|
||||
FSqlContext.FDb.CodeFirst.SyncStructure<RawProInput>();
|
||||
FSqlContext.FDb.CodeFirst.SyncStructure<RawProUse>();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.Error(ex, "数据库结构同步失败");
|
||||
MessageBox.Show($"数据库结构同步失败:{ex.Message}");
|
||||
}
|
||||
|
||||
Application.Run(new frmMain());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user