refactoring the file name
This commit is contained in:
parent
6a3f4533cd
commit
569cd74760
2 changed files with 12 additions and 13 deletions
12
Yavsc/Model/Relationship/PostTag.cs
Normal file
12
Yavsc/Model/Relationship/PostTag.cs
Normal file
|
|
@ -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; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -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; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue