public void SetPropertiesTest() { FbConfiguration configurationSvc = new FbConfiguration(); configurationSvc.ConnectionString = BuildServicesConnectionString(); configurationSvc.SetSweepInterval(1000); configurationSvc.SetReserveSpace(true); configurationSvc.SetForcedWrites(true); }
public void SetPropertiesTest() { var configurationSvc = new FbConfiguration(); configurationSvc.ConnectionString = BuildServicesConnectionString(FbServerType, Compression, WireCrypt, true); configurationSvc.SetSweepInterval(1000); configurationSvc.SetReserveSpace(true); configurationSvc.SetForcedWrites(true); }
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(); }
// 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); } }