Beispiel #1
0
 private void InitData()
 {
     if (Common.JudgeSqlUpdate())
     {
         string           connectionString = System.Configuration.ConfigurationManager.ConnectionStrings["FairiesMemberManage"].ConnectionString;
         DXInfo.Sync.Sync sync             = new DXInfo.Sync.Sync(connectionString);
         //using (sync.ServerConn)
         //{
         sync.ServerConn.Open();
         Common.SyncStruct(sync.ServerConn);
         sync.ServerConn.Close();
         //}
         sync.ProvisionServer();
         sync.CheckProvisionServer();
         Common.UpdateSqlVersionConfig();
     }
 }
Beispiel #2
0
        private void InitData()
        {
            if (DXInfo.Web.Models.Helper.JudgeSqlUpdate())
            {
                string           connectionString = System.Configuration.ConfigurationManager.ConnectionStrings["FairiesMemberManage"].ConnectionString;
                DXInfo.Sync.Sync sync             = new DXInfo.Sync.Sync(connectionString);

                bool bAMSApp = DXInfo.Web.Models.Helper.IsAMSApp();
                sync.ServerConn.Open();
                DXInfo.Web.Models.Helper.SyncStruct(sync.ServerConn, bAMSApp);
                sync.ServerConn.Close();

                if (!bAMSApp)
                {
                    sync.ProvisionServer();
                    sync.CheckProvisionServer();
                }
                DXInfo.Web.Models.Helper.UpdateSqlVersionConfig();
            }
        }