コード例 #1
0
        private static void SetDBConnection()
        {
            var cnstring = PWCOSTINGV1.Properties.Settings.Default.cnString;

            SetBALConnection.SetConnectionString(cnstring);
            TestConnection();
        }
コード例 #2
0
 private void TestConnection()
 {
     try
     {
         AssignRecords(true);
         SetBALConnection.SetConnectionString(AppConnectionString.ConnectionString);
         compbal = new CompanyBAL();
         comp    = compbal.GetByID(1);
         AppSettings.CompanyProfile = comp;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }