public class Job { public int id {get; set;} public string Name {get; set;} //set user foreign key public int UserId {get; set;} public virtual ApplicationUser User {get; set;} } public class ApplicationUser : IdentityUser { public virtual job Jobs {get; set;} } protected override void onModelCreating(DbModelBuiler modelBuilder) { modelBuilder.Entity<job> ().HasRequired(r => r.User);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)