// here we can "inject" our context service into the constructor
 public CrudeliciousController(CrudeliciousContext context)
 {
     dbContext = context;
 }
示例#2
0
 public HomeController(CrudeliciousContext context)
 {
     db = context;
 }