refactoring the file name
parent
80b91cf480
commit
183fcdc3b1
@ -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…
Reference in New Issue