I'm trying to run a delete statement on EF 5.0. that deletes let say 5000 ~ 40000 records here is my code:
using(myEntity ctx = new myEntity) {
var q = from s in ctx.MyTable.where( x => x.accountID == 1234) select s;
ctx.myTable.Remove(q);
// because there is no ctx.DeleteObject(whatever)
// since this is not EF 4.0
}
and here is the error: cannot convert from 'System.Linq.IQueryable' to 'namespace.myTable'
any idea?