36 lines
921 B
C#
36 lines
921 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Threading;
|
|
using System.Web;
|
|
using Resources;
|
|
|
|
namespace Weee.Models.Paramemter
|
|
{
|
|
public class YearlyParameterArea : MultiLanguage
|
|
{
|
|
public YearlyParameterArea()
|
|
{
|
|
Parameters = new HashSet<YearlyParameter>();
|
|
}
|
|
|
|
public YearlyParameterArea(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("Area")]
|
|
public virtual ICollection<YearlyParameter> Parameters { get; set; }
|
|
}
|
|
} |