public void InsertUniverities() { dataContext.ExecuteCommand("delete from University"); University yale = new University(); yale.Name = "Yale"; dataContext.Universities.InsertOnSubmit(yale); University beijingTech = new University(); beijingTech.Name = "Beijing Tech"; dataContext.Universities.InsertOnSubmit(beijingTech); dataContext.SubmitChanges(); MainDataGrid.ItemsSource = dataContext.Universities; }
partial void DeleteUniversity(University instance);
partial void UpdateUniversity(University instance);
partial void InsertUniversity(University instance);