src/Services/Ordering/Ordering.API/Infrastructure/Migrations/20170208181933_Initial.cs
(开头部分) 11KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using System;
namespace Ordering.API.Migrations
{
public partial class Initial : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.EnsureSchema(
name: "ordering");
migrationBuilder.CreateSequence(
name: "orderitemseq",
incrementBy: 10);
migrationBuilder.CreateSequence(
name: "buyerseq",
schema: "ordering",
incrementBy: 10);
migrationBuilder.CreateSequence(
name: "orderseq",
schema: "ordering",
incrementBy: 10);
migrationBuilder.CreateSequence(
name: "paymentseq",
schema: "ordering",
incrementBy: 10);
migrationBuilder.CreateTable(
name: "buyers",
schema: "ordering",
columns: table => new
{
Id = table.Column<int>(nullable: false),
IdentityGuid = table.Column<string>(maxLength: 200, nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_buyers", x => x.Id);
});
migrationBuilder.CreateTable(
name: "cardtypes",
schema: "ordering",
columns: table => new
{
Id = table.Column<int>(nullable: false, defaultValue: 1),
Name = table.Column<string>(maxLength: 200, nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_cardtypes", x => x.Id);
});
migrationBuilder.CreateTable(
name: "address",
后面还有 229 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。