API
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

20200918092143_Added Cutoff show date.cs 742B

123456789101112131415161718192021222324
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. namespace UnivateProperties_API.Migrations
  4. {
  5. public partial class AddedCutoffshowdate : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.AddColumn<DateTime>(
  10. name: "CutOffDisplayDate",
  11. table: "Properties",
  12. nullable: false,
  13. defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
  14. }
  15. protected override void Down(MigrationBuilder migrationBuilder)
  16. {
  17. migrationBuilder.DropColumn(
  18. name: "CutOffDisplayDate",
  19. table: "Properties");
  20. }
  21. }
  22. }