I am currently working on a web app using Blazor 3.2 preview 3. I am using the WebAssembly version and Identity. My app consists of 3 parts: Client, Server and Shared. (just like the basic template).
My models classes are stored in the Shared section. However, the model class for Users is stored in the Server folder.
I would like to use in one of my model (stored in the Shared project):
public virtual ApplicationUser User { get; set; }
This is not possible because the Shared project does not have access to the Server project.
Do I have to put all my models classes in the Server and use DTOs in the Shared part?
Instead put all of my classes in the Shared folder (including ApplicationUsers)?
What’s the best practice?