public TodoController(OrderContext context) { this.orderDb = context; }
public static void Main() { using (var db = new OrderContext()) { var order = db.OrderItems.FirstOrDefault(); } }
public static List <Customer> GetAll() { using (var db = new OrderContext()) { return(db.Customers.ToList()); } }