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.

20230727111642_CUstomers1.cs 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. namespace Karsha_Site.Persistance.Migrations
  4. {
  5. public partial class CUstomers1 : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.AddColumn<DateTime>(
  10. name: "InsertTime",
  11. table: "Customers",
  12. type: "datetime2",
  13. nullable: false,
  14. defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
  15. migrationBuilder.AddColumn<bool>(
  16. name: "IsRemoved",
  17. table: "Customers",
  18. type: "bit",
  19. nullable: false,
  20. defaultValue: false);
  21. migrationBuilder.AddColumn<DateTime>(
  22. name: "RemoveTime",
  23. table: "Customers",
  24. type: "datetime2",
  25. nullable: true);
  26. migrationBuilder.AddColumn<DateTime>(
  27. name: "UpdateTime",
  28. table: "Customers",
  29. type: "datetime2",
  30. nullable: true);
  31. }
  32. protected override void Down(MigrationBuilder migrationBuilder)
  33. {
  34. migrationBuilder.DropColumn(
  35. name: "InsertTime",
  36. table: "Customers");
  37. migrationBuilder.DropColumn(
  38. name: "IsRemoved",
  39. table: "Customers");
  40. migrationBuilder.DropColumn(
  41. name: "RemoveTime",
  42. table: "Customers");
  43. migrationBuilder.DropColumn(
  44. name: "UpdateTime",
  45. table: "Customers");
  46. }
  47. }
  48. }