partial void DeleteRoomBillingEquipment(RoomBillingEquipment instance);
partial void UpdateRoomBillingEquipment(RoomBillingEquipment instance);
partial void InsertRoomBillingEquipment(RoomBillingEquipment instance);
private void detach_RoomBillingEquipments(RoomBillingEquipment entity) { this.SendPropertyChanging(); entity.RoomBilling = null; }
private void attach_RoomBillingEquipments(RoomBillingEquipment entity) { this.SendPropertyChanging(); entity.Equipment = this; }
private EntitySet<RoomBillingEquipment> GetRoomBillingEquipments() { var set = new EntitySet<RoomBillingEquipment>(); foreach (RepeaterItem item in rpt_equipments.Items) { var quantity = GetRepeaterItemQuantity(item); //Do not add if quantity is 0 or empty if (quantity <= 0) continue; var roomBillingEquipment = new RoomBillingEquipment { Quantity = quantity, EquipmentId = GetRepeaterItemId(item) }; set.Add(roomBillingEquipment); } return set; }