コード例 #1
0
 public MonthlySpecialsViewComponent(SpecialsDataContext db)
 {
     _db = db;
 }
 public DataController(SpecialsDataContext specialsDb)
 {
     this._SpecialsDb = specialsDb;
 }
コード例 #3
0
 public HomeController(SpecialsDataContext db)
 {
     _db = db;
 }
 public MonthlySpecialsViewComponent(SpecialsDataContext specials)
 {
     this._specials = specials;
 }
コード例 #5
0
 public MonthlySpecialsViewComponent(SpecialsDataContext specials)
 {
     //Use dependency injection to inject the SpecialsDataContext class into the constructor of this ViewComponent, and of course
     //to get dependency injection to work it needs to be registered in the Startup Class's ConfigureServices method.
     _specials = specials;
 }
コード例 #6
0
 public SpecialsViewComponent(SpecialsDataContext specials)
 {
     _specials = specials;
 }
コード例 #7
0
 public MonthlySpecialsViewComponent(SpecialsDataContext specialsDataContext)
 {
     _specialsDataContext = specialsDataContext;
 }