demo20230512/Models/PCR.cs

34 lines
979 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.Web;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Weee.Models.Paramemter;
using Resources;
namespace Weee.Models
{
public class PCR:MultiLanguage
{
public PCR()
{
ProductLCAs = new HashSet<ProductLCA>();
}
public int ID { get; set; }
[Required]
[Display(Name="Percentage", ResourceType = typeof(Resource))]
public decimal Percentage { get; set; }
[Display(Name = "StaticLabelGlobal_Description", ResourceType = typeof(Resource))]
public string Description { get; set; }
public decimal RecyclingParameterValue { get; set; }
[InverseProperty("PCR")]
[JsonIgnore][IgnoreDataMember]
public virtual ICollection<ProductLCA> ProductLCAs { get; set; }
}
}