Added missing migration
This commit is contained in:
Родитель
c7140fc5d4
Коммит
ec4ae94a6a
1176
AbpODataDemo-Core/aspnet-core/src/AbpODataDemo.EntityFrameworkCore/Migrations/20190326123348_Added_Person_Entity.Designer.cs
сгенерированный
Normal file
1176
AbpODataDemo-Core/aspnet-core/src/AbpODataDemo.EntityFrameworkCore/Migrations/20190326123348_Added_Person_Entity.Designer.cs
сгенерированный
Normal file
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -0,0 +1,70 @@
|
|||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace AbpODataDemo.Migrations
|
||||
{
|
||||
public partial class Added_Person_Entity : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Persons",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(nullable: false)
|
||||
.Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
|
||||
CreationTime = table.Column<DateTime>(nullable: false),
|
||||
CreatorUserId = table.Column<long>(nullable: true),
|
||||
DeleterUserId = table.Column<long>(nullable: true),
|
||||
DeletionTime = table.Column<DateTime>(nullable: true),
|
||||
IsDeleted = table.Column<bool>(nullable: false),
|
||||
LastModificationTime = table.Column<DateTime>(nullable: true),
|
||||
LastModifierUserId = table.Column<long>(nullable: true),
|
||||
Name = table.Column<string>(maxLength: 32, nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Persons", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Phones",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(nullable: false)
|
||||
.Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
|
||||
CreationTime = table.Column<DateTime>(nullable: false),
|
||||
CreatorUserId = table.Column<long>(nullable: true),
|
||||
Number = table.Column<string>(maxLength: 16, nullable: false),
|
||||
PersonId = table.Column<int>(nullable: false),
|
||||
Type = table.Column<int>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Phones", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_Phones_Persons_PersonId",
|
||||
column: x => x.PersonId,
|
||||
principalTable: "Persons",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Phones_PersonId",
|
||||
table: "Phones",
|
||||
column: "PersonId");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "Phones");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Persons");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,9 +1,17 @@
|
|||
// <auto-generated />
|
||||
using System;
|
||||
using Abp.Authorization;
|
||||
using Abp.BackgroundJobs;
|
||||
using Abp.Notifications;
|
||||
using AbpODataDemo.EntityFrameworkCore;
|
||||
using AbpODataDemo.People;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using AbpODataDemo.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage;
|
||||
using Microsoft.EntityFrameworkCore.Storage.Internal;
|
||||
using Microsoft.EntityFrameworkCore.ValueGeneration;
|
||||
using System;
|
||||
|
||||
namespace AbpODataDemo.Migrations
|
||||
{
|
||||
|
@ -14,7 +22,7 @@ namespace AbpODataDemo.Migrations
|
|||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "2.0.0-rtm-26452")
|
||||
.HasAnnotation("ProductVersion", "2.0.1-rtm-125")
|
||||
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
||||
|
||||
modelBuilder.Entity("Abp.Application.Editions.Edition", b =>
|
||||
|
@ -924,6 +932,58 @@ namespace AbpODataDemo.Migrations
|
|||
b.ToTable("AbpTenants");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("AbpODataDemo.People.Person", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<DateTime>("CreationTime");
|
||||
|
||||
b.Property<long?>("CreatorUserId");
|
||||
|
||||
b.Property<long?>("DeleterUserId");
|
||||
|
||||
b.Property<DateTime?>("DeletionTime");
|
||||
|
||||
b.Property<bool>("IsDeleted");
|
||||
|
||||
b.Property<DateTime?>("LastModificationTime");
|
||||
|
||||
b.Property<long?>("LastModifierUserId");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(32);
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Persons");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("AbpODataDemo.People.Phone", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<DateTime>("CreationTime");
|
||||
|
||||
b.Property<long?>("CreatorUserId");
|
||||
|
||||
b.Property<string>("Number")
|
||||
.IsRequired()
|
||||
.HasMaxLength(16);
|
||||
|
||||
b.Property<int>("PersonId");
|
||||
|
||||
b.Property<int>("Type");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("PersonId");
|
||||
|
||||
b.ToTable("Phones");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b =>
|
||||
{
|
||||
b.HasBaseType("Abp.Application.Features.FeatureSetting");
|
||||
|
@ -1078,6 +1138,14 @@ namespace AbpODataDemo.Migrations
|
|||
.HasForeignKey("LastModifierUserId");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("AbpODataDemo.People.Phone", b =>
|
||||
{
|
||||
b.HasOne("AbpODataDemo.People.Person", "Person")
|
||||
.WithMany("Phones")
|
||||
.HasForeignKey("PersonId")
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Abp.Application.Features.EditionFeatureSetting", b =>
|
||||
{
|
||||
b.HasOne("Abp.Application.Editions.Edition", "Edition")
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback>
|
||||
|
@ -39,7 +39,7 @@
|
|||
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="2.0.0" />
|
||||
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="2.0.1" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.1" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.2" />
|
||||
<PackageReference Include="Abp.Castle.Log4Net" Version="3.3.0" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
|
||||
<!--
|
||||
Configure your application settings in appsettings.json. Learn more at http://go.microsoft.com/fwlink/?LinkId=786380
|
||||
-->
|
||||
|
||||
<system.webServer>
|
||||
<handlers>
|
||||
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/>
|
||||
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
|
||||
</handlers>
|
||||
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false"/>
|
||||
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false">
|
||||
<environmentVariables />
|
||||
</aspNetCore>
|
||||
</system.webServer>
|
||||
</configuration>
|
||||
</configuration>
|
|
@ -1,4 +1,4 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback>
|
||||
|
@ -45,7 +45,7 @@
|
|||
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="2.0.0" />
|
||||
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="2.0.1" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.1" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.2" />
|
||||
<PackageReference Include="Abp.HangFire" Version="3.3.0" />
|
||||
<PackageReference Include="Abp.RedisCache" Version="3.3.0" />
|
||||
<PackageReference Include="Abp.Castle.Log4Net" Version="3.3.0" />
|
||||
|
|
Загрузка…
Ссылка в новой задаче