title: Referencing ApplicationUser in the Infrastructure library from an entity in the ApplicationCore library using Clean Architecture
body: <p>I am following the <a href="https://dotnet.microsoft.com/learn/web/aspnet-architecture" rel="noreferrer">Microsoft Architecture Guide</a> for creating an ASP.NET Core Web Application.</p>
  
  <p>The guide implements the clean architecture pattern which is pretty straight forward.</p>
  
  <p>If you look at the sample project which is using the clean architecture pattern you will see that there is an <a href="https://github.com/dotnet-architecture/eShopOnWeb/tree/master/src/Infrastructure/Identity" rel="noreferrer">Infrastructure/Identity</a> folder that contains the ApplicationUser.cs class.</p>
  
  <p><strong>My issue:</strong><br>
  I am using Entity Framework and one of my Business Entities in the ApplicationCore class library needs to contain a list of ApplicationUser. The ApplicationCore library shouldn't be referencing any other projects. It contains all of the Interfaces and Business Entities. How can I keep the ApplicationUser class in my Infrastructure/Identity project and still use it in one of my business entities in the ApplicationCore project without breaking the rules.</p>
  
  <p>I know one solution is to not store the ApplicationUser entity in my Infrastructure project. However, I feel like it should be there since it will always rely on Identity as it implements IdentityUser.</p>