refactoring the file name
This commit is contained in:
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; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user