I'm new to LINQ,
I want to create a list of objects from my dbcontext where a specific field is set to true.
Is that what I have so far, but am getting an error message?
using (var db = new dbContext())
{
return (from s in db.sims.Where(x=>x.has_been_modified == true) select x).ToList();
}
EDIT:
private List<String> GetUpdatedEntries()
{
using (var db = new dbContext())
{
return db.sims.Where(x => x.has_been_modified).ToList();
}
}
source
share