41 lines
1.0 KiB
C#
41 lines
1.0 KiB
C#
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<YearlyParameterArea>();
|
|
Types = new HashSet<YearlyParameterType>();
|
|
}
|
|
|
|
public int ID { get; set; }
|
|
|
|
[NotMapped]
|
|
public string DisplayName
|
|
{
|
|
get
|
|
{
|
|
return Category.DisplayString();
|
|
}
|
|
}
|
|
|
|
public Categories Category { get; set; }
|
|
|
|
[InverseProperty("Category")]
|
|
public virtual ICollection<YearlyParameterArea> Areas { get; set; }
|
|
|
|
[InverseProperty("Category")]
|
|
public virtual ICollection<YearlyParameterType> Types { get; set; }
|
|
}
|
|
} |