Extend application user wtih table

I was able to follow this tutorial:

I am able to add cols directly onto the AspNetUsers table however I was wondering if someone had any guidance on how to link a separate model/table.


namespace Project.Models
    public partial class ApplicationUser
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string cellNumber { get; set; }

        public IEnumerable<ConsentForm> myForm { get; set; }

I am able to get the first three properties onto the table however, nothing seems to allow me to get the ConsentForm associated with this user. Any help would be appreciated!

Hi @Rick,

I recommend checking the EF Core documentation for instructions how to setup such a relationship. What you are trying to achieve boils down to EF Core configuration.

1 Like