Validated book queries are obsolete
This commit is contained in:
parent
ead4b97c4f
commit
bf09fe4a91
3 changed files with 48 additions and 2 deletions
37
Yavsc/Models/Access/BlackList.cs
Normal file
37
Yavsc/Models/Access/BlackList.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue