partial void DeleteMainmenu(Mainmenu instance);
partial void InsertMainmenu(Mainmenu instance);
partial void UpdateMainmenu(Mainmenu instance);
private void SaveMenuCommandAction() { if (string.IsNullOrEmpty(this.InputScreenName)) { MessageBox.Show("组名不能为空"); return; } Mainmenu screen = new Mainmenu(); screen.Name = this.InputScreenName; screen.Desc = this.InputScreenDesc; _dataContext.Mainmenu.InsertOnSubmit(screen); _dataContext.SubmitChanges(); MessageBox.Show("添加成功"); this.Mainmenus.Add(screen); this.InputScreenName = string.Empty; this.InputScreenDesc = string.Empty; }