I was following Julia Lermans book on DbContext, she uses the remove command, but I cant. So this works fine for me and the record is removed from the database
using (var anything = new AscentEntities())
var something = (from d in anything.Qte_Lines where d.LinesID == 49 select d).Single();
but if I change .DeleteObject to .Remove I get an error. She seeme to use the remove command with no problems in the examples.