Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
How can i create a many to one relationship with member, for exemple one member have a many adress, i'm starting in umbraco please someone has a tutorial or a video
Hi Renner
How should relationships look like?
Do you want to store some data in the member?
Try to look how to work with members - https://our.umbraco.org/documentation/getting-started/data/members/
It looks like you need to create addresses property for each member and then use it. Ask if it's not clear )
Thanks,
Alex
The member will have store a id of a city and the city a list of members like a entity framework relationship
Are you managing members via Umbraco members section?
Yes, but i need to edit this properties but not using the custom. Creating in de code a new mapping
Then you need to add city picker to your members.
The city picker can be a content picker, then get all members by City value.
this way the member will have a city id in database?
Hi Renner,
Id of City node in Umbraco or id of City row of picker.
Do you want to be able to set and control ids?
City node? but i just have city in a db table
Renner, I would suggest you use nuPickers, there is already created SQL DropDown Picker datatype, that you can use - https://our.umbraco.org/projects/backoffice-extensions/nupickers/
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Creating relationship in umbraco database
How can i create a many to one relationship with member, for exemple one member have a many adress, i'm starting in umbraco please someone has a tutorial or a video
Hi Renner
How should relationships look like?
Do you want to store some data in the member?
Try to look how to work with members - https://our.umbraco.org/documentation/getting-started/data/members/
It looks like you need to create addresses property for each member and then use it. Ask if it's not clear )
Thanks,
Alex
The member will have store a id of a city and the city a list of members like a entity framework relationship
Hi Renner
Are you managing members via Umbraco members section?
Yes, but i need to edit this properties but not using the custom. Creating in de code a new mapping
Then you need to add city picker to your members.
The city picker can be a content picker, then get all members by City value.
this way the member will have a city id in database?
Hi Renner,
Id of City node in Umbraco or id of City row of picker.
Do you want to be able to set and control ids?
Alex
City node? but i just have city in a db table
Renner, I would suggest you use nuPickers, there is already created SQL DropDown Picker datatype, that you can use - https://our.umbraco.org/projects/backoffice-extensions/nupickers/
Thanks,
Alex
is working on a reply...