// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using WebApplication1.Data; #nullable disable namespace WebApplication1.Migrations { [DbContext(typeof(WebApplication1Context))] [Migration("20220316110311_InitialCreate")] partial class InitialCreate { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "6.0.3") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); modelBuilder.Entity("WebApplication1.Models.Movie", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); b.Property("Genre") .HasColumnType("nvarchar(max)"); b.Property("Price") .HasColumnType("decimal(18,2)"); b.Property("ReleaseDate") .HasColumnType("datetime2"); b.Property("Title") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.ToTable("Movie"); }); #pragma warning restore 612, 618 } } }