mirror of https://github.com/EasyAbp/EShop.git
16 changed files with 3217 additions and 35 deletions
@ -0,0 +1,11 @@ |
|||||
|
using EasyAbp.EShop.Products.ProductDetails; |
||||
|
using Volo.Abp.Domain.Entities.Events; |
||||
|
using Volo.Abp.EventBus; |
||||
|
|
||||
|
namespace EasyAbp.EShop.Products.ProductDetailHistories |
||||
|
{ |
||||
|
public interface IProductDetailHistoryRecorder : ILocalEventHandler<EntityChangedEventData<ProductDetail>> |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,11 @@ |
|||||
|
using EasyAbp.EShop.Products.Products; |
||||
|
using Volo.Abp.Domain.Entities.Events; |
||||
|
using Volo.Abp.EventBus; |
||||
|
|
||||
|
namespace EasyAbp.EShop.Products.ProductHistories |
||||
|
{ |
||||
|
public interface IProductHistoryRecorder : ILocalEventHandler<EntityChangedEventData<Product>> |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
} |
||||
File diff suppressed because it is too large
@ -0,0 +1,51 @@ |
|||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
namespace EasyMall.Migrations |
||||
|
{ |
||||
|
public partial class ChangedToSerializedEntityData : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "SerializedDto", |
||||
|
table: "EShopProductsProductHistories"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "SerializedDto", |
||||
|
table: "EShopProductsProductDetailHistories"); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "SerializedEntityData", |
||||
|
table: "EShopProductsProductHistories", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "SerializedEntityData", |
||||
|
table: "EShopProductsProductDetailHistories", |
||||
|
nullable: true); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "SerializedEntityData", |
||||
|
table: "EShopProductsProductHistories"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "SerializedEntityData", |
||||
|
table: "EShopProductsProductDetailHistories"); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "SerializedDto", |
||||
|
table: "EShopProductsProductHistories", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "SerializedDto", |
||||
|
table: "EShopProductsProductDetailHistories", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue