// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Moshaverino.Web.Models; namespace Moshaverino.Web.Migrations { [DbContext(typeof(MoshaverinoContext))] [Migration("20200310125652_init")] partial class init { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "3.1.2") .HasAnnotation("Relational:MaxIdentifierLength", 128) .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); modelBuilder.Entity("Moshaverino.Web.Models.Student", b => { b.Property("StudentId") .ValueGeneratedOnAdd() .HasColumnType("int") .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("AverageNumber") .HasColumnType("nvarchar(max)"); b.Property("AverageTaraz") .HasColumnType("nvarchar(max)"); b.Property("Code") .HasColumnType("nvarchar(max)"); b.Property("CreationTime") .HasColumnType("datetime2"); b.Property("FavoriteExam") .HasColumnType("nvarchar(max)"); b.Property("FavoriteLesson") .HasColumnType("nvarchar(max)"); b.Property("FullName") .HasColumnType("nvarchar(max)"); b.Property("HumenSex") .HasColumnType("int"); b.Property("IsRemoved") .HasColumnType("bit"); b.Property("PhoneNumber") .HasColumnType("nvarchar(max)"); b.Property("RemoveTime") .HasColumnType("datetime2"); b.Property("StudyField") .HasColumnType("nvarchar(max)"); b.Property("StudyGrade") .HasColumnType("nvarchar(max)"); b.Property("UnFavoriteLesson") .HasColumnType("nvarchar(max)"); b.HasKey("StudentId"); b.ToTable("Students"); }); #pragma warning restore 612, 618 } } }