BaseService.cs 482 B

123456789101112131415161718
  1. using ZR.Repository;
  2. namespace ZR.Service
  3. {
  4. /// <summary>
  5. /// 基础服务定义
  6. /// </summary>
  7. /// <typeparam name="T"></typeparam>
  8. public class BaseService<T> : BaseRepository<T> where T : class, new()
  9. {
  10. //public IBaseRepository<T> baseRepository;
  11. //public BaseService(IBaseRepository<T> repository)
  12. //{
  13. // this.baseRepository = repository ?? throw new ArgumentNullException(nameof(repository));
  14. //}
  15. }
  16. }