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
E-mail messages not displaying correctly
DOS Batch Turnkey system for Win95
asp.net: How to bind Images to a ListView from a Database - I have a special need! the Image have already be downloaded
What is the best GUI for MySQLfor Windows and why?
Help Button in MsgBox for MS-Access
RHEL command to do an LS and have the result stop until you hit the space bar
migrate drupal from CentOS 4 to Centos 5 -----Also, Physical Machine to Virtual Machine
Cross Domain Policy
Guest Wireless Network
Delete blank line from textarea