public tutorial1Controller(YourContext context)
 {
     _context = context;
 }
 public HomeController(YourContext context)
 {
     _context = context;
 }
Exemplo n.º 3
0
 public UserController(YourContext context)
 {
     _context = context;
 }
Exemplo n.º 4
0
 // -------------------- CONSTRUCTOR --------------------
 public UserController(YourContext context)
 {
     database = context;
     Console.WriteLine("###### CONTEXT ACQUIRED");
 }
        public IdeaController(YourContext context)

        {
            _context = context;
        }
Exemplo n.º 6
0
 public SplashPageController(YourContext context)
 {
     _context = context;
 }
Exemplo n.º 7
0
 public OurActivitesController(YourContext context)
 {
     _context = context;
 }
Exemplo n.º 8
0
 public ActionController(YourContext context)
 {
     _context = context;
 }
 public CustomerService()
 {
     context = ContextFactory.GetDBContext();
 }
        public ActivityController(YourContext context)

        {
            _context = context;
        }
 // here we can "inject" our context service into the constructor
 public HomeController(YourContext context, IHostingEnvironment e)
 {
     dbContext = context;
     he        = e;
 }