static RaptorDB.RaptorDB rdb; // 1 instance static void Main(string[] args) { rdb = RaptorDB.RaptorDB.Open("data"); // a "data" folder beside the executable RaptorDB.Global.RequirePrimaryView = false; Console.WriteLine("Registering views.."); rdb.RegisterView(new SalesInvoiceView()); DoWork(); Console.WriteLine("press any key..."); Console.ReadKey(); Console.WriteLine("\r\nShutting down..."); rdb.Shutdown(); // explicit shutdown }
public void Shutdown() { WriteUsers(); _server.Stop(); _raptor.Shutdown(); }