You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20200728060700_colRename.cs 687B

1234567891011121314151617181920212223
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. namespace ProRestaurant.Migrations
  3. {
  4. public partial class colRename : Migration
  5. {
  6. protected override void Up(MigrationBuilder migrationBuilder)
  7. {
  8. migrationBuilder.RenameColumn(
  9. name: "RestaurantUserId",
  10. table: "RestaurantUserRestaurantRoles",
  11. newName: "UserId");
  12. }
  13. protected override void Down(MigrationBuilder migrationBuilder)
  14. {
  15. migrationBuilder.RenameColumn(
  16. name: "UserId",
  17. table: "RestaurantUserRestaurantRoles",
  18. newName: "RestaurantUserId");
  19. }
  20. }
  21. }