IDatabaseAsync.cs 455 B

123456789101112131415161718
  1. using XGame.Framework.Asyncs;
  2. namespace XGame.Framework.Database
  3. {
  4. public interface IDatabaseAsync<TTable> : IAsync where TTable : class, ITable
  5. {
  6. /// <summary>
  7. /// 表名
  8. /// </summary>
  9. string TableName { get; }
  10. /// <summary>
  11. /// 开始
  12. /// </summary>
  13. void Start();
  14. TRepository GetResult<TRepository>() where TRepository : TableRepository<TTable, TRepository>;
  15. }
  16. }