Пример #1
0
        public DBManager(string connectionString)
        {
            this.connectionString = connectionString;

            DBManagerSingletonConnection.ConnectionString = this.connectionString;

            idbConnection = DBManagerSingletonConnection.GetConnection();
        }
Пример #2
0
 //public delegate CollectionBase GenerateCollectionFromReader(object returnData);
 public DBManager()
 {
     try
     {
         //this.ConnectionString = System.Configuration.ConfigurationManager.AppSettings["connectionstring"].ToString();
         this.connectionString = Properties.Settings.Default.mics_serverConnectionString;
     }
     catch
     {
         throw new ArgumentException("Configuration file error");
     }
     DBManagerSingletonConnection.ConnectionString = this.connectionString;
     idbConnection = DBManagerSingletonConnection.GetConnection();
     //this(this.providerType,this.connectionString);
 }