Skip to content
Discussion options

You must be logged in to vote

Hi @dvoyni,
yes, relation components can have additional fields as in your example. These fields are handled just like in normal components, so you can e.g. initialize them when adding the component with MapX.Add or MapX.AddFn. Or you get the component using a query or mapper, and set fields by simple assignment. Note that the SetRelations method is only for changing targets of components that were already added, and does not allow to change field values in the same operation.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dvoyni
Comment options

Answer selected by mlange-42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants