1234567891011121314151617181920212223242526272829303132 |
- 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<Guid>(nullable: false),
- Result = table.Column<double>(nullable: false),
- Datetime = table.Column<DateTime>(nullable: false),
- Barcode = table.Column<string>(nullable: true),
- Juge = table.Column<int>(nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_ProductResult", x => x.Id);
- });
- }
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "ProductResult");
- }
- }
- }
|