Un utilisitateur a plusieurs profiles

Il en a un préféré. Il peux en saisir de tout type.
This commit is contained in:
Paul Schneider 2017-01-09 10:08:20 +01:00
commit 2644ac2d60
27 changed files with 4174 additions and 49 deletions

View file

@ -8,12 +8,16 @@ namespace Yavsc.Models
{
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
[ForeignKeyAttribute("AspNetUsers.Id")]
public string UserId { get; set; }
[ForeignKeyAttribute("Skill.Id")]
[ForeignKey("UserId")]
public virtual ApplicationUser User { get; set; }
public long SkillId { get; set; }
[ForeignKey("SkillId")]
public virtual Skill Skill { get; set; }
public string Comment { get; set; }
public int Rate { get; set; }
}