Hi,
I have to implement one logic where I have a no. of fields and based on the values I am entering in these fields I have to show the search result in my view.ie, whatever values I am entering in these fields I need to search the db and retrieve records. I t is not mandatory to enter value for all the fields. At a time I may need to search entering value in 1 field or two or many or all. Any time I have to show result based on the entered values. Should I use a procedure or using Linq directly is efficient? how to write the query efficiently?

Ravi KumarRank #2,085 · 690 reputationPosted Mar 4, 2015, 2:33 AM EST
Jaima Joseph93 reputationPosted Mar 4, 2015, 2:59 AM EST
Thank you Ravi kumar
Thanks a lot
Ravi KumarRank #2,085 · 690 reputationPosted Mar 4, 2015, 6:49 PM EST
you issue solved or not
Jaima Joseph93 reputationPosted Mar 8, 2015, 12:00 AM EST
I could not try your code as it was not so clear for me ,still I got some idea from it and trying to solve the problem
Once again thank you and once I complete my task I'l let you know how I could do it