I master the new authorization system ASP.NET Identity and the following question arose. When using the code first approach, everything is perfectly formed, but I need to add further the Articles table, which should contain a foreign key to the AspNetUsers table (I need to pull out the name of the user who added the article, the table is formed using ASP.NET Identity), I try to do in the Article class that then type:
public Guid AspNetUserId { get; set; } public AspNetUsers AspNetUser { get; set; } But AspNetUsers is highlighted in red and does not see the table. Tell me how to get a connection like this. And also, will there be a problem for me in getting a user ID for entering it into the Articles table. Thank you in advance.