Пример #1
0
        public SingleResult <Customer> Get(int key)
        {
            ResetDataSource();
            var db = new AutoExpandContext();

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

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

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

            return(db.Customers);
        }
Пример #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;
 }
Пример #10
0
 public IQueryable<Customer> Get()
 {
     ResetDataSource();
     var db = new AutoExpandContext();
     return db.Customers;
 }