Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I am trying to fill my listview with data from my database using linq

How should i add my linq query

C#
var dt = new DataTable();
           var ds = new DataSet();
           ds.Tables.Add(dt);
           OleDbDataAdapter da = new OleDbDataAdapter();
           da.Fill(dt);



How should i add this code to code below.

C#
var s = new FakturaDBEntities();
            var kund = (from p in s.FakturaDB
                        select p);
Posted

1 solution

visit here to understand...

Fill Listview using LINQ[^]
 
Share this answer
 
Comments
Kurac1 26-Feb-14 2:45am    
But i am using win forms

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900