assuming that the entity == Entities
the model is linked with his "using"
and you want to delete a record of the
"Record" table with id = 1
you can use
using (Entities entitiesContext = new Entities())
{
var e = from x in entitiesContext.Records
where x.Id = 1
select x;
Record record = e.FirstOrDefault();
entitiesContext.Records.DeleteObject(record);
entitiesContext.SaveChanges();
}
if the record is not only one but a lot, you have to use a foreach loop with the DeleteObject method
and outside of the loop you can save changes