Пример #1
0
        private string GetFullDatabaseFilePath(string databaseName)
        {
            var databaseFile         = this.GetDatabaseFileName(databaseName);
            var fullDatabaseFilePath =
                Path.Combine(DataDirectories.GetUserApplicationDatabasesDirectory(), databaseFile);

            return(fullDatabaseFilePath);
        }
Пример #2
0
        public void CreateNewDatabase()
        {
            if (!this.DatabaseExists())
            {
                if (!Directory.Exists(DataDirectories.GetUserApplicationDatabasesDirectory()))
                {
                    Directory.CreateDirectory(DataDirectories.GetUserApplicationDatabasesDirectory());
                }

                this.CreateDillyDallyDatabase(this._fullDatabaseFilePath);
            }
        }