Click here to Skip to main content
15,035,723 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using the query builder to to fetch data from the database, but the input parameter will be from a control so how can we specify a control in the query builder can you please provide in the syntax for doing that
[no name] 13-Apr-11 17:59pm
What query builder?

1 solution

Query builder method is available in .NET Framework 4.0
To use control with it, use it like this:
ObjectQuery<Product> productQuery =
    .Where("it.StandardCost > @cost", new ObjectParameter("cost", Textbox1.Text));

You can see the detail @[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900