using System; using Microsoft.EntityFrameworkCore.Migrations; namespace Repository.Migrations { public partial class AddTable : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "ProductResult", columns: table => new { Id = table.Column(nullable: false), Result = table.Column(nullable: false), Datetime = table.Column(nullable: false), Barcode = table.Column(nullable: true), Juge = table.Column(nullable: false) }, constraints: table => { table.PrimaryKey("PK_ProductResult", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "ProductResult"); } } }