I'm playing around with the Northwind database and by reading some tutorials I see that Categories should have an Add method, but it ain't working. Something is missing and I would appreciate someone else who knows more for some feedback.
public void AddCategory(string categoryname)
{
string connstring = WebConfigurationManager.ConnectionStrings["NorthwindConnectionString"].ConnectionString;
DataClasses1DataContext db = new DataClasses1DataContext(connstring);
Category category = new Category();
category.CategoryName = categoryname;
// db.Categories.Add(category);
db.SubmitChanges();
}