In the Shared project I have model class:
public class ItemListing
{
public Guid Id { get; set; }
public ApplicationUser User { get; set; }//author of the listing
public string Description { get; set; }
}
the ApplicationUser : IdentityUser class resides in the Server project.
Can I:
- Move the
ApplicationUserclass to the Shared project so I can refer to it inItemListingclass? - Add reference to the Server project in the Shared project.
- Create
ApplicationUserDTOin the Shared project that would contain subset of properties ofApplicationUser, but then how do I need some kind of mapping?