public TopicsController(MyWebDbContext context) { _context = context; }
public Repository(MyWebDbContext context) { Db = context; DbSet = Db.Set <TEntity>(); }
public UserRepository(MyWebDbContext context) : base(context) { }
public LinesController(MyWebDbContext context) { _context = context; }
public SectionsController(MyWebDbContext context) { _context = context; }
//构造函数注入 public UnitOfWork(MyWebDbContext context) { _context = context; }