// Entity Framework - Delete using (var db = new BlogContext()) { var post = db.Posts.Find(1); db.Posts.Remove(post); db.SaveChanges(); }