WIP Chat PV

This commit is contained in:
Paul Schneider 2016-09-23 12:32:57 +02:00
commit c07b8cfd65
2 changed files with 5 additions and 2 deletions

View file

@ -181,6 +181,6 @@ namespace Yavsc.Models
public DbSet<EstimateTemplate> EstimateTemplates { get; set; } public DbSet<EstimateTemplate> EstimateTemplates { get; set; }
public DbSet<Contact> Contacts { get; set; }
} }
} }

View file

@ -12,7 +12,10 @@ namespace Yavsc.Models
[Required()] [Required()]
public string OwnerId { get; set; } public string OwnerId { get; set; }
[ForeignKeyAttribute("OwnerId"),JsonIgnore] [ForeignKeyAttribute("OwnerId"),NotMapped]
public virtual ApplicationUser Owner { get; set; } public virtual ApplicationUser Owner { get; set; }
[ForeignKeyAttribute("UserId"),NotMapped]
public virtual ApplicationUser User { get; set; }
} }
} }