TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
James
NA
1
0
Best way?
Jun 21 2008 12:24 PM
Firstly, im an old c programmer, so probably got some daft questions.
Have created a simple web page, with a simple gridview control on it.
I have a sql database which i have linked to using linq.
Ive created a nice pictorial view of my tables using the server explorer and this has created default classes for each table.
I can simply create my linq query, and bind it to the control, this works fine, except, i would like to push the linq code into a class firstly to tidy up my code, and secondly to reuse as its called from a few different places.
My first attempt partially succeded, shove the linq code into its own static class, it tuns, but i cant return the results of the query easily.
Whats the simplist way to do this?
Thanks,
Jim
Reply
Answers (
1
)
Business Logic to LINQ
Linq 'where' and 'and' not working??