WIP Chat PV

This commit is contained in:
2016-09-23 12:32:57 +02:00
parent af1b9289e6
commit c88a8bef79
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; }
} }
} }