Esempio n. 1
0
        // GET: Customer
        public ActionResult Index()
        {
            var Dbcontext = new NorthWindDbContext();
            var customer  = Dbcontext.Customers
                            .OrderBy(c => c.City);

            return(View(customer));
        }
Esempio n. 2
0
 public CategoriesController(NorthWindDbContext context)
 {
     _context = context;
 }
Esempio n. 3
0
 public EmployeeRepository(NorthWindDbContext ctx)
 {
     _ctx = ctx;
 }
Esempio n. 4
0
 private SupplierService()
 {
     _context = new NorthWindDbContext();
 }
Esempio n. 5
0
 public ProductsController(NorthWindDbContext context)
 {
     _context = context;
 }
Esempio n. 6
0
 public SqlCategoriesData(NorthWindDbContext context)
 {
     _context = context;
 }
 public EmployeeService()
 {
     _context = new NorthWindDbContext();
 }
Esempio n. 8
0
 public SqlSupplierData(NorthWindDbContext context)
 {
     _context = context;
 }
Esempio n. 9
0
 public SqlProductData(NorthWindDbContext context)
 {
     _context = context;
 }