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