示例#1
0
        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;
        }
示例#2
0
 partial void DeleteUniversity(University instance);
示例#3
0
 partial void UpdateUniversity(University instance);
示例#4
0
 partial void InsertUniversity(University instance);