blog tags api

This commit is contained in:
Paul Schneider 2017-09-20 13:07:13 +02:00
commit 71c16c1436
4 changed files with 161 additions and 8 deletions

View file

@ -2,11 +2,14 @@ using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models.Relationship
{
public partial class PostTag
public partial class BlogTag
{
[ForeignKey("PostId")]
public virtual Blog Post { get; set; }
public long PostId { get; set; }
[ForeignKey("TagId")]
public virtual Tag Tag{ get; set; }
public long TagId { get; set; }
}
}