diff --git a/Yavsc/Model/Relationship/PostTag.cs b/Yavsc/Model/Relationship/PostTag.cs new file mode 100644 index 00000000..a0774598 --- /dev/null +++ b/Yavsc/Model/Relationship/PostTag.cs @@ -0,0 +1,12 @@ +using System.ComponentModel.DataAnnotations.Schema; + +namespace Yavsc.Models +{ + public partial class PostTag + { + [ForeignKey("PostId")] + public virtual Blog Post { get; set; } + public long PostId { get; set; } + public long TagId { get; set; } + } +} diff --git a/Yavsc/Model/Relationship/Tagged.cs b/Yavsc/Model/Relationship/Tagged.cs deleted file mode 100644 index 3fb43a19..00000000 --- a/Yavsc/Model/Relationship/Tagged.cs +++ /dev/null @@ -1,13 +0,0 @@ - -using System.ComponentModel.DataAnnotations.Schema; - -namespace Yavsc.Models -{ - public partial class Tagged - { - [ForeignKey("Blog.Id")] - public long postid { get; set; } - [ForeignKey("tag.Id")] - public long TagId { get; set; } - } -}