public Boolean AddInventoryRegistryCheckMenu(Int32 registryId, Int32 checkMenuId) { InventoryRegistryCheckMenu item; try { item = new InventoryRegistryCheckMenu(); item.ChecksMenuId = checkMenuId; item.InventoryRegistryId = registryId; using (menuzRusDataContext db = new menuzRusDataContext(base.connectionString)) { db.InventoryRegistryCheckMenus.InsertOnSubmit(item); db.SubmitChanges(); } } catch (Exception ex) { return false; } return true; }
partial void DeleteInventoryRegistryCheckMenu(InventoryRegistryCheckMenu instance);
partial void InsertInventoryRegistryCheckMenu(InventoryRegistryCheckMenu instance);
private void detach_InventoryRegestryCheckMenus(InventoryRegistryCheckMenu entity) { this.SendPropertyChanging(); entity.InventoryRegistry = null; }
private void attach_InventoryRegestryCheckMenus(InventoryRegistryCheckMenu entity) { this.SendPropertyChanging(); entity.ChecksMenu = this; }