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>;
    }

}
