src/Services/Ordering/Ordering.API/Infrastructure/Migrations/20170313100034_Domain_events.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using Microsoft.EntityFrameworkCore.Migrations;
namespace Ordering.API.Migrations
{
public partial class Domain_events : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_orders_buyers_BuyerId",
schema: "ordering",
table: "orders");
migrationBuilder.AlterColumn<int>(
name: "PaymentMethodId",
schema: "ordering",
table: "orders",
nullable: true,
oldClrType: typeof(int));
migrationBuilder.AlterColumn<int>(
name: "BuyerId",
schema: "ordering",
table: "orders",
nullable: true,
oldClrType: typeof(int));
migrationBuilder.AddForeignKey(
name: "FK_orders_buyers_BuyerId",
schema: "ordering",
table: "orders",
column: "BuyerId",
principalSchema: "ordering",
principalTable: "buyers",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_orders_buyers_BuyerId",
schema: "ordering",
table: "orders");
migrationBuilder.AlterColumn<int>(
name: "PaymentMethodId",
schema: "ordering",
table: "orders",
nullable: false,
oldClrType: typeof(int),
oldNullable: true);
migrationBuilder.AlterColumn<int>(
name: "BuyerId",
schema: "ordering",
table: "orders",
nullable: false,
oldClrType: typeof(int),
oldNullable: true);
后面还有 13 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。