Avalari
✅ [DDD] Reference IdentityUser in Domain model class
Hi, I'm starting my jurney with DDD so please take it easy on me 😄
Any pointers on how to reference AppUser : IdentityUser (that's in Persistence layer) in a domain model class?
I have some entities that have:
and I want to use .Include(u => u.Owner) when getting the data using EF Core.
Problem is that AppUser : IdentityUser is defined in the Persistence layer, which Domain Layer has no access to, nor does it have the EF package.
What would be the best approach to deal with this?
6 replies
❔ Claim type of JwtRegisteredClaimNames.Name unrecognized as ClaimTypes.Name
Hello,
I'm working with an API that returns a token with below structure:
and using this:
When I try to access this.UserName = user.Identity.Name; it is always null. Am I doing something wrong here or is there a explicit conversion required?
3 replies
[Entity Framework] Issues with .Include()
Hi all! I have some issues trying to get data from my SQL Db.
Having 3 models (Set, SetContent and Item):
I have 3 pages:
- one to display all Sets
- one to display Content of specific Set
- one to display the specific Item details
The issue that I have is with the third one.
For the Item view page I would like to have a segment showing in what <Set> you can find it.
So my question is how should I form the call in order to get something like Item with SetContent with Set (name and releaseDate):
28 replies