CustomerMachineComponent.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. namespace EVCB_OCPP.Domain.Models.Database
  2. {
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. using System.ComponentModel.DataAnnotations;
  7. using System.ComponentModel.DataAnnotations.Schema;
  8. using System.Data.Entity.Spatial;
  9. /// <summary>
  10. /// 客戶所使用的機器元件
  11. /// </summary>
  12. [Table("CustomerMachineComponent")]
  13. public partial class CustomerMachineComponent
  14. {
  15. [Key]
  16. public int Id { get; set; }
  17. /// <summary>
  18. /// 客戶ID
  19. /// </summary>
  20. public Guid CustomerId { get; set; }
  21. [ForeignKey("CustomerId")]
  22. public virtual Customer Customer { get; set; }
  23. /// <summary>
  24. /// 設定好的機器元件Id
  25. /// </summary>
  26. public int MachineComponentId { get; set; }
  27. [ForeignKey("MachineComponentId")]
  28. public virtual MachineComponent MachineComponent { get; set; }
  29. public DateTime CreatedOn { get; set; }
  30. [StringLength(50)]
  31. public string CreatedBy { get; set; }
  32. }
  33. }