using System.Collections; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Props.Models.Search { public class QueryWordInfo { public int Id { get; set; } [Required] public string Word { get; set; } public uint Hits { get; set; } [Required] public virtual ISet Preceding { get; set; } [Required] public virtual ISet Following { get; set; } public QueryWordInfo() { this.Preceding = new HashSet(); this.Following = new HashSet(); } public QueryWordInfo(ISet preceding, ISet following) { this.Preceding = preceding; this.Following = following; } } }