示例#1
0
 public BaseService(JinShopContext context)
 {
     _context = context;
     _dbSet   = _context.Set <TEntity>();
 }
示例#2
0
 public CategoryService(JinShopContext context) : base(context)
 {
     _context = context;
     _dbset   = _context.Set <Category>();
 }
示例#3
0
 public ProductService(JinShopContext context) : base(context)
 {
     _context = context;
     _dbSet   = _context.Set <Product>();
 }