demo20230512/Models/Paramemter/YearlyParameterType.cs

33 lines
895 B
C#
Raw Permalink 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.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; }
}
}