Migrations/20230916063158_s1.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Tmp.Migrations
{
public partial class s1 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_SharedCodes_Language_LanguageId",
table: "SharedCodes");
migrationBuilder.DropPrimaryKey(
name: "PK_Language",
table: "Language");
migrationBuilder.RenameTable(
name: "Language",
newName: "Languages");
migrationBuilder.AlterColumn<long>(
name: "LanguageId",
table: "SharedCodes",
type: "bigint",
nullable: false,
defaultValue: 0L,
oldClrType: typeof(long),
oldType: "bigint",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Lang",
table: "Languages",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Highlight",
table: "Languages",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AddPrimaryKey(
name: "PK_Languages",
table: "Languages",
column: "LanguageId");
migrationBuilder.AddForeignKey(
name: "FK_SharedCodes_Languages_LanguageId",
table: "SharedCodes",
后面还有 58 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
