using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace VOL.Core.Migrations { public partial class _20260109v5 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "TeacherName", table: "JS_Grade", type: "nvarchar(100)", nullable: true, comment: "教师名称"); migrationBuilder.AddColumn( name: "TeacherNo", table: "JS_Grade", type: "nvarchar(100)", nullable: true, comment: "教师编号"); migrationBuilder.AddColumn( name: "TeacherName", table: "JS_Class", type: "nvarchar(100)", nullable: true, comment: "教师名称"); migrationBuilder.AddColumn( name: "TeacherNo", table: "JS_Class", type: "nvarchar(100)", nullable: true, comment: "教师编号"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "TeacherName", table: "JS_Grade"); migrationBuilder.DropColumn( name: "TeacherNo", table: "JS_Grade"); migrationBuilder.DropColumn( name: "TeacherName", table: "JS_Class"); migrationBuilder.DropColumn( name: "TeacherNo", table: "JS_Class"); } } }