Skip to content

Adding ApplicationUser as Navigation Property to entities #127

Answered by iammukeshm
pashaie asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

ApplicationUser inherits from IdentityUser, which again has a dependency on Microsoft.AspNetCore.Identity package. If we were to add the ApplicationUser to Domain / Core Projects, this would add an additional dependency to the Core Layer which is not desirable. Here, ApplicationUser cannot be treated as an entity.

Instead, we have an adapted class / dto named as UserDetailsDto.

ApplicationUser is more of a secured model and should not be used as Navigation Property.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@pashaie
Comment options

@dotnetshadow
Comment options

@justSteve
Comment options

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