Skip to content

Map a FK element to target string #1060

Closed Answered by latonz
hiperoxid98 asked this question in Q&A
Discussion options

You must be logged in to vote

Your MapProperty configuration seems to target the objects of the list not the list itself that is why you also need to configure it on the objects:

  public partial List<GetAllTask> ToGetAllTask(List<TaskSub> taskSub);

[MapProperty(new[] { nameof(TaskSub.CreatedByUser), nameof(TaskSub.CreatedByUser.FullName) }, new[] { nameof(GetAllTask.User) })]public partial GetAllTask ToGetAllTask(TaskSub taskSub);

Replies: 1 comment 1 reply

Comment options

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

Answer selected by hiperoxid98
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