Beispiel #1
0
        public DatabaseLibrary(string _companyName) : base()
        {
            var settings = ConfigurationManager.ConnectionStrings[3];
            var fi       = typeof(ConfigurationElement).GetField("_bReadOnly", BindingFlags.Instance | BindingFlags.NonPublic);

            fi.SetValue(settings, false);
            settings.ConnectionString = "Server=localhost;user id=root;password=;database=" + _companyName;
            tbl = new TableLibrary("REMLocalConnection");
        }
Beispiel #2
0
 public DatabaseLibrary() : base()
 {
     tbl = new TableLibrary("GlobalDatabaseConnection");
 }