using (var db = new CrabContext())
{
var query = db.Reading.Select(s => new
{ s.Left1 })
.Select(x => x.ToString());
t1.Text = query;
//t1.Text == db.Reading.Select(s => new { s.Left1 });
}
I am here trying to retrieve data from database as per mentioned above but my t1.Text is not able to retrieve the data yet I get an error like
Can't implicitly convert type 'System.Linq.IQueryable ' to 'String'