Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace MattEland.TestManager.Data.Migrations
{
public partial class AddedTestSuite : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "TestSuite",
columns: table => new
{
Id = table.Column<int>(nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Name = table.Column<string>(nullable: false),
Description = table.Column<string>(nullable: true),
DateCreatedUtc = table.Column<DateTime>(nullable: false),
DateModifiedUtc = table.Column<DateTime>(nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_TestSuite", x => x.Id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "TestSuite");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.