You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These will be joined in the database based on the LeaseNumber. Therefor I would like to create SubPositions based on the data of positions by using the Position object as some kind of template object so that properties that have the same name in both classes will get the same data.
In the case above, all subPositions have random data for InventoryNumber and Status but the same LeaseNumber as the Position object.
It is important, that the template object does not need to be of the same type as the objects are I want to create. Thus we need to check for each property if the template has a property with the same name.
The text was updated successfully, but these errors were encountered:
I have following classes without any inheritance:
These will be joined in the database based on the LeaseNumber. Therefor I would like to create SubPositions based on the data of positions by using the Position object as some kind of template object so that properties that have the same name in both classes will get the same data.
In the case above, all subPositions have random data for InventoryNumber and Status but the same LeaseNumber as the Position object.
It is important, that the template object does not need to be of the same type as the objects are I want to create. Thus we need to check for each property if the template has a property with the same name.
The text was updated successfully, but these errors were encountered: