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
Post a Comment