Skip to main content
Let’s discuss how we can update the name, address, and position of an existing person using entities.

Code

Walk-through

In the above example, we have used a mix of entities and rows. We have taken rows here since some of the properties that are exposed by the person entity are rows. For example, the position property of the person is exposed as a row. We first change the name of the person we want and then retrieve a position row and assign the retrieved row as the position of the person. We have changed the address by accessing the properties of the address row through the person property itself. When we finally save the person property, the address that was assigned to the person will get updated with the new values we specified.