using XGame.Framework.Asyncs;

namespace XGame.Framework.Database
{
    public interface IDatabaseAsync<TTable> : IAsync where TTable : class, ITable
    {
        /// <summary>
        /// 表名
        /// </summary>
        string TableName { get; }
        /// <summary>
        /// 开始
        /// </summary>
        void Start();
        TRepository GetResult<TRepository>() where TRepository : TableRepository<TTable, TRepository>;
    }

}
