API
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

20201117083414_nonRegUserUpdate.cs 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. namespace UnivateProperties_API.Migrations
  4. {
  5. public partial class nonRegUserUpdate : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.AddColumn<DateTime>(
  10. name: "Created",
  11. table: "NonRegIndividuals",
  12. nullable: false,
  13. defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
  14. migrationBuilder.AddColumn<bool>(
  15. name: "IsDeleted",
  16. table: "NonRegIndividuals",
  17. nullable: false,
  18. defaultValue: false);
  19. migrationBuilder.AddColumn<DateTime>(
  20. name: "Modified",
  21. table: "NonRegIndividuals",
  22. nullable: false,
  23. defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
  24. migrationBuilder.AddColumn<string>(
  25. name: "ModifiedBy",
  26. table: "NonRegIndividuals",
  27. nullable: true);
  28. }
  29. protected override void Down(MigrationBuilder migrationBuilder)
  30. {
  31. migrationBuilder.DropColumn(
  32. name: "Created",
  33. table: "NonRegIndividuals");
  34. migrationBuilder.DropColumn(
  35. name: "IsDeleted",
  36. table: "NonRegIndividuals");
  37. migrationBuilder.DropColumn(
  38. name: "Modified",
  39. table: "NonRegIndividuals");
  40. migrationBuilder.DropColumn(
  41. name: "ModifiedBy",
  42. table: "NonRegIndividuals");
  43. }
  44. }
  45. }