示例#1
0
 public HomeController(WPContext context)
 {
     dbContext = context;
 }
 // here we can "inject" our context service into the constructor
 public UsersController(WPContext context)
 {
     dbContext = context;
 }
示例#3
0
 public WeddingController(WPContext context)
 {
     _db = context;
 }
示例#4
0
 public HomeController(WPContext context)
 {
     _db = context;
 }
 // here we can "inject" our context service into the constructor
 public WeddingController(WPContext context)
 {
     dbContext = context;
 }
示例#6
0
 public PlantService(WPContext context)
 {
     _context = context;
 }