I have a standard Identity
user in my app...
public class ApplicationUser : IdentityUser<int, ApplicationUserLogin, ApplicationUserRole, ApplicationUserClaim>
{...
...Which has Id
as primary key.
How can I change Id
to UserId?
I ask this because I have table that should be connected with AspNetUsers
table.
And I did it like this:
public class ApplicationUser : IdentityUser<int, ApplicationUserLogin, ApplicationUserRole, ApplicationUserClaim>
{...
public virtual ICollection<JobApply> JobApplies { get; set; }
And JobApply
code is:
public class JobApply
{...
public int ApplicationUserId { get; set; }
public virtual ApplicationUser ApplicationUser { get; set; }
The result of this is this:
I want to make this better somehow.
I want to have UserId
instead Id
so columns in both table to be names UserId.
Is there a way to do this?