Example #1
0
        public void SetPropertiesTest()
        {
            FbConfiguration configurationSvc = new FbConfiguration();

            configurationSvc.ConnectionString = BuildServicesConnectionString();

            configurationSvc.SetSweepInterval(1000);
            configurationSvc.SetReserveSpace(true);
            configurationSvc.SetForcedWrites(true);
        }
Example #2
0
        public void SetPropertiesTest()
        {
            var configurationSvc = new FbConfiguration();

            configurationSvc.ConnectionString = BuildServicesConnectionString(FbServerType, Compression, WireCrypt, true);

            configurationSvc.SetSweepInterval(1000);
            configurationSvc.SetReserveSpace(true);
            configurationSvc.SetForcedWrites(true);
        }
Example #3
0
        public void SetPropertiesTest()
        {
            FbConfiguration configurationSvc = new FbConfiguration();

            configurationSvc.ConnectionString = this.BuildServicesConnectionString();

            configurationSvc.SetSweepInterval(1000);
            configurationSvc.SetReserveSpace(true);
            configurationSvc.SetForcedWrites(true);
            configurationSvc.DatabaseShutdown(FbShutdownMode.Forced, 10);
            configurationSvc.DatabaseOnline();
        }
Example #4
0
 //
 public Boolean Shutdown()
 {
     try
     {
         FbConfiguration configurationSvc = new FbConfiguration();
         configurationSvc.ConnectionString = C_Setting_DB.get_db_url();
         configurationSvc.SetSweepInterval(1000);
         configurationSvc.SetReserveSpace(true);
         configurationSvc.SetForcedWrites(true);
         configurationSvc.DatabaseOnline();
         configurationSvc.DatabaseShutdown(FbShutdownMode.Forced, 1);
         return(true);
     }
     catch (Exception e)
     {
         F_File.LogError(e);
         return(false);
     }
 }