Exemple #1
0
        public IQueryable <product> getProduct(int code)
        {
            db_store_productEntities ctx = new db_store_productEntities();

            return(ctx.products.Where(x => x.code == code).Select(x => x));
        }
Exemple #2
0
        public IQueryable <transaction> getTransactions(int id)
        {
            db_store_productEntities ctx = new db_store_productEntities();

            return(ctx.transactions.Where(x => x.id == id).Select(x => x));
        }
Exemple #3
0
        public IQueryable <product> getProducts()
        {
            db_store_productEntities ctx = new db_store_productEntities();

            return(ctx.products);
        }