2017-01-20 14:20:44 +01:00
|
|
|
|
namespace Yavsc.Models.Access
|
|
|
|
|
|
{
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
using Models.Relationship;
|
|
|
|
|
|
using Newtonsoft.Json;
|
2017-10-04 23:53:47 +02:00
|
|
|
|
using Blog;
|
2018-07-16 02:36:44 +02:00
|
|
|
|
using Yavsc.Abstract.Identity.Security;
|
2017-01-20 14:20:44 +01:00
|
|
|
|
|
2017-01-21 22:36:43 +01:00
|
|
|
|
public class CircleAuthorizationToBlogPost : ICircleAuthorization
|
2017-01-20 14:20:44 +01:00
|
|
|
|
{
|
|
|
|
|
|
public long CircleId { get; set; }
|
|
|
|
|
|
public long BlogPostId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[JsonIgnore]
|
|
|
|
|
|
[ForeignKey("BlogPostId")]
|
2017-10-04 23:53:47 +02:00
|
|
|
|
public virtual BlogPost Target { get; set; }
|
2017-01-20 14:20:44 +01:00
|
|
|
|
|
|
|
|
|
|
[JsonIgnore]
|
|
|
|
|
|
[ForeignKey("CircleId")]
|
|
|
|
|
|
public virtual Circle Allowed { get; set; }
|
2017-01-21 22:36:43 +01:00
|
|
|
|
|
2017-01-20 14:20:44 +01:00
|
|
|
|
}
|
2017-05-27 16:22:58 +02:00
|
|
|
|
}
|