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
Alex Brown
NA
10
0
Linq To Sql - Distinct
Jan 27 2009 1:13 PM
i want to return a disctinct list of manufacturers from my products table.
so far i got:
var manufacturers = db.ExecuteQuery<string>("SELECT DISTINCT Manufacturer FROM Product");
seems a little... dirty?
is there a better way of doing it? i only want to return a List<string> or something similar...
Reply
Answers (
1
)
Query from multiple tables
IQueryable and Many-to-Many relationship