blog acl
This commit is contained in:
parent
32ca008d20
commit
23dc3c3f19
11 changed files with 1770 additions and 91 deletions
20
Yavsc/Models/Access/CircleAuthorizationToBlogPost.cs
Normal file
20
Yavsc/Models/Access/CircleAuthorizationToBlogPost.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
namespace Yavsc.Models.Access
|
||||
{
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Models.Relationship;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
public class CircleAuthorizationToBlogPost
|
||||
{
|
||||
public long CircleId { get; set; }
|
||||
public long BlogPostId { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
[ForeignKey("BlogPostId")]
|
||||
public virtual Blog Post { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
[ForeignKey("CircleId")]
|
||||
public virtual Circle Allowed { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue