Microsoft
Software
Hardware
Network
Question : converting sql to linq not working
public static DataSet GetItemLists(int group_code)
{
//converting following sql command to linq
// string sql = "SELECT Distinct parent_sku, group_code, parent_sku, description "
// + "FROM item_view "
// + "WHERE group_code=@group_code ";
using (WellsMusDataContext dc = new WellsMusDataContext())
{
List<item_view> query1 = (from item in dc.item_views
where item.group_code == group_code
select item).Distinct().ToList<it
em_view>()
;
//this is my custom class that converts list to dataset
CollectionToDataSet<List<i
tem_view>>
c = new CollectionToDataSet<List<i
tem_view>>
(query1);
return c.CreateDataSet();
}
but it gives repeating data which is not distinct Can any body help me on this?
thank you
Answer : converting sql to linq not working
A large number of host providers actually have a profile client installer that will just need your email address and password and will set everything up for you.
Random Solutions
Thumbnail Photo on Exchange 2007
redirecting the Notes email into custom email database (not into default Notes email database)
simple math programming question
Java Applet Server not starting
Exchange 2010. Install Failed, now can't uninstall
How can I check for an install new updates for Symantec Backup Exec? I have clicked on the Help drop down menu, but don't see any options for updates
ant ftp error
Raid 1 Rebuild Failed - Adaptec 1210SA
Software for use with EE
Create a simple movie cataqlog with XML