using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Web; using Weee.Models.ExtensionMethods; namespace Weee.Models.Paramemter { public class YearlyParameterCategory { public YearlyParameterCategory() { } public YearlyParameterCategory(Categories category) { Category = category; Areas = new HashSet(); Types = new HashSet(); } public int ID { get; set; } [NotMapped] public string DisplayName { get { return Category.DisplayString(); } } public Categories Category { get; set; } [InverseProperty("Category")] public virtual ICollection Areas { get; set; } [InverseProperty("Category")] public virtual ICollection Types { get; set; } } }