You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dotNetStudyWithGPT/MySolution/EF_ChangeLog/Migrations/20231018061903_log_reinforc...

111 lines
3.6 KiB

// <auto-generated />
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("20231018061903_log_reinforce5")]
partial class log_reinforce5
{
/// <inheritdoc />
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<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("Name")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,2)");
b.HasKey("Id");
b.ToTable("Stocks");
});
modelBuilder.Entity("EF_ChangeLog.Model.StockChangeLog", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("ActionType")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<string>("ChangeBy")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<DateTime>("ChangeDate")
.HasColumnType("datetime2");
b.Property<int>("EntityId")
.HasColumnType("int");
b.Property<string>("EntityName")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<string>("OriginalSnapshot")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.ToTable("StockChangeLogs");
});
modelBuilder.Entity("EF_ChangeLog.Model.StockLog", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<DateTime>("LoggedAt")
.HasColumnType("datetime2");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<int>("OriginalId")
.HasColumnType("int");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,2)");
b.HasKey("Id");
b.ToTable("stockLogs");
});
#pragma warning restore 612, 618
}
}
}