public void InsertUniversities() { dataContext.ExecuteCommand("DELETE FROM University"); University yale = new University(); yale.Name = "Yale"; dataContext.Universities.InsertOnSubmit(yale); University bejingTech = new University(); bejingTech.Name = "Bejing Tech"; dataContext.Universities.InsertOnSubmit(bejingTech); dataContext.SubmitChanges(); mainDataGrid.ItemsSource = dataContext.Universities; }
partial void DeleteUniversity(University instance);
partial void UpdateUniversity(University instance);
partial void InsertUniversity(University instance);