Blog Post Id
This commit is contained in:
parent
c450bd7ff8
commit
67da921bce
22 changed files with 4869 additions and 96 deletions
|
|
@ -96,6 +96,9 @@ namespace Yavsc.Models.Blog
|
|||
[InverseProperty("Post")]
|
||||
public virtual List<Comment> Comments { get; set; }
|
||||
|
||||
[InverseProperty("Post")]
|
||||
public virtual BlogSpotPublication Publication { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether this post is published. Not a column: the
|
||||
/// existence of a row in <c>BlogSpotPublication</c>
|
||||
|
|
@ -147,5 +150,7 @@ namespace Yavsc.Models.Blog
|
|||
}).ToList() ?? new List<CircleAuthorization>();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ namespace Yavsc.Models
|
|||
public class BlogSpotPublication
|
||||
{
|
||||
[Key]
|
||||
public long BlogpostId { get; set; }
|
||||
|
||||
[ForeignKey("BlogpostId")]
|
||||
public virtual BlogPost BlogPost{ get; set; }
|
||||
public long PostId { get; set; }
|
||||
|
||||
[ForeignKey("PostId")]
|
||||
public virtual BlogPost Post{ get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue