コード例 #1
0
        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;
        }
コード例 #2
0
 partial void DeleteInventoryRegistryCheckMenu(InventoryRegistryCheckMenu instance);
コード例 #3
0
 partial void InsertInventoryRegistryCheckMenu(InventoryRegistryCheckMenu instance);
コード例 #4
0
		private void detach_InventoryRegestryCheckMenus(InventoryRegistryCheckMenu entity)
		{
			this.SendPropertyChanging();
			entity.InventoryRegistry = null;
		}
コード例 #5
0
		private void attach_InventoryRegestryCheckMenus(InventoryRegistryCheckMenu entity)
		{
			this.SendPropertyChanging();
			entity.ChecksMenu = this;
		}