.net6.0 webapi demo

DepartmentBusiness.cs 589B

12345678910111213141516171819202122
  1. using EFCore.Sharding;
  2. using Microsoft.EntityFrameworkCore;
  3. using Microsoft.Extensions.Caching.Distributed;
  4. using Net6Demo_Api.Entity;
  5. using Net6Demo_Api.IBusiness;
  6. using Net6Demo_Api.Util;
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Linq;
  10. using System.Text;
  11. using System.Threading.Tasks;
  12. namespace Net6Demo_Api.Business
  13. {
  14. public class DepartmentBusiness : BaseBusiness<T_Sys_Department>, IDepartmentBusiness, ITransientDependency
  15. {
  16. public DepartmentBusiness(IDbAccessor db, IDistributedCache cache) : base(db, cache, true)
  17. {
  18. }
  19. }
  20. }