33 lines
895 B
C#
33 lines
895 B
C#
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<YearlyParameter>();
|
|
}
|
|
public YearlyParameterType(string name)
|
|
{
|
|
DisplayNameTW = name;
|
|
Parameters = new HashSet<YearlyParameter>();
|
|
}
|
|
public int ID { get; set; }
|
|
|
|
[Required]
|
|
public int CategoryID { get; set; }
|
|
[ForeignKey("CategoryID")]
|
|
public virtual YearlyParameterCategory Category { get; set; }
|
|
|
|
[InverseProperty("Type")]
|
|
public virtual ICollection<YearlyParameter> Parameters { get; set; }
|
|
|
|
}
|
|
} |