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
In between Asterisk BLF
Can't access variable in code behind page
Laptop running windows vista, SYSTEM process goes to 100% cpu after being accessed by any computer on the network.
Which AV receiver will cover listed requirements?
Replace missing images with default image
Error message when replying, sending, openning email in OWA
Adding one cell to the bottom of a named range defined byan OFFSET
SQL*Loader - Trim Leading & Trailing Space for Columns with Spaces in Name
How do I add rows to a datagridview based upon a For Each statement in VS2008?
Setting Folder Permission in Windows XP - VB Script