BemsPriceCode.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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 BemsPriceCode {
  7. public BemsPriceCode() {
  8. BemsSitePrice = new HashSet<BemsSitePrice>();
  9. BemsSitePriceHistory = new HashSet<BemsSitePriceHistory>();
  10. }
  11. //요금설정
  12. [Display(Name = "요금코드"), Key]
  13. [StringLength(20)]
  14. public string PriceCode { get; set; }
  15. [Display(Name = "요금내용")]
  16. [StringLength(200)]
  17. public string PriceCodeDesc { get; set; }
  18. [Display(Name = "에너지 타입 Id (전력, 가스, 수도)")]
  19. public short? FuelTypeId { get; set; }
  20. [Display(Name = "단위")]
  21. [StringLength(20)]
  22. public string Unit { get; set; }
  23. [ForeignKey("FuelTypeId")]
  24. public virtual BemsFuelType FuelType { get; set; }
  25. [InverseProperty("PriceCodeNavigation")]
  26. public virtual ICollection<BemsSitePrice> BemsSitePrice { get; set; }
  27. [InverseProperty("PriceCodeNavigation")]
  28. public virtual ICollection<BemsSitePriceHistory> BemsSitePriceHistory { get; set; }
  29. }
  30. }