BemsFormula.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 enum TimeInterval {
  7. QuarterMin = 1,
  8. Hour,
  9. Day,
  10. Month,
  11. Year
  12. }; public partial class BemsFormula {
  13. public BemsFormula() {
  14. BemsFormulaParameter = new HashSet<BemsFormulaParameter>();
  15. BemsPriceFormula = new HashSet<BemsPriceFormula>();
  16. }
  17. //성능분석식
  18. [Display(Name = "현장 고유번호"), Key]
  19. public int SiteId { get; set; }
  20. [Display(Name = "설비종류"), Key]
  21. public int FacilityTypeId { get; set; }
  22. [Display(Name = "설비코드"), Key]
  23. public int FacilityCode { get; set; }
  24. [Display(Name = "수식 고유번호"), Key]
  25. public int FormulaId { get; set; }
  26. [Display(Name = "수식 내용"), Required]
  27. [StringLength(120)]
  28. public string Formula { get; set; }
  29. [ForeignKey("FacilityTypeId,FormulaId")]
  30. public virtual BemsFormulaBase FormulaBase { get; set; }
  31. [InverseProperty("BemsFormula")]
  32. public virtual ICollection<BemsFormulaParameter> BemsFormulaParameter { get; set; }
  33. [InverseProperty("BemsFormula")]
  34. public virtual ICollection<BemsPriceFormula> BemsPriceFormula { get; set; }
  35. }
  36. }