using Microsoft.EntityFrameworkCore.Migrations; namespace CompanyManagment.EFCore.Migrations { public partial class employerFnamAlowNul : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "FName", table: "Employers", type: "nvarchar(255)", maxLength: 255, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(255)", oldMaxLength: 255); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "FName", table: "Employers", type: "nvarchar(255)", maxLength: 255, nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "nvarchar(255)", oldMaxLength: 255, oldNullable: true); } } }