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
Win 2003 Server desktop icons do not appear after login
Need SBS 2008 R2 Premium Media
Accessing an FTP server internally that is on a different subnet.
How to read the data from MQRFH2 messages using MQ connector stage
SBS 2008: reverting from smart host/pop3 connector to exchange hosted email (DNS)?
use wireshark to capture whats happening during the logon process
Gridview Update not saving. Fields stay in edit mode.
Avast home edition
Need Excel User Function to Convert Tuesday, June 08, 2010 3:16 PM to mm/dd/yy
storing multiple image in one field