protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            SiaqodbConfigurator.ApplyConfigurator(PortableDataLayer.DatabaseManager.GetDefaultConfig());
            using (Siaqodb siaqodb = new Siaqodb())
            {
                siaqodb.Open(ApplicationData.Current.LocalFolder.Path);

                PortableDataLayer.DatabaseManager dbmanager = new PortableDataLayer.DatabaseManager(siaqodb);
                dbmanager.Run();
            }

            base.OnNavigatedTo(e);
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            SiaqodbConfigurator.ApplyConfigurator(PortableDataLayer.DatabaseManager.GetDefaultConfig());

            string siaoqodbPath = Environment.CurrentDirectory + Path.DirectorySeparatorChar + @"siaqodb";

            if (!Directory.Exists(siaoqodbPath))
            {
                Directory.CreateDirectory(siaoqodbPath);
            }
            using (Siaqodb siaqodb = new Siaqodb(siaoqodbPath))
            {
                PortableDataLayer.DatabaseManager dbmanager = new PortableDataLayer.DatabaseManager(siaqodb);
                dbmanager.Run();
            }
            Console.WriteLine("Done, press enter...");
            Console.ReadLine();
        }