public void Delete(T entity) { //attach as modified as may already be in the context _objectSet.AttachAsModified(entity, true); _objectSet.DeleteObject(entity); }