Ejemplo n.º 1
0
        public SingleResult <Customer> Get(int key)
        {
            ResetDataSource();
            var db = new AutoExpandContext();

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

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

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

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

            return(db.People);
        }
Ejemplo n.º 6
0
 public SingleResult<Customer> Get(int key)
 {
     ResetDataSource();
     var db = new AutoExpandContext();
     return SingleResult.Create(db.Customers.Where(c => c.Id == key));
 }
Ejemplo n.º 7
0
 public SingleResult<NormalOrder> Get(int key)
 {
     ResetDataSource();
     var db = new AutoExpandContext();
     return SingleResult.Create(db.NormalOrders.Where(o => o.Id == key));
 }
Ejemplo n.º 8
0
 public IQueryable<NormalOrder> Get()
 {
     ResetDataSource();
     var db = new AutoExpandContext();
     return db.NormalOrders;
 }
Ejemplo n.º 9
0
 public IQueryable<People> Get()
 {
     ResetDataSource();
     var db = new AutoExpandContext();
     return db.People;
 }
Ejemplo n.º 10
0
 public IQueryable<Customer> Get()
 {
     ResetDataSource();
     var db = new AutoExpandContext();
     return db.Customers;
 }