20220830054447_init.Designer.cs 3.9 KB

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