How do I set up my domain and the LINQ statement so I can delete a record from a database?
public class Category { public int CategoryId { get; set; }
Taken from the VS2010 auto generated code:
Category category = db.Categories.Find(id); db.Categories.Remove(category); db.SaveChanges();