using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Filtration.ObjectModel { [Table("ItemSet")] public class ItemSet { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public ItemSet() { // ReSharper disable once VirtualMemberCallInContructor Items = new HashSet(); } public long Id { get; set; } [Required] [StringLength(200)] public string Name { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public ICollection Items { get; set; } } }