BemsPriceType.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. namespace FMSAdmin.Entities {
  6. public partial class BemsPriceType {
  7. public BemsPriceType() {
  8. BemsPriceFormula = new HashSet<BemsPriceFormula>();
  9. BemsPriceMeta = new HashSet<BemsPriceMeta>();
  10. BemsSitePrice = new HashSet<BemsSitePrice>();
  11. BemsSitePriceHistory = new HashSet<BemsSitePriceHistory>();
  12. FmsEnergyAnalysis = new HashSet<FmsEnergyAnalysis>();
  13. }
  14. //요금 유형
  15. [Display(Name = "요금 타입 ID"), Key]
  16. public int PriceTypeId { get; set; }
  17. [Display(Name = "요금 유형 이름")]
  18. [StringLength(200)]
  19. public string PriceTypeIdDesc { get; set; }
  20. [Display(Name = "에너지 타입 Id (전력, 가스, 수도)"), Key]
  21. public short? FuelTypeId { get; set; }
  22. [ForeignKey("FuelTypeId")]
  23. public virtual BemsFuelType FuelType { get; set; }
  24. [InverseProperty("PriceType")]
  25. public virtual ICollection<BemsPriceFormula> BemsPriceFormula { get; set; }
  26. [InverseProperty("PriceType")]
  27. public virtual ICollection<BemsPriceMeta> BemsPriceMeta { get; set; }
  28. [InverseProperty("PriceType")]
  29. public virtual ICollection<BemsSitePrice> BemsSitePrice { get; set; }
  30. [InverseProperty("PriceType")]
  31. public virtual ICollection<BemsSitePriceHistory> BemsSitePriceHistory { get; set; }
  32. [InverseProperty("PriceType")]
  33. public virtual ICollection<FmsEnergyAnalysis> FmsEnergyAnalysis { get; set; }
  34. }
  35. }