AppDbContextModelSnapshot.cs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. // <auto-generated />
  2. using System;
  3. using Microsoft.EntityFrameworkCore;
  4. using Microsoft.EntityFrameworkCore.Infrastructure;
  5. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  6. using SuZhou_SIPAC_Client;
  7. namespace SuZhou_SIPAC_Client.Migrations
  8. {
  9. [DbContext(typeof(AppDbContext))]
  10. partial class AppDbContextModelSnapshot : ModelSnapshot
  11. {
  12. protected override void BuildModel(ModelBuilder modelBuilder)
  13. {
  14. #pragma warning disable 612, 618
  15. modelBuilder
  16. .HasAnnotation("ProductVersion", "5.0.5");
  17. modelBuilder.Entity("SuZhou_SIPAC_Client.InverterAccumulatedDataModel", b =>
  18. {
  19. b.Property<int>("Id")
  20. .ValueGeneratedOnAdd()
  21. .HasColumnType("INTEGER");
  22. b.Property<DateTime>("CreatedTimeStamp")
  23. .HasColumnType("TEXT");
  24. b.Property<string>("HttpPostResponse")
  25. .HasColumnType("TEXT");
  26. b.Property<DateTime?>("HttpPostResponseReceivedTime")
  27. .HasColumnType("TEXT");
  28. b.Property<decimal?>("当年无功发电量")
  29. .HasColumnType("TEXT");
  30. b.Property<decimal?>("当年有功发电量")
  31. .HasColumnType("TEXT");
  32. b.Property<decimal>("当日无功发电量")
  33. .HasColumnType("TEXT");
  34. b.Property<decimal>("当日有功发电量")
  35. .HasColumnType("TEXT");
  36. b.Property<decimal?>("当月无功发电量")
  37. .HasColumnType("TEXT");
  38. b.Property<decimal?>("当月有功发电量")
  39. .HasColumnType("TEXT");
  40. b.HasKey("Id");
  41. b.HasIndex("Id")
  42. .IsUnique();
  43. b.ToTable("InverterAccumulatedDatas");
  44. });
  45. modelBuilder.Entity("SuZhou_SIPAC_Client.InverterRealTimeDataModel", b =>
  46. {
  47. b.Property<int>("Id")
  48. .ValueGeneratedOnAdd()
  49. .HasColumnType("INTEGER");
  50. b.Property<string>("DeviceDescription")
  51. .HasColumnType("TEXT");
  52. b.Property<string>("DeviceName")
  53. .HasColumnType("TEXT");
  54. b.Property<int>("DeviceSlaveAddress")
  55. .HasColumnType("INTEGER");
  56. b.Property<int?>("InverterAccumulatedDataModelId")
  57. .HasColumnType("INTEGER");
  58. b.Property<decimal>("Raw_当日无功发电量")
  59. .HasColumnType("TEXT");
  60. b.Property<decimal>("Raw_当日有功发电量")
  61. .HasColumnType("TEXT");
  62. b.Property<DateTime>("ReadTimeStamp")
  63. .HasColumnType("TEXT");
  64. b.HasKey("Id");
  65. b.HasIndex("Id")
  66. .IsUnique();
  67. b.HasIndex("InverterAccumulatedDataModelId");
  68. b.HasIndex("ReadTimeStamp");
  69. b.ToTable("InverterRealTimeDatas");
  70. });
  71. modelBuilder.Entity("SuZhou_SIPAC_Client.InverterRealTimeDataModel", b =>
  72. {
  73. b.HasOne("SuZhou_SIPAC_Client.InverterAccumulatedDataModel", null)
  74. .WithMany("SourceRealTimeDatas")
  75. .HasForeignKey("InverterAccumulatedDataModelId");
  76. });
  77. modelBuilder.Entity("SuZhou_SIPAC_Client.InverterAccumulatedDataModel", b =>
  78. {
  79. b.Navigation("SourceRealTimeDatas");
  80. });
  81. #pragma warning restore 612, 618
  82. }
  83. }
  84. }