Browse Source

Change StoreOwner to audited aggregate root

pull/103/head
gdlcf88 6 years ago
parent
commit
d3c944d98b
  1. 2
      modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Application.Contracts/EasyAbp/EShop/Stores/StoreOwners/Dtos/StoreOwnerDto.cs
  2. 2
      modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Domain/EasyAbp/EShop/Stores/StoreOwners/StoreOwner.cs
  3. 4542
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200928084506_ChangedStoreOwnerToAuditedAggregateRoot.Designer.cs
  4. 45
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200928084506_ChangedStoreOwnerToAuditedAggregateRoot.cs
  5. 14
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/EShopSampleMigrationsDbContextModelSnapshot.cs

2
modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Application.Contracts/EasyAbp/EShop/Stores/StoreOwners/Dtos/StoreOwnerDto.cs

@ -6,7 +6,7 @@ using Volo.Abp.Application.Dtos;
namespace EasyAbp.EShop.Stores.StoreOwners.Dtos
{
[Serializable]
public class StoreOwnerDto : ExtensibleFullAuditedEntityDto<Guid>, IMultiStore
public class StoreOwnerDto : ExtensibleAuditedEntityDto<Guid>, IMultiStore
{
public Guid StoreId { get; set; }

2
modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Domain/EasyAbp/EShop/Stores/StoreOwners/StoreOwner.cs

@ -5,7 +5,7 @@ using Volo.Abp.MultiTenancy;
namespace EasyAbp.EShop.Stores.StoreOwners
{
public class StoreOwner : FullAuditedAggregateRoot<Guid>, IMultiTenant, IMultiStore
public class StoreOwner : AuditedAggregateRoot<Guid>, IMultiTenant, IMultiStore
{
public virtual Guid? TenantId { get; protected set; }

4542
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200928084506_ChangedStoreOwnerToAuditedAggregateRoot.Designer.cs

File diff suppressed because it is too large

45
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200928084506_ChangedStoreOwnerToAuditedAggregateRoot.cs

@ -0,0 +1,45 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class ChangedStoreOwnerToAuditedAggregateRoot : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "DeleterId",
table: "EasyAbpEShopStoresStoreOwners");
migrationBuilder.DropColumn(
name: "DeletionTime",
table: "EasyAbpEShopStoresStoreOwners");
migrationBuilder.DropColumn(
name: "IsDeleted",
table: "EasyAbpEShopStoresStoreOwners");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<Guid>(
name: "DeleterId",
table: "EasyAbpEShopStoresStoreOwners",
type: "uniqueidentifier",
nullable: true);
migrationBuilder.AddColumn<DateTime>(
name: "DeletionTime",
table: "EasyAbpEShopStoresStoreOwners",
type: "datetime2",
nullable: true);
migrationBuilder.AddColumn<bool>(
name: "IsDeleted",
table: "EasyAbpEShopStoresStoreOwners",
type: "bit",
nullable: false,
defaultValue: false);
}
}
}

14
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/EShopSampleMigrationsDbContextModelSnapshot.cs

@ -1641,24 +1641,10 @@ namespace EShopSample.Migrations
.HasColumnName("CreatorId")
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("DeleterId")
.HasColumnName("DeleterId")
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("DeletionTime")
.HasColumnName("DeletionTime")
.HasColumnType("datetime2");
b.Property<string>("ExtraProperties")
.HasColumnName("ExtraProperties")
.HasColumnType("nvarchar(max)");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnName("IsDeleted")
.HasColumnType("bit")
.HasDefaultValue(false);
b.Property<DateTime?>("LastModificationTime")
.HasColumnName("LastModificationTime")
.HasColumnType("datetime2");

Loading…
Cancel
Save