using Microsoft.EntityFrameworkCore.Migrations; namespace contacts.Migrations { public partial class InitialCreate : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "People", columns: table => new { PersonId = table.Column(nullable: false) .Annotation("Sqlite:Autoincrement", true), Name = table.Column(nullable: true), Age = table.Column(nullable: false) }, constraints: table => { table.PrimaryKey("PK_People", x => x.PersonId); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "People"); } } }