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