namespace XGame.Framework.Database { public interface IDatabaseModule { TTable GetByKey(long key) where TTable : class, ITable where TRepository : TableRepository; TTable[] GetAll() where TTable : class, ITable where TRepository : TableRepository; IDatabaseAsync LoadAsync(string tableName) where TTable : class, ITable where TRepository : TableRepository; void Unload(string tableName); } }