using System.Collections.Generic; using Mhf.Server.Model; namespace Mhf.Server.Database { public interface IDatabase { void Execute(string sql); /// /// Return true if database was created, or false if not. /// bool CreateDatabase(); // Account Account CreateAccount(string name, string mail, string hash); Account SelectAccountById(int accountId); Account SelectAccountByName(string accountName); bool UpdateAccount(Account account); bool DeleteAccount(int accountId); } }