35 lines
880 B
C#
35 lines
880 B
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 NonYearlyParameterCategory
|
|||
|
{
|
|||
|
public NonYearlyParameterCategory()
|
|||
|
{
|
|||
|
}
|
|||
|
public NonYearlyParameterCategory(Categories category )
|
|||
|
{
|
|||
|
Category = category;
|
|||
|
Types = new HashSet<NonYearlyParameterType>();
|
|||
|
}
|
|||
|
|
|||
|
public int ID { get; set; }
|
|||
|
[NotMapped]
|
|||
|
public string DisplayName
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return Category.DisplayString();
|
|||
|
}
|
|||
|
}
|
|||
|
public Categories Category { get; set; }
|
|||
|
|
|||
|
[InverseProperty("Category")]
|
|||
|
public virtual ICollection<NonYearlyParameterType> Types { get; set; }
|
|||
|
}
|
|||
|
}
|