Why is user not a domain object? #489
Replies: 3 comments 2 replies
-
Just investigated this architecture and have the same question, how to add any one-to-one relationship to user User>ToDo... ? P.S. I just added one more project to my solution with all entities. But I would like to hear better solution :) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
You won't be able to reference the infrastructure project from the domain project, so your relationships would only be exposed through the user object. So I think so far the only option is to add a user object to domain that is different from the identity user. Any other thoughts on this? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Excuse my ignorance as I'm sure you have a good reason. I am a little confused as to why ApplicationUser is not a domain object. Perhaps it's because you are only using the user object for record keeping?
But say I wanted to assign a ToDo to a user in this design, I don't currently see a way to foreign key that relationship.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions