// using System; using EF_ChangeLog.Controller; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace EF_ChangeLog.Migrations { [DbContext(typeof(StockDbContext))] [Migration("20231018052426_log_reinforce4")] partial class log_reinforce4 { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "7.0.12") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); modelBuilder.Entity("EF_ChangeLog.Model.Stock", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); b.Property("Name") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("Price") .HasColumnType("decimal(18,2)"); b.HasKey("Id"); b.ToTable("Stocks"); }); modelBuilder.Entity("EF_ChangeLog.Model.StockChangeLog", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); b.Property("ActionType") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("ChangeBy") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("ChangeDate") .HasColumnType("datetime2"); b.Property("EntityId") .HasColumnType("int"); b.Property("EntityName") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("OriginalSnapshot") .IsRequired() .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.ToTable("StockChangeLogs"); }); #pragma warning restore 612, 618 } } }