demo20230512/Models/Paramemter/YearlyParameterArea.cs

36 lines
921 B
C#
Raw Normal View History

2023-05-12 10:20:28 +08:00
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; }
}
}