private void attach_Rooms(Room entity)
		{
			this.SendPropertyChanging();
			entity.Type = this;
		}
		private void detach_Rooms(Room entity)
		{
			this.SendPropertyChanging();
			entity.Type = null;
		}
 partial void DeleteRoom(Room instance);
 partial void UpdateRoom(Room instance);
 partial void InsertRoom(Room instance);
		private void attach_Rooms(Room entity)
		{
			this.SendPropertyChanging();
			entity.GentRegion = this;
		}
Beispiel #7
0
 public RoomResponse(Room room)
 {
     user = room.KotUser.Username;
     size = room.Size;
     address = room.Address;
     location = room.Location;
     description = room.Decsription;
     type = room.GetTypeName();
     price = room.Price;
     included = room.Included;
     email = room.Email;
     telephone = room.Telephone;
     added = room.Added;
     region = room.GetRegion();
     city = room.AltCity != null && room.AltCity != "" ? room.AltCity : "9000 Gent";
     attributes = room.GetAttributeNames();
     lat = room.Lat;
     lng = room.Long;
     link = "/Rooms/Detail/" + room.ID;
     mainImg = "/Content/files/imgs/" + room.GetMainImage();
 }