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
T-SQL: Count number of tables in the DB (SQL server 2008)
Excel VBA Select All File Types From a Specified Folder
How do I use SFTP through a proxy server
How would I edit the code for additional levels from: How can I prep text files for import into Excel that are in subheading formats?
Delete query (sql)
SSH console: go to specified folder after login
"File Helper" reporting - Your system may have upopenable files - Why?
sharing permission in Windows2003
Having a webservice use a Session variable that is set in the project before the webservice is called.
Disabling software restriction policy