// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using SuZhou_SIPAC_Client; namespace SuZhou_SIPAC_Client.Migrations { [DbContext(typeof(AppDbContext))] [Migration("20220830054447_init")] partial class init { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "5.0.5"); modelBuilder.Entity("SuZhou_SIPAC_Client.InverterAccumulatedDataModel", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("CreatedTimeStamp") .HasColumnType("TEXT"); b.Property("HttpPostResponse") .HasColumnType("TEXT"); b.Property("HttpPostResponseReceivedTime") .HasColumnType("TEXT"); b.Property("当年无功发电量") .HasColumnType("TEXT"); b.Property("当年有功发电量") .HasColumnType("TEXT"); b.Property("当日无功发电量") .HasColumnType("TEXT"); b.Property("当日有功发电量") .HasColumnType("TEXT"); b.Property("当月无功发电量") .HasColumnType("TEXT"); b.Property("当月有功发电量") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("Id") .IsUnique(); b.ToTable("InverterAccumulatedDatas"); }); modelBuilder.Entity("SuZhou_SIPAC_Client.InverterRealTimeDataModel", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DeviceDescription") .HasColumnType("TEXT"); b.Property("DeviceName") .HasColumnType("TEXT"); b.Property("DeviceSlaveAddress") .HasColumnType("INTEGER"); b.Property("InverterAccumulatedDataModelId") .HasColumnType("INTEGER"); b.Property("Raw_当日无功发电量") .HasColumnType("TEXT"); b.Property("Raw_当日有功发电量") .HasColumnType("TEXT"); b.Property("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 } } }