mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-03 00:00:58 +08:00
39 lines
1.3 KiB
C#
39 lines
1.3 KiB
C#
|
|
// <auto-generated />
|
|||
|
|
using CC.Yi.Model;
|
|||
|
|
using Microsoft.EntityFrameworkCore;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|||
|
|
|
|||
|
|
namespace CC.Yi.API.Migrations
|
|||
|
|
{
|
|||
|
|
[DbContext(typeof(DataContext))]
|
|||
|
|
partial class DataContextModelSnapshot : ModelSnapshot
|
|||
|
|
{
|
|||
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
|
|
{
|
|||
|
|
#pragma warning disable 612, 618
|
|||
|
|
modelBuilder
|
|||
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128)
|
|||
|
|
.HasAnnotation("ProductVersion", "5.0.4")
|
|||
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("CC.Yi.Model.student", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<int>("id")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|||
|
|
|
|||
|
|
b.Property<int>("name")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.HasKey("id");
|
|||
|
|
|
|||
|
|
b.ToTable("student");
|
|||
|
|
});
|
|||
|
|
#pragma warning restore 612, 618
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|