public FruitsController(FruitsContext context)
 {
     this.db = context;
 }
Beispiel #2
0
 protected override void Dispose(bool disposing)
 {
     this._context.Dispose();
     this._context = null;
     base.Dispose(disposing);
 }
Beispiel #3
0
 public FruitsController()
 {
     this._context = new FruitsContext();
 }
 public FruitsController(FruitsContext context)
 {
     _context = context;
 }