blacklisting + refactoring

This commit is contained in:
Paul Schneider 2016-12-13 10:57:25 +01:00
commit 67afd19d32
16 changed files with 235 additions and 24 deletions

View file

@ -1,14 +1,15 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using YavscLib;
namespace Yavsc.Models.Access
{
public class BlackListed
public class BlackListed: IBlackListed
{
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
public string UserId { get; set; }
public long OwnerId { get; set; }
public string OwnerId { get; set; }
[ForeignKey("OwnerId")]
public virtual ApplicationUser Owner { get; set; }