using Newtonsoft.Json; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Runtime.Serialization; using System.Web; using Weee.Models.Paramemter; using Weee.Models.Survey_form_metadata; namespace Weee.Models { #region Waste [Table("ProductLCAFabSurveyForm_Wastes")] public class Waste : SheetData { public int ID { get; set; } public decimal? WaterBOD { get; set; } public decimal? WaterCOD { get; set; } public decimal? WaterCMD { get; set; } public decimal Scalar { get; set; } public decimal KgCO2e { get; set; } public DQI DQI { get; set; } public string DQIDescription { get; set; } public string Description { get; set; } public WasteType Type { get; set; } public enum WasteType { water, other } public int? ParameterID { get; set; } [ForeignKey("ParameterID")] [JsonIgnore] [IgnoreDataMember] public virtual NonYearlyParameter Parameter { get; set; } public int LCAID { get; set; } [ForeignKey("LCAID")] [JsonIgnore] [IgnoreDataMember] public virtual ProductLCA OwnerLCA { get; set; } } #endregion }