Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using Microsoft.Data.Entity.Migrations;
- using Microsoft.Data.Entity.Metadata;
- namespace OdeToFood.Migrations
- {
- public partial class v1 : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.CreateTable(
- name: "Restaurant",
- columns: table => new
- {
- Id = table.Column<int>(nullable: false)
- .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
- Cuisine = table.Column<int>(nullable: false),
- Name = table.Column<string>(nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_Restaurant", x => x.Id);
- });
- }
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable("Restaurant");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement