123456789101112131415161718192021222324252627282930313233 |
- using Microsoft.EntityFrameworkCore.Migrations;
-
- namespace Karsha_Site.Persistance.Migrations
- {
- public partial class Customers : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.CreateTable(
- name: "Customers",
- columns: table => new
- {
- ID = table.Column<int>(type: "int", nullable: false)
- .Annotation("SqlServer:Identity", "1, 1"),
- Code = table.Column<int>(type: "int", nullable: false),
- FullName = table.Column<string>(type: "nvarchar(max)", nullable: true),
- Address = table.Column<string>(type: "nvarchar(max)", nullable: true),
- Link = table.Column<string>(type: "nvarchar(max)", nullable: true),
- Image = table.Column<string>(type: "nvarchar(max)", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_Customers", x => x.ID);
- });
- }
-
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "Customers");
- }
- }
- }
|