blog tags api
This commit is contained in:
parent
ccc643b826
commit
71c16c1436
4 changed files with 161 additions and 8 deletions
|
|
@ -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; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue