1
Answer

Linq To Sql - Distinct

Alex Brown

Alex Brown

16y
11.5k
1
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...
Answers (1)
0
arun sahani
NA 129 0 8y
Do we have to buy the liscence of crystal report for using in the asp.net
0
Krishna Rajput Singh
NA 5.5k 2m 8y
Hi Thanks for writing below links helpful for you.......
http://www.c-sharpcorner.com/UploadFile/009464/how-to-use-crystal-report-in-Asp-Net-using-C-Sharp/
http://tektutorialshub.com/how-to-create-crystal-report-using-visual-studio/
https://code.msdn.microsoft.com/ASPNET-MVC-SAP-Crystal-e0564cac