123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- // <auto-generated />
- using System;
- using Microsoft.EntityFrameworkCore;
- using Microsoft.EntityFrameworkCore.Infrastructure;
- using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
- using SuZhou_SIPAC_Client;
- namespace SuZhou_SIPAC_Client.Migrations
- {
- [DbContext(typeof(AppDbContext))]
- partial class AppDbContextModelSnapshot : ModelSnapshot
- {
- protected override void BuildModel(ModelBuilder modelBuilder)
- {
- #pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("ProductVersion", "5.0.5");
- modelBuilder.Entity("SuZhou_SIPAC_Client.InverterAccumulatedDataModel", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
- b.Property<DateTime>("CreatedTimeStamp")
- .HasColumnType("TEXT");
- b.Property<string>("HttpPostResponse")
- .HasColumnType("TEXT");
- b.Property<DateTime?>("HttpPostResponseReceivedTime")
- .HasColumnType("TEXT");
- b.Property<decimal?>("当年无功发电量")
- .HasColumnType("TEXT");
- b.Property<decimal?>("当年有功发电量")
- .HasColumnType("TEXT");
- b.Property<decimal>("当日无功发电量")
- .HasColumnType("TEXT");
- b.Property<decimal>("当日有功发电量")
- .HasColumnType("TEXT");
- b.Property<decimal?>("当月无功发电量")
- .HasColumnType("TEXT");
- b.Property<decimal?>("当月有功发电量")
- .HasColumnType("TEXT");
- b.HasKey("Id");
- b.HasIndex("Id")
- .IsUnique();
- b.ToTable("InverterAccumulatedDatas");
- });
- modelBuilder.Entity("SuZhou_SIPAC_Client.InverterRealTimeDataModel", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
- b.Property<string>("DeviceDescription")
- .HasColumnType("TEXT");
- b.Property<string>("DeviceName")
- .HasColumnType("TEXT");
- b.Property<int>("DeviceSlaveAddress")
- .HasColumnType("INTEGER");
- b.Property<int?>("InverterAccumulatedDataModelId")
- .HasColumnType("INTEGER");
- b.Property<decimal>("Raw_当日无功发电量")
- .HasColumnType("TEXT");
- b.Property<decimal>("Raw_当日有功发电量")
- .HasColumnType("TEXT");
- b.Property<DateTime>("ReadTimeStamp")
- .HasColumnType("TEXT");
- b.HasKey("Id");
- b.HasIndex("Id")
- .IsUnique();
- b.HasIndex("InverterAccumulatedDataModelId");
- b.HasIndex("ReadTimeStamp");
- b.ToTable("InverterRealTimeDatas");
- });
- modelBuilder.Entity("SuZhou_SIPAC_Client.InverterRealTimeDataModel", b =>
- {
- b.HasOne("SuZhou_SIPAC_Client.InverterAccumulatedDataModel", null)
- .WithMany("SourceRealTimeDatas")
- .HasForeignKey("InverterAccumulatedDataModelId");
- });
- modelBuilder.Entity("SuZhou_SIPAC_Client.InverterAccumulatedDataModel", b =>
- {
- b.Navigation("SourceRealTimeDatas");
- });
- #pragma warning restore 612, 618
- }
- }
- }
|