Validated book queries are obsolete

This commit is contained in:
Paul Schneider 2016-12-12 18:37:54 +01:00
commit bf09fe4a91
3 changed files with 48 additions and 2 deletions

View file

@ -0,0 +1,37 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models.Access
{
public class BlackListed
{
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
public string UserId { get; set; }
public long ListId { get; set; }
[ForeignKey("ListId")]
public virtual BlackList BlackList { get; set; }
}
public class BlackList
{
public BlackList(long id, string target)
{
this.Id = id;
this.Target = target;
}
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
public string Target { get; set; }
[InverseProperty("BlackList")]
public virtual List<BlackListed> Items
{
get; set;
}
}
}