Example #1
0
        public SingleResult <Customer> Get(int key)
        {
            ResetDataSource();
            var db = new AutoExpandContext();

            return(SingleResult.Create(db.Customers.Where(c => c.Id == key)));
        }
Example #2
0
        public IQueryable <NormalOrder> Get()
        {
            ResetDataSource();
            var db = new AutoExpandContext();

            return(db.NormalOrders);
        }
Example #3
0
        public SingleResult <NormalOrder> Get(int key)
        {
            ResetDataSource();
            var db = new AutoExpandContext();

            return(SingleResult.Create(db.NormalOrders.Where(o => o.Id == key)));
        }
Example #4
0
        public IQueryable <Customer> Get()
        {
            ResetDataSource();
            var db = new AutoExpandContext();

            return(db.Customers);
        }
Example #5
0
        public IQueryable <People> Get()
        {
            ResetDataSource();
            var db = new AutoExpandContext();

            return(db.People);
        }
 public SingleResult<Customer> Get(int key)
 {
     ResetDataSource();
     var db = new AutoExpandContext();
     return SingleResult.Create(db.Customers.Where(c => c.Id == key));
 }
 public SingleResult<NormalOrder> Get(int key)
 {
     ResetDataSource();
     var db = new AutoExpandContext();
     return SingleResult.Create(db.NormalOrders.Where(o => o.Id == key));
 }
 public IQueryable<NormalOrder> Get()
 {
     ResetDataSource();
     var db = new AutoExpandContext();
     return db.NormalOrders;
 }
 public IQueryable<People> Get()
 {
     ResetDataSource();
     var db = new AutoExpandContext();
     return db.People;
 }
 public IQueryable<Customer> Get()
 {
     ResetDataSource();
     var db = new AutoExpandContext();
     return db.Customers;
 }