score:2

Accepted answer

Try to use Z.EntityFramework.Plus.EF6 library:

db.Item2.Where(x => x.TemplateID == idT).Delete();

Related Articles