21 changed files with 57 additions and 12299 deletions
@ -1,11 +1,11 @@ |
|||||
<Project> |
<Project> |
||||
<ItemGroup> |
<ItemGroup> |
||||
<PackageReference Update="Lion.AbpPro.CodeManagement.Domain" Version="1.0.1"/> |
<PackageReference Update="Lion.AbpPro.CodeManagement.Domain" Version="1.1.0"/> |
||||
<PackageReference Update="Lion.AbpPro.CodeManagement.Domain.Shared" Version="1.0.1"/> |
<PackageReference Update="Lion.AbpPro.CodeManagement.Domain.Shared" Version="1.1.0"/> |
||||
<PackageReference Update="Lion.AbpPro.CodeManagement.Application.Contracts" Version="1.0.1"/> |
<PackageReference Update="Lion.AbpPro.CodeManagement.Application.Contracts" Version="1.1.0"/> |
||||
<PackageReference Update="Lion.AbpPro.CodeManagement.Application" Version="1.0.1"/> |
<PackageReference Update="Lion.AbpPro.CodeManagement.Application" Version="1.1.0"/> |
||||
<PackageReference Update="Lion.AbpPro.CodeManagement.HttpApi" Version="1.0.1"/> |
<PackageReference Update="Lion.AbpPro.CodeManagement.HttpApi" Version="1.1.0"/> |
||||
<PackageReference Update="Lion.AbpPro.CodeManagement.HttpApi.Client" Version="1.0.1"/> |
<PackageReference Update="Lion.AbpPro.CodeManagement.HttpApi.Client" Version="1.1.0"/> |
||||
<PackageReference Update="Lion.AbpPro.CodeManagement.EntityFrameworkCore" Version="1.0.1"/> |
<PackageReference Update="Lion.AbpPro.CodeManagement.EntityFrameworkCore" Version="1.1.0"/> |
||||
</ItemGroup> |
</ItemGroup> |
||||
</Project> |
</Project> |
||||
@ -1,10 +1,12 @@ |
|||||
|
using Lion.AbpPro.Books; |
||||
|
|
||||
namespace Lion.AbpPro |
namespace Lion.AbpPro |
||||
{ |
{ |
||||
public class AbpProApplicationAutoMapperProfile : Profile |
public class AbpProApplicationAutoMapperProfile : Profile |
||||
{ |
{ |
||||
public AbpProApplicationAutoMapperProfile() |
public AbpProApplicationAutoMapperProfile() |
||||
{ |
{ |
||||
|
CreateMap<BookDto, PageBookOutput>(); |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -0,0 +1,12 @@ |
|||||
|
using AutoMapper; |
||||
|
using Lion.AbpPro.Books; |
||||
|
|
||||
|
namespace Lion.AbpPro; |
||||
|
|
||||
|
public class AbpProDomainAutoMapperProfile: Profile |
||||
|
{ |
||||
|
public AbpProDomainAutoMapperProfile() |
||||
|
{ |
||||
|
CreateMap<Book, BookDto>(); |
||||
|
} |
||||
|
} |
||||
@ -1,8 +1,10 @@ |
|||||
|
using Lion.AbpPro.Books; |
||||
|
|
||||
namespace Lion.AbpPro.EntityFrameworkCore |
namespace Lion.AbpPro.EntityFrameworkCore |
||||
{ |
{ |
||||
[ConnectionStringName("Default")] |
[ConnectionStringName("Default")] |
||||
public interface IAbpProDbContext : IEfCoreDbContext |
public interface IAbpProDbContext : IEfCoreDbContext |
||||
{ |
{ |
||||
|
DbSet<Book> Books { get; set; } |
||||
} |
} |
||||
} |
} |
||||
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -1,329 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
#nullable disable |
|
||||
|
|
||||
namespace Lion.AbpPro.Migrations |
|
||||
{ |
|
||||
/// <inheritdoc />
|
|
||||
public partial class _101 : Migration |
|
||||
{ |
|
||||
/// <inheritdoc />
|
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "AbpDataType", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
|
||||
Code = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
Description = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
ExtraProperties = table.Column<string>(type: "longtext", nullable: false) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: false) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime(6)", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime(6)", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, defaultValue: false), |
|
||||
DeleterId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
DeletionTime = table.Column<DateTime>(type: "datetime(6)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_AbpDataType", x => x.Id); |
|
||||
}) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "AbpEntityModels", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
|
||||
TenantId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
ProjectId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
|
||||
Code = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
Description = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
RelationalType = table.Column<int>(type: "int", nullable: true), |
|
||||
ParentId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
AggregateId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
|
||||
ExtraProperties = table.Column<string>(type: "longtext", nullable: false) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: false) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime(6)", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime(6)", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, defaultValue: false), |
|
||||
DeleterId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
DeletionTime = table.Column<DateTime>(type: "datetime(6)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_AbpEntityModels", x => x.Id); |
|
||||
}) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "AbpEnumType", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
|
||||
TenantId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
Code = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
Description = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: true) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
EntityModelId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
|
||||
ProjectId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
|
||||
ExtraProperties = table.Column<string>(type: "longtext", nullable: false) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: false) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime(6)", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime(6)", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, defaultValue: false), |
|
||||
DeleterId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
DeletionTime = table.Column<DateTime>(type: "datetime(6)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_AbpEnumType", x => x.Id); |
|
||||
}) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "AbpProjects", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
|
||||
TenantId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
Name = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
Owner = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: true) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
NameSpace = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
Remark = table.Column<string>(type: "varchar(512)", maxLength: 512, nullable: true) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
CompanyName = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
ProjectName = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
ExtraProperties = table.Column<string>(type: "longtext", nullable: false) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: false) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime(6)", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime(6)", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, defaultValue: false), |
|
||||
DeleterId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
DeletionTime = table.Column<DateTime>(type: "datetime(6)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_AbpProjects", x => x.Id); |
|
||||
}) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "AbpTemplates", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
|
||||
TenantId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
Name = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
Remark = table.Column<string>(type: "varchar(512)", maxLength: 512, nullable: true) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
ExtraProperties = table.Column<string>(type: "longtext", nullable: false) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: false) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime(6)", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime(6)", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, defaultValue: false), |
|
||||
DeleterId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
DeletionTime = table.Column<DateTime>(type: "datetime(6)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_AbpTemplates", x => x.Id); |
|
||||
}) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "AbpEntityModelProperties", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
|
||||
Code = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
Description = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
IsRequired = table.Column<bool>(type: "tinyint(1)", nullable: false), |
|
||||
MaxLength = table.Column<int>(type: "int", nullable: true), |
|
||||
MinLength = table.Column<int>(type: "int", nullable: true), |
|
||||
DecimalPrecision = table.Column<int>(type: "int", nullable: true), |
|
||||
DecimalScale = table.Column<int>(type: "int", nullable: true), |
|
||||
EnumTypeId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
DataTypeId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
EntityModelId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime(6)", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime(6)", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, defaultValue: false), |
|
||||
DeleterId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
DeletionTime = table.Column<DateTime>(type: "datetime(6)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_AbpEntityModelProperties", x => x.Id); |
|
||||
table.ForeignKey( |
|
||||
name: "FK_AbpEntityModelProperties_AbpEntityModels_EntityModelId", |
|
||||
column: x => x.EntityModelId, |
|
||||
principalTable: "AbpEntityModels", |
|
||||
principalColumn: "Id", |
|
||||
onDelete: ReferentialAction.Cascade); |
|
||||
}) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "AbpEnumTypeProperty", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
|
||||
EnumTypeId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
|
||||
Code = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
Value = table.Column<int>(type: "int", nullable: false), |
|
||||
Description = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: true) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime(6)", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime(6)", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, defaultValue: false), |
|
||||
DeleterId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
DeletionTime = table.Column<DateTime>(type: "datetime(6)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_AbpEnumTypeProperty", x => x.Id); |
|
||||
table.ForeignKey( |
|
||||
name: "FK_AbpEnumTypeProperty_AbpEnumType_EnumTypeId", |
|
||||
column: x => x.EnumTypeId, |
|
||||
principalTable: "AbpEnumType", |
|
||||
principalColumn: "Id", |
|
||||
onDelete: ReferentialAction.Cascade); |
|
||||
}) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "AbpTemplateDetails", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
|
||||
TemplateId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
|
||||
TemplateType = table.Column<int>(type: "int", nullable: false), |
|
||||
ControlType = table.Column<int>(type: "int", nullable: true), |
|
||||
ParentId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
Name = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
Description = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
Content = table.Column<string>(type: "longtext", nullable: true) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime(6)", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime(6)", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, defaultValue: false), |
|
||||
DeleterId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|
||||
DeletionTime = table.Column<DateTime>(type: "datetime(6)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_AbpTemplateDetails", x => x.Id); |
|
||||
table.ForeignKey( |
|
||||
name: "FK_AbpTemplateDetails_AbpTemplates_TemplateId", |
|
||||
column: x => x.TemplateId, |
|
||||
principalTable: "AbpTemplates", |
|
||||
principalColumn: "Id", |
|
||||
onDelete: ReferentialAction.Cascade); |
|
||||
}) |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_AbpEntityModelProperties_EntityModelId", |
|
||||
table: "AbpEntityModelProperties", |
|
||||
column: "EntityModelId"); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_AbpEntityModels_Code", |
|
||||
table: "AbpEntityModels", |
|
||||
column: "Code"); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_AbpEnumType_Code", |
|
||||
table: "AbpEnumType", |
|
||||
column: "Code"); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_AbpEnumTypeProperty_Code", |
|
||||
table: "AbpEnumTypeProperty", |
|
||||
column: "Code"); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_AbpEnumTypeProperty_EnumTypeId", |
|
||||
table: "AbpEnumTypeProperty", |
|
||||
column: "EnumTypeId"); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_AbpTemplateDetails_TemplateId", |
|
||||
table: "AbpTemplateDetails", |
|
||||
column: "TemplateId"); |
|
||||
} |
|
||||
|
|
||||
/// <inheritdoc />
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropTable( |
|
||||
name: "AbpDataType"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "AbpEntityModelProperties"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "AbpEnumTypeProperty"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "AbpProjects"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "AbpTemplateDetails"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "AbpEntityModels"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "AbpEnumType"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "AbpTemplates"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
File diff suppressed because it is too large
@ -1,404 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
#nullable disable |
|
||||
|
|
||||
namespace Lion.AbpPro.Migrations |
|
||||
{ |
|
||||
/// <inheritdoc />
|
|
||||
public partial class _102 : Migration |
|
||||
{ |
|
||||
/// <inheritdoc />
|
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropForeignKey( |
|
||||
name: "FK_AbpEntityModelProperties_AbpEntityModels_EntityModelId", |
|
||||
table: "AbpEntityModelProperties"); |
|
||||
|
|
||||
migrationBuilder.DropForeignKey( |
|
||||
name: "FK_AbpEnumTypeProperty_AbpEnumType_EnumTypeId", |
|
||||
table: "AbpEnumTypeProperty"); |
|
||||
|
|
||||
migrationBuilder.DropForeignKey( |
|
||||
name: "FK_AbpTemplateDetails_AbpTemplates_TemplateId", |
|
||||
table: "AbpTemplateDetails"); |
|
||||
|
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_AbpTemplates", |
|
||||
table: "AbpTemplates"); |
|
||||
|
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_AbpTemplateDetails", |
|
||||
table: "AbpTemplateDetails"); |
|
||||
|
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_AbpProjects", |
|
||||
table: "AbpProjects"); |
|
||||
|
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_AbpEnumTypeProperty", |
|
||||
table: "AbpEnumTypeProperty"); |
|
||||
|
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_AbpEnumType", |
|
||||
table: "AbpEnumType"); |
|
||||
|
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_AbpEntityModels", |
|
||||
table: "AbpEntityModels"); |
|
||||
|
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_AbpEntityModelProperties", |
|
||||
table: "AbpEntityModelProperties"); |
|
||||
|
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_AbpDataType", |
|
||||
table: "AbpDataType"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Name", |
|
||||
table: "AbpProjects"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "AbpTemplates", |
|
||||
newName: "AbpProTemplates"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "AbpTemplateDetails", |
|
||||
newName: "AbpProTemplateDetails"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "AbpProjects", |
|
||||
newName: "AbpProProjects"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "AbpEnumTypeProperty", |
|
||||
newName: "AbpProEnumTypeProperty"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "AbpEnumType", |
|
||||
newName: "AbpProEnumType"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "AbpEntityModels", |
|
||||
newName: "AbpProEntityModels"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "AbpEntityModelProperties", |
|
||||
newName: "AbpProEntityModelProperties"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "AbpDataType", |
|
||||
newName: "AbpProDataType"); |
|
||||
|
|
||||
migrationBuilder.RenameIndex( |
|
||||
name: "IX_AbpTemplateDetails_TemplateId", |
|
||||
table: "AbpProTemplateDetails", |
|
||||
newName: "IX_AbpProTemplateDetails_TemplateId"); |
|
||||
|
|
||||
migrationBuilder.RenameIndex( |
|
||||
name: "IX_AbpEnumTypeProperty_EnumTypeId", |
|
||||
table: "AbpProEnumTypeProperty", |
|
||||
newName: "IX_AbpProEnumTypeProperty_EnumTypeId"); |
|
||||
|
|
||||
migrationBuilder.RenameIndex( |
|
||||
name: "IX_AbpEnumTypeProperty_Code", |
|
||||
table: "AbpProEnumTypeProperty", |
|
||||
newName: "IX_AbpProEnumTypeProperty_Code"); |
|
||||
|
|
||||
migrationBuilder.RenameIndex( |
|
||||
name: "IX_AbpEnumType_Code", |
|
||||
table: "AbpProEnumType", |
|
||||
newName: "IX_AbpProEnumType_Code"); |
|
||||
|
|
||||
migrationBuilder.RenameIndex( |
|
||||
name: "IX_AbpEntityModels_Code", |
|
||||
table: "AbpProEntityModels", |
|
||||
newName: "IX_AbpProEntityModels_Code"); |
|
||||
|
|
||||
migrationBuilder.RenameIndex( |
|
||||
name: "IX_AbpEntityModelProperties_EntityModelId", |
|
||||
table: "AbpProEntityModelProperties", |
|
||||
newName: "IX_AbpProEntityModelProperties_EntityModelId"); |
|
||||
|
|
||||
migrationBuilder.AddColumn<bool>( |
|
||||
name: "AllowAdd", |
|
||||
table: "AbpProEntityModelProperties", |
|
||||
type: "tinyint(1)", |
|
||||
nullable: false, |
|
||||
defaultValue: false); |
|
||||
|
|
||||
migrationBuilder.AddColumn<bool>( |
|
||||
name: "AllowEdit", |
|
||||
table: "AbpProEntityModelProperties", |
|
||||
type: "tinyint(1)", |
|
||||
nullable: false, |
|
||||
defaultValue: false); |
|
||||
|
|
||||
migrationBuilder.AddColumn<bool>( |
|
||||
name: "AllowSearch", |
|
||||
table: "AbpProEntityModelProperties", |
|
||||
type: "tinyint(1)", |
|
||||
nullable: false, |
|
||||
defaultValue: false); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_AbpProTemplates", |
|
||||
table: "AbpProTemplates", |
|
||||
column: "Id"); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_AbpProTemplateDetails", |
|
||||
table: "AbpProTemplateDetails", |
|
||||
column: "Id"); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_AbpProProjects", |
|
||||
table: "AbpProProjects", |
|
||||
column: "Id"); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_AbpProEnumTypeProperty", |
|
||||
table: "AbpProEnumTypeProperty", |
|
||||
column: "Id"); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_AbpProEnumType", |
|
||||
table: "AbpProEnumType", |
|
||||
column: "Id"); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_AbpProEntityModels", |
|
||||
table: "AbpProEntityModels", |
|
||||
column: "Id"); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_AbpProEntityModelProperties", |
|
||||
table: "AbpProEntityModelProperties", |
|
||||
column: "Id"); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_AbpProDataType", |
|
||||
table: "AbpProDataType", |
|
||||
column: "Id"); |
|
||||
|
|
||||
migrationBuilder.AddForeignKey( |
|
||||
name: "FK_AbpProEntityModelProperties_AbpProEntityModels_EntityModelId", |
|
||||
table: "AbpProEntityModelProperties", |
|
||||
column: "EntityModelId", |
|
||||
principalTable: "AbpProEntityModels", |
|
||||
principalColumn: "Id", |
|
||||
onDelete: ReferentialAction.Cascade); |
|
||||
|
|
||||
migrationBuilder.AddForeignKey( |
|
||||
name: "FK_AbpProEnumTypeProperty_AbpProEnumType_EnumTypeId", |
|
||||
table: "AbpProEnumTypeProperty", |
|
||||
column: "EnumTypeId", |
|
||||
principalTable: "AbpProEnumType", |
|
||||
principalColumn: "Id", |
|
||||
onDelete: ReferentialAction.Cascade); |
|
||||
|
|
||||
migrationBuilder.AddForeignKey( |
|
||||
name: "FK_AbpProTemplateDetails_AbpProTemplates_TemplateId", |
|
||||
table: "AbpProTemplateDetails", |
|
||||
column: "TemplateId", |
|
||||
principalTable: "AbpProTemplates", |
|
||||
principalColumn: "Id", |
|
||||
onDelete: ReferentialAction.Cascade); |
|
||||
} |
|
||||
|
|
||||
/// <inheritdoc />
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropForeignKey( |
|
||||
name: "FK_AbpProEntityModelProperties_AbpProEntityModels_EntityModelId", |
|
||||
table: "AbpProEntityModelProperties"); |
|
||||
|
|
||||
migrationBuilder.DropForeignKey( |
|
||||
name: "FK_AbpProEnumTypeProperty_AbpProEnumType_EnumTypeId", |
|
||||
table: "AbpProEnumTypeProperty"); |
|
||||
|
|
||||
migrationBuilder.DropForeignKey( |
|
||||
name: "FK_AbpProTemplateDetails_AbpProTemplates_TemplateId", |
|
||||
table: "AbpProTemplateDetails"); |
|
||||
|
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_AbpProTemplates", |
|
||||
table: "AbpProTemplates"); |
|
||||
|
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_AbpProTemplateDetails", |
|
||||
table: "AbpProTemplateDetails"); |
|
||||
|
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_AbpProProjects", |
|
||||
table: "AbpProProjects"); |
|
||||
|
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_AbpProEnumTypeProperty", |
|
||||
table: "AbpProEnumTypeProperty"); |
|
||||
|
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_AbpProEnumType", |
|
||||
table: "AbpProEnumType"); |
|
||||
|
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_AbpProEntityModels", |
|
||||
table: "AbpProEntityModels"); |
|
||||
|
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_AbpProEntityModelProperties", |
|
||||
table: "AbpProEntityModelProperties"); |
|
||||
|
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_AbpProDataType", |
|
||||
table: "AbpProDataType"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "AllowAdd", |
|
||||
table: "AbpProEntityModelProperties"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "AllowEdit", |
|
||||
table: "AbpProEntityModelProperties"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "AllowSearch", |
|
||||
table: "AbpProEntityModelProperties"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "AbpProTemplates", |
|
||||
newName: "AbpTemplates"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "AbpProTemplateDetails", |
|
||||
newName: "AbpTemplateDetails"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "AbpProProjects", |
|
||||
newName: "AbpProjects"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "AbpProEnumTypeProperty", |
|
||||
newName: "AbpEnumTypeProperty"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "AbpProEnumType", |
|
||||
newName: "AbpEnumType"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "AbpProEntityModels", |
|
||||
newName: "AbpEntityModels"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "AbpProEntityModelProperties", |
|
||||
newName: "AbpEntityModelProperties"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "AbpProDataType", |
|
||||
newName: "AbpDataType"); |
|
||||
|
|
||||
migrationBuilder.RenameIndex( |
|
||||
name: "IX_AbpProTemplateDetails_TemplateId", |
|
||||
table: "AbpTemplateDetails", |
|
||||
newName: "IX_AbpTemplateDetails_TemplateId"); |
|
||||
|
|
||||
migrationBuilder.RenameIndex( |
|
||||
name: "IX_AbpProEnumTypeProperty_EnumTypeId", |
|
||||
table: "AbpEnumTypeProperty", |
|
||||
newName: "IX_AbpEnumTypeProperty_EnumTypeId"); |
|
||||
|
|
||||
migrationBuilder.RenameIndex( |
|
||||
name: "IX_AbpProEnumTypeProperty_Code", |
|
||||
table: "AbpEnumTypeProperty", |
|
||||
newName: "IX_AbpEnumTypeProperty_Code"); |
|
||||
|
|
||||
migrationBuilder.RenameIndex( |
|
||||
name: "IX_AbpProEnumType_Code", |
|
||||
table: "AbpEnumType", |
|
||||
newName: "IX_AbpEnumType_Code"); |
|
||||
|
|
||||
migrationBuilder.RenameIndex( |
|
||||
name: "IX_AbpProEntityModels_Code", |
|
||||
table: "AbpEntityModels", |
|
||||
newName: "IX_AbpEntityModels_Code"); |
|
||||
|
|
||||
migrationBuilder.RenameIndex( |
|
||||
name: "IX_AbpProEntityModelProperties_EntityModelId", |
|
||||
table: "AbpEntityModelProperties", |
|
||||
newName: "IX_AbpEntityModelProperties_EntityModelId"); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Name", |
|
||||
table: "AbpProjects", |
|
||||
type: "varchar(128)", |
|
||||
maxLength: 128, |
|
||||
nullable: false, |
|
||||
defaultValue: "") |
|
||||
.Annotation("MySql:CharSet", "utf8mb4"); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_AbpTemplates", |
|
||||
table: "AbpTemplates", |
|
||||
column: "Id"); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_AbpTemplateDetails", |
|
||||
table: "AbpTemplateDetails", |
|
||||
column: "Id"); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_AbpProjects", |
|
||||
table: "AbpProjects", |
|
||||
column: "Id"); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_AbpEnumTypeProperty", |
|
||||
table: "AbpEnumTypeProperty", |
|
||||
column: "Id"); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_AbpEnumType", |
|
||||
table: "AbpEnumType", |
|
||||
column: "Id"); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_AbpEntityModels", |
|
||||
table: "AbpEntityModels", |
|
||||
column: "Id"); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_AbpEntityModelProperties", |
|
||||
table: "AbpEntityModelProperties", |
|
||||
column: "Id"); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_AbpDataType", |
|
||||
table: "AbpDataType", |
|
||||
column: "Id"); |
|
||||
|
|
||||
migrationBuilder.AddForeignKey( |
|
||||
name: "FK_AbpEntityModelProperties_AbpEntityModels_EntityModelId", |
|
||||
table: "AbpEntityModelProperties", |
|
||||
column: "EntityModelId", |
|
||||
principalTable: "AbpEntityModels", |
|
||||
principalColumn: "Id", |
|
||||
onDelete: ReferentialAction.Cascade); |
|
||||
|
|
||||
migrationBuilder.AddForeignKey( |
|
||||
name: "FK_AbpEnumTypeProperty_AbpEnumType_EnumTypeId", |
|
||||
table: "AbpEnumTypeProperty", |
|
||||
column: "EnumTypeId", |
|
||||
principalTable: "AbpEnumType", |
|
||||
principalColumn: "Id", |
|
||||
onDelete: ReferentialAction.Cascade); |
|
||||
|
|
||||
migrationBuilder.AddForeignKey( |
|
||||
name: "FK_AbpTemplateDetails_AbpTemplates_TemplateId", |
|
||||
table: "AbpTemplateDetails", |
|
||||
column: "TemplateId", |
|
||||
principalTable: "AbpTemplates", |
|
||||
principalColumn: "Id", |
|
||||
onDelete: ReferentialAction.Cascade); |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
File diff suppressed because it is too large
Loading…
Reference in new issue