datacontext - linq to sql, want to retrieve data from sql server and storing in a List -


public partial class logentriesfield {     public static list<keyvaluelist> getallfields()     {         using (logentrydatamodel db = new logentrydatamodel())         {                                             var logentries = field in db.                             select field;             return logentries.tolist();         }     } } 

error 1 'ssilinq.logentrydatamodel' not contain definition 'logentries' , no extension method 'logentries' accepting first argument of type 'ssilinq.logentrydatamodel' found (are missing using directive or assembly reference?)

logentries table of database db. why getting error?

my main aim retrieve key , value in list table in db.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -