Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args)
- {
- var context=new WebDataContext("http://localhost:18752/Northwind.svc");
- var query = from p in context.CreateQuery<Product>("Products")
- where p.UnitsInStock > 100
- select p;
- foreach (Product p in query)
- {
- Console.WriteLine(p.ProductName+", UnitsInStock="+p.UnitsInStock);
- }
- }
Add Comment
Please, Sign In to add comment