demo20230512/Models/Paramemter/NonYearlyParameterCategory.cs

35 lines
880 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.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; }
}
}