public void Run(string baseDirectory) { if (database.DatabaseType == DatabaseType.SQLite) { string databasePath = baseDirectory + "\\db.db"; if (!File.Exists(databasePath)) { //File.Delete(); string command = File.ReadAllText(baseDirectory + "Data\\Scripts\\SQLite.sql"); depot.Run(command); User user = new User(); user.Name = "*****@*****.**"; user.Password = passwordHasher.HashPassword("Duesenstrahl2017!"); user.IsLocal = true; userDepot.Save(user); } } }
/// <summary> /// Saves the user. /// </summary> /// <param name="user">The user.</param> public void Save(User user) { userDepot.Save(user); }