I'm studying Net Core and Blazor and I'm facing the following problem.
I created a new Blazor web assembly solution, net core hosted with user authentication. The solution is split in three projects by default: client, server and shared. I put my models in the shared project but now I need to set relationships (one-to-many, many-to-many, ... as described here: https://docs.microsoft.com/en-us/ef/core/modeling/relationships ) between my models and the ApplicationUser model which lives inside the server project.
Inside my model I can't put
public ApplicationUser User { get; set; }
because I cannot do this
using mysolutionname.server;
because the server project depends on shared and shared cannot depend on server (circular dependency).
How do I solve this?