using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace RazorPagesMovie.Migrations { /// public partial class DropMovieTable : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Movie"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Movie", columns: table => new { Id = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), Genre = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: false), Price = table.Column(type: "decimal(18,2)", nullable: false), Rating = table.Column(type: "nvarchar(5)", maxLength: 5, nullable: false), ReleaseDate = table.Column(type: "datetime2", nullable: false), Title = table.Column(type: "nvarchar(60)", maxLength: 60, nullable: false) }, constraints: table => { table.PrimaryKey("PK_Movie", x => x.Id); }); } } }