BemsDeviceTypeUsingEnergy.cs 1010 B

12345678910111213141516171819202122232425
  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 BemsDeviceTypeUsingEnergy {
  7. //가동설비별 에너지 사용량
  8. [Display(Name = "가동설비 타입"), Key]
  9. public int DeviceTypeId { get; set; }
  10. [Display(Name = "에너지 구분"), Key]
  11. public short FuelTypeId { get; set; }
  12. [Display(Name = "고지단가 계약 구분")]
  13. public short? ContractType { get; set; }
  14. [Display(Name = "단위 사용량")]
  15. public double? Amount { get; set; }
  16. [ForeignKey("FuelTypeId,ContractType")]
  17. public virtual BemsNoticePriceContractType BemsNoticePriceContractType { get; set; }
  18. [ForeignKey("DeviceTypeId")]
  19. public virtual BemsDeviceType DeviceType { get; set; }
  20. [ForeignKey("FuelTypeId")]
  21. public virtual BemsFuelType FuelType { get; set; }
  22. }
  23. }