using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Web; using Resources; namespace Weee.Models.Paramemter { public class YearlyParameterType : MultiLanguage { public YearlyParameterType() { Parameters = new HashSet(); } public YearlyParameterType(string name) { DisplayNameTW = name; Parameters = new HashSet(); } public int ID { get; set; } [Required] public int CategoryID { get; set; } [ForeignKey("CategoryID")] public virtual YearlyParameterCategory Category { get; set; } [InverseProperty("Type")] public virtual ICollection Parameters { get; set; } } }