24 lines
731 B
C#
24 lines
731 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace DataLayer.Migrations
|
|
{
|
|
public partial class EmptyCategorySeed : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.InsertData(
|
|
table: "Categories",
|
|
columns: new[] { "CategoryId", "AudibleCategoryId", "Name", "ParentCategoryCategoryId" },
|
|
values: new object[] { -1, "", "", null });
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DeleteData(
|
|
table: "Categories",
|
|
keyColumn: "CategoryId",
|
|
keyValue: -1);
|
|
}
|
|
}
|
|
}
|