Ajoute ou supprime des cercle aux posts
This commit is contained in:
parent
e35c0d23c2
commit
d3e7942785
19 changed files with 199 additions and 67 deletions
|
|
@ -3,18 +3,20 @@ namespace Yavsc.Models.Access
|
|||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Models.Relationship;
|
||||
using Newtonsoft.Json;
|
||||
using YavscLib;
|
||||
|
||||
public class CircleAuthorizationToBlogPost
|
||||
public class CircleAuthorizationToBlogPost : ICircleAuthorization
|
||||
{
|
||||
public long CircleId { get; set; }
|
||||
public long BlogPostId { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
[ForeignKey("BlogPostId")]
|
||||
public virtual Blog Post { get; set; }
|
||||
public virtual Blog Target { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
[ForeignKey("CircleId")]
|
||||
public virtual Circle Allowed { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue