コード例 #1
0
        public App()
        {
            InitializeComponent();

            var path = DependencyService.Get <IPath>().GetDatabasePath(DbFilename);

            MainContext.SetPath(path);
            MainContext.GetInstance().Database.EnsureCreated();

            MainPage = new MainPage();
        }