BemsPriceFormula.cs 1.1 KB

1234567891011121314151617181920212223242526272829
  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 BemsPriceFormula {
  7. //요금 산출 수식
  8. [Display(Name = "현장 고유번호"), Key]
  9. public int SiteId { get; set; }
  10. [Display(Name = "요금 타입 ID"), Key]
  11. public int PriceTypeId { get; set; }
  12. [Display(Name = "설비 타입 ID"), Key]
  13. public int FacilityTypeId { get; set; }
  14. [Display(Name = "수식 ID"), Key]
  15. public int FormulaId { get; set; }
  16. [Display(Name = "설비 코드"), Key]
  17. public int FacilityCode { get; set; }
  18. [Display(Name = "수식 사용 여부"), Required]
  19. [StringLength(1)]
  20. public string UseYN { get; set; }
  21. [ForeignKey("SiteId,FacilityTypeId,FacilityCode,FormulaId")]
  22. public virtual BemsFormula BemsFormula { get; set; }
  23. [ForeignKey("PriceTypeId")]
  24. public virtual BemsPriceType PriceType { get; set; }
  25. }
  26. }