You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 line
1.7KB

  1. using HealthMonitor.Util.Entities.GpsCard;
  2. using Microsoft.EntityFrameworkCore;
  3. using Microsoft.EntityFrameworkCore.Metadata.Builders;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace HealthMonitor.Core.Map.GpsCard
  10. {
  11. public partial class GpsBloodPressReferenceValueMap : GenericEntityTypeConfiguration<GpsBloodPressReferenceValue>
  12. {
  13. public override void Configure(EntityTypeBuilder<GpsBloodPressReferenceValue> entity)
  14. {
  15. entity.HasKey(e => e.Id)
  16. .HasName("PRIMARY");
  17. //throw new NotImplementedException();
  18. entity.ToTable("gps_bloodpress_reference");
  19. entity.Property(e => e.Id)
  20. .HasColumnName("id")
  21. .HasColumnType("int(11)");
  22. entity.Property(e => e.Age)
  23. .HasColumnName("age")
  24. .HasColumnType("int(11)");
  25. entity.Property(e => e.Gender)
  26. .HasColumnName("gender")
  27. .HasColumnType("int(11)");
  28. entity.Property(e => e.Systolic)
  29. .HasColumnName("systolic")
  30. .HasColumnType("int(11)");
  31. entity.Property(e => e.Diastolic)
  32. .HasColumnName("diastolic")
  33. .HasColumnType("int(11)");
  34. entity.Property(e => e.Hypertension)
  35. .HasColumnName("hypertension")
  36. .HasColumnType("bit(1)");
  37. entity.Property(e => e.CreateTime)
  38. .HasColumnName("create_time")
  39. .HasColumnType("datetime");
  40. entity.Property(e => e.UpdateTime)
  41. .HasColumnName("update_time")
  42. .HasColumnType("datetime");
  43. }
  44. }
  45. }