src/Services/Ordering/Ordering.API/Infrastructure/Migrations/20170713111342_AdressAsValueObject.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Ordering.API.Migrations
{
public partial class AdressAsValueObject : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_orders_address_AddressId",
schema: "ordering",
table: "orders");
migrationBuilder.DropForeignKey(
name: "FK_orders_paymentmethods_PaymentMethodId",
schema: "ordering",
table: "orders");
migrationBuilder.DropTable(
name: "address",
schema: "ordering");
migrationBuilder.DropIndex(
name: "IX_orders_AddressId",
schema: "ordering",
table: "orders");
migrationBuilder.DropColumn(
name: "AddressId",
schema: "ordering",
table: "orders");
migrationBuilder.AddColumn<string>(
name: "Address_City",
schema: "ordering",
table: "orders",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Address_Country",
schema: "ordering",
table: "orders",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Address_State",
schema: "ordering",
table: "orders",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Address_Street",
schema: "ordering",
table: "orders",
type: "nvarchar(max)",
nullable: true);
后面还有 84 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。