namespace HuanMeng.DotNetCore.Base
{
    public abstract class BLLBase<TDao> where TDao : DaoBase
    {
        /// <summary>
        /// _serviceProvider,提供基本依赖注入支持
        /// </summary>
        protected readonly IServiceProvider _serviceProvider;


        /// <summary>
        /// _dao,提供数据访问支持
        /// </summary>
        public abstract TDao Dao { get; }


        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="serviceProvider"></param>
        /// <param name="dao"></param>
        public BLLBase(IServiceProvider serviceProvider)
        {
            _serviceProvider = serviceProvider;
        }
    }
}
