99 lines
3.2 KiB
C#
99 lines
3.2 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using EkzamenDatabaseImplement;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace EkzamenDatabaseImplement.Migrations
|
|
{
|
|
[DbContext(typeof(ConfectioneryDatabase))]
|
|
partial class ConfectioneryDatabaseModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "7.0.3")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("EkzamenDatabaseImplement.Group", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<DateTime>("Created")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Direction")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Groups");
|
|
});
|
|
|
|
modelBuilder.Entity("EkzamenDatabaseImplement.Student", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<DateTime>("DateEnrollment")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("GroupId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("PassMark")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("RecordBookId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("fio")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("GroupId");
|
|
|
|
b.ToTable("Students");
|
|
});
|
|
|
|
modelBuilder.Entity("EkzamenDatabaseImplement.Student", b =>
|
|
{
|
|
b.HasOne("EkzamenDatabaseImplement.Group", "Group")
|
|
.WithMany("Students")
|
|
.HasForeignKey("GroupId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Group");
|
|
});
|
|
|
|
modelBuilder.Entity("EkzamenDatabaseImplement.Group", b =>
|
|
{
|
|
b.Navigation("Students");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|