예제 #1
0
 public static DataBaseSQLConnect GetInstace()
 {
     if (instance == null)
     {
         lock (syncRoot)
         {
             if (instance == null)
             {
                 instance = new DataBaseSQLConnect();
             }
         }
     }
     return(instance);
 }
예제 #2
0
 static DataBaseSQLConnect()
 {
     syncRoot         = new object();
     connectionString = GetConectionString(Settings.Default.DataSourceSQL, Settings.Default.DataBaseNameSQL, Settings.Default.UserIDSQL, Settings.Default.PasswordSQL, Settings.Default.TimeOutConnectionSQL);
     instance         = null;
 }
예제 #3
0
 protected override sealed IDataBaseSQLConnect GetDataBaseHelper()
 {
     return(DataBaseSQLConnect.GetInstace());
 }