コード例 #1
0
 partial void DeleteRoomBillingEquipment(RoomBillingEquipment instance);
コード例 #2
0
 partial void UpdateRoomBillingEquipment(RoomBillingEquipment instance);
コード例 #3
0
 partial void InsertRoomBillingEquipment(RoomBillingEquipment instance);
コード例 #4
0
		private void detach_RoomBillingEquipments(RoomBillingEquipment entity)
		{
			this.SendPropertyChanging();
			entity.RoomBilling = null;
		}
コード例 #5
0
		private void attach_RoomBillingEquipments(RoomBillingEquipment entity)
		{
			this.SendPropertyChanging();
			entity.Equipment = this;
		}
コード例 #6
0
ファイル: Assign.aspx.cs プロジェクト: lucaslim/NorthBay
        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;
        }