Browse Source

Merge branch 'master' into dev

pull/119/head
gdlcf88 5 years ago
parent
commit
4ec707a117
  1. 8
      Directory.Build.props
  2. 7
      EShop.sln
  3. 2
      azure-pipelines.yml
  4. 2
      common.props
  5. 9
      modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Domain/EasyAbp/EShop/Orders/Orders/PaymentCanceledEventHandler.cs
  6. 2
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application.Contracts/EasyAbp/EShop/Products/Categories/Dtos/CategoryDto.cs
  7. 3
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application.Contracts/EasyAbp/EShop/Products/Categories/Dtos/CreateUpdateCategoryDto.cs
  8. 2
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application.Contracts/EasyAbp/EShop/Products/Products/IProductAppService.cs
  9. 18
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/Categories/CategoryAppService.cs
  10. 4
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/Products/ProductAppService.cs
  11. 15
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/Products/ProductViewAppService.cs
  12. 3
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/ProductsApplicationAutoMapperProfile.cs
  13. 1
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain.Shared/EasyAbp/EShop/Products/Localization/Products/cs.json
  14. 1
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain.Shared/EasyAbp/EShop/Products/Localization/Products/en.json
  15. 1
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain.Shared/EasyAbp/EShop/Products/Localization/Products/pl.json
  16. 1
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain.Shared/EasyAbp/EShop/Products/Localization/Products/pt-BR.json
  17. 1
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain.Shared/EasyAbp/EShop/Products/Localization/Products/sl.json
  18. 1
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain.Shared/EasyAbp/EShop/Products/Localization/Products/tr.json
  19. 1
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain.Shared/EasyAbp/EShop/Products/Localization/Products/vi.json
  20. 1
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain.Shared/EasyAbp/EShop/Products/Localization/Products/zh-Hans.json
  21. 1
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain.Shared/EasyAbp/EShop/Products/Localization/Products/zh-Hant.json
  22. 18
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain/EasyAbp/EShop/Products/Categories/Category.cs
  23. 40
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain/EasyAbp/EShop/Products/Categories/CategoryManager.cs
  24. 12
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain/EasyAbp/EShop/Products/Categories/DuplicateCategoryUniqueNameException.cs
  25. 26
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain/EasyAbp/EShop/Products/Categories/ICategoryManager.cs
  26. 2
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain/EasyAbp/EShop/Products/Products/ProductManager.cs
  27. 16
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.EntityFrameworkCore/EasyAbp/EShop/Products/Categories/CategoryRepository.cs
  28. 3
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.EntityFrameworkCore/EasyAbp/EShop/Products/EntityFrameworkCore/ProductsDbContextModelCreatingExtensions.cs
  29. 10
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.HttpApi/EasyAbp/EShop/Products/Products/ProductController.cs
  30. 2
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Categories/Category/Index.cshtml
  31. 3
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Categories/Category/ViewModels/CreateEditProductViewModel.cs
  32. 2
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Categories/Category/index.js
  33. 2
      samples/EShopSample/aspnet-core/src/EShopSample.DbMigrator/EShopSample.DbMigrator.csproj
  34. 2
      samples/EShopSample/aspnet-core/src/EShopSample.DbMigrator/EShopSampleDbMigratorModule.cs
  35. 63
      samples/EShopSample/aspnet-core/src/EShopSample.Domain/Users/AppUser.cs
  36. 25
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/EShopSample.EntityFrameworkCore.DbMigrations.csproj
  37. 16
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/EntityFrameworkCore/EShopSampleEntityFrameworkCoreDbMigrationsModule.cs
  38. 62
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/EntityFrameworkCore/EShopSampleMigrationsDbContext.cs
  39. 3123
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200526074907_AddedCodeToProductSku.Designer.cs
  40. 1715
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200526074907_AddedCodeToProductSku.cs
  41. 3123
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200527083620_ChangedToSerializedEntityData.Designer.cs
  42. 51
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200527083620_ChangedToSerializedEntityData.cs
  43. 3129
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200602074752_AddedPaymentAndRefundEntities.Designer.cs
  44. 32
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200602074752_AddedPaymentAndRefundEntities.cs
  45. 3367
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200603115405_MadePaymentAndRefundExclusiveTableEntities.Designer.cs
  46. 143
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200603115405_MadePaymentAndRefundExclusiveTableEntities.cs
  47. 3533
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200610111529_UpgradedToAbp2_9_0.Designer.cs
  48. 127
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200610111529_UpgradedToAbp2_9_0.cs
  49. 3540
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200612085218_AddedOrderNumberProperty.Designer.cs
  50. 33
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200612085218_AddedOrderNumberProperty.cs
  51. 3543
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200612105914_AddedOrderMaxQuantityProperty.Designer.cs
  52. 23
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200612105914_AddedOrderMaxQuantityProperty.cs
  53. 3543
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200620070213_ChangedMoneyToDecimal20_8.Designer.cs
  54. 303
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200620070213_ChangedMoneyToDecimal20_8.cs
  55. 3561
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200620145307_UsedEasyAbpTreesModule.Designer.cs
  56. 63
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200620145307_UsedEasyAbpTreesModule.cs
  57. 3589
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200624075154_UpgradedPaymentServiceModuleTo0_3_7.Designer.cs
  58. 219
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200624075154_UpgradedPaymentServiceModuleTo0_3_7.cs
  59. 3601
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200624181705_AddedMissingPropertiesInPaymentAndRefund.Designer.cs
  60. 52
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200624181705_AddedMissingPropertiesInPaymentAndRefund.cs
  61. 3601
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200624191051_AddedColumnTypeOfPendingRefundAmount.Designer.cs
  62. 45
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200624191051_AddedColumnTypeOfPendingRefundAmount.cs
  63. 3601
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200627172358_RenamedCancelledToCanceled.Designer.cs
  64. 64
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200627172358_RenamedCancelledToCanceled.cs
  65. 3625
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200702100757_UpgradedAbpTo3_0_0.Designer.cs
  66. 519
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200702100757_UpgradedAbpTo3_0_0.cs
  67. 3699
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704104743_AddedMediaResourcesToProductSku.Designer.cs
  68. 59
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704104743_AddedMediaResourcesToProductSku.cs
  69. 3699
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704130321_AddedDecimalConfigurationsToBasketItem.Designer.cs
  70. 61
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704130321_AddedDecimalConfigurationsToBasketItem.cs
  71. 3702
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704130714_AddedStoreIdToBasketItem.Designer.cs
  72. 24
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704130714_AddedStoreIdToBasketItem.cs
  73. 3762
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704181535_CreatedProductUpdateEntity.Designer.cs
  74. 44
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704181535_CreatedProductUpdateEntity.cs
  75. 3770
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704182511_ChangeBasketItemToAuditedEntity.Designer.cs
  76. 32
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704182511_ChangeBasketItemToAuditedEntity.cs
  77. 3776
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704195327_AddInventoryAndIsInvalidToBasketItem.Designer.cs
  78. 33
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704195327_AddInventoryAndIsInvalidToBasketItem.cs
  79. 3772
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704200233_RemoveTenantIdFromProductUpdate.Designer.cs
  80. 24
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704200233_RemoveTenantIdFromProductUpdate.cs
  81. 3831
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200705195503_RedesignedInventory.Designer.cs
  82. 68
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200705195503_RedesignedInventory.cs
  83. 3837
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200706060054_AddedSpecifiedInventoryProviderName.Designer.cs
  84. 31
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200706060054_AddedSpecifiedInventoryProviderName.cs
  85. 3837
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200706070250_ChangedSoldToLong.Designer.cs
  86. 27
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200706070250_ChangedSoldToLong.cs
  87. 3840
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200708064137_AddedProductTypeNameToOrderLine.Designer.cs
  88. 22
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200708064137_AddedProductTypeNameToOrderLine.cs
  89. 3840
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710144500_AddedNameAndRemovedParentCategoryId.Designer.cs
  90. 33
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710144500_AddedNameAndRemovedParentCategoryId.cs
  91. 3840
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710151847_RenamedCodeToName.Designer.cs
  92. 33
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710151847_RenamedCodeToName.cs
  93. 3844
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710152518_MadeUniqueNameUniqueIndex.Designer.cs
  94. 40
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710152518_MadeUniqueNameUniqueIndex.cs
  95. 3848
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710153132_RenamedNameToUniqueNameInCategory.Designer.cs
  96. 43
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710153132_RenamedNameToUniqueNameInCategory.cs
  97. 3854
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710160345_RenamedNameToUniqueName.Designer.cs
  98. 107
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710160345_RenamedNameToUniqueName.cs
  99. 3860
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710163538_AddedSkuName.Designer.cs
  100. 31
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710163538_AddedSkuName.cs

8
Directory.Build.props

@ -1,10 +1,10 @@
<Project>
<PropertyGroup>
<AbpVersion>4.3.0</AbpVersion>
<EasyAbpAbpTreesModuleVersion>2.3.0</EasyAbpAbpTreesModuleVersion>
<EasyAbpPaymentServiceModuleVersion>1.10.2</EasyAbpPaymentServiceModuleVersion>
<EasyAbpAbpTagHelperPlusModuleVersion>0.6.3</EasyAbpAbpTagHelperPlusModuleVersion>
<AbpVersion>4.4.0</AbpVersion>
<EasyAbpAbpTreesModuleVersion>2.4.0</EasyAbpAbpTreesModuleVersion>
<EasyAbpPaymentServiceModuleVersion>1.10.3</EasyAbpPaymentServiceModuleVersion>
<EasyAbpAbpTagHelperPlusModuleVersion>0.7.1</EasyAbpAbpTagHelperPlusModuleVersion>
</PropertyGroup>
</Project>

7
EShop.sln

@ -19,8 +19,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EShopSample.Application.Tes
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EShopSample.Web.Tests", "samples\EShopSample\aspnet-core\test\EShopSample.Web.Tests\EShopSample.Web.Tests.csproj", "{5F1B28C6-8D0C-4155-92D0-252F7EA5F674}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EShopSample.EntityFrameworkCore.DbMigrations", "samples\EShopSample\aspnet-core\src\EShopSample.EntityFrameworkCore.DbMigrations\EShopSample.EntityFrameworkCore.DbMigrations.csproj", "{0372FA84-C517-4EB3-9A9F-B9ACAC0CA5E0}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EShopSample.Domain.Shared", "samples\EShopSample\aspnet-core\src\EShopSample.Domain.Shared\EShopSample.Domain.Shared.csproj", "{42F719ED-8413-4895-B5B4-5AB56079BC66}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EShopSample.Application.Contracts", "samples\EShopSample\aspnet-core\src\EShopSample.Application.Contracts\EShopSample.Application.Contracts.csproj", "{520659C8-C734-4298-A3DA-B539DB9DFC0B}"
@ -373,10 +371,6 @@ Global
{5F1B28C6-8D0C-4155-92D0-252F7EA5F674}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5F1B28C6-8D0C-4155-92D0-252F7EA5F674}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5F1B28C6-8D0C-4155-92D0-252F7EA5F674}.Release|Any CPU.Build.0 = Release|Any CPU
{0372FA84-C517-4EB3-9A9F-B9ACAC0CA5E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0372FA84-C517-4EB3-9A9F-B9ACAC0CA5E0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0372FA84-C517-4EB3-9A9F-B9ACAC0CA5E0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0372FA84-C517-4EB3-9A9F-B9ACAC0CA5E0}.Release|Any CPU.Build.0 = Release|Any CPU
{42F719ED-8413-4895-B5B4-5AB56079BC66}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{42F719ED-8413-4895-B5B4-5AB56079BC66}.Debug|Any CPU.Build.0 = Debug|Any CPU
{42F719ED-8413-4895-B5B4-5AB56079BC66}.Release|Any CPU.ActiveCfg = Release|Any CPU
@ -914,7 +908,6 @@ Global
{04DBDB01-70F4-4E06-B468-8F87850B22BE} = {FE0A5FD6-AEE7-4738-9A6D-261BF086704D}
{50B2631D-129C-47B3-A587-029CCD6099BC} = {04DBDB01-70F4-4E06-B468-8F87850B22BE}
{5F1B28C6-8D0C-4155-92D0-252F7EA5F674} = {04DBDB01-70F4-4E06-B468-8F87850B22BE}
{0372FA84-C517-4EB3-9A9F-B9ACAC0CA5E0} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
{42F719ED-8413-4895-B5B4-5AB56079BC66} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
{520659C8-C734-4298-A3DA-B539DB9DFC0B} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
{4164BDF7-F527-4E85-9CE6-E3C2D7426A27} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}

2
azure-pipelines.yml

@ -105,7 +105,7 @@ stages:
displayName: 'update database'
inputs:
script: |
dotnet ef database update --project samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/EShopSample.EntityFrameworkCore.DbMigrations.csproj -s samples/EShopSample/aspnet-core/src/EShopSample.Web/EShopSample.Web.csproj
dotnet ef database update --project samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/EShopSample.EntityFrameworkCore.csproj -s samples/EShopSample/aspnet-core/src/EShopSample.Web/EShopSample.Web.csproj
- task: CmdLine@2
inputs:

2
common.props

@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>2.1.8</Version>
<Version>2.2.7</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>EasyAbp Team</Authors>

9
modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Domain/EasyAbp/EShop/Orders/Orders/PaymentCanceledEventHandler.cs

@ -5,22 +5,29 @@ using EasyAbp.EShop.Payments;
using EasyAbp.EShop.Payments.Payments;
using Volo.Abp.DependencyInjection;
using Volo.Abp.EventBus.Distributed;
using Volo.Abp.MultiTenancy;
using Volo.Abp.Uow;
namespace EasyAbp.EShop.Orders.Orders
{
public class PaymentCanceledEventHandler : IDistributedEventHandler<EShopPaymentCanceledEto>, ITransientDependency
{
private readonly ICurrentTenant _currentTenant;
private readonly IOrderRepository _orderRepository;
public PaymentCanceledEventHandler(IOrderRepository orderRepository)
public PaymentCanceledEventHandler(
ICurrentTenant currentTenant,
IOrderRepository orderRepository)
{
_currentTenant = currentTenant;
_orderRepository = orderRepository;
}
[UnitOfWork(true)]
public virtual async Task HandleEventAsync(EShopPaymentCanceledEto eventData)
{
using var currentTenant = _currentTenant.Change(eventData.TenantId);
foreach (var paymentItem in eventData.Payment.PaymentItems.Where(item =>
item.ItemType == PaymentsConsts.PaymentItemType))
{

2
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application.Contracts/EasyAbp/EShop/Products/Categories/Dtos/CategoryDto.cs

@ -24,5 +24,7 @@ namespace EasyAbp.EShop.Products.Categories.Dtos
public string Description { get; set; }
public string MediaResources { get; set; }
public bool IsHidden { get; set; }
}
}

3
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application.Contracts/EasyAbp/EShop/Products/Categories/Dtos/CreateUpdateCategoryDto.cs

@ -23,5 +23,8 @@ namespace EasyAbp.EShop.Products.Categories.Dtos
[DisplayName("CategoryMediaResources")]
public string MediaResources { get; set; }
[DisplayName("CategoryIsHidden")]
public bool IsHidden { get; set; }
}
}

2
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application.Contracts/EasyAbp/EShop/Products/Products/IProductAppService.cs

@ -20,7 +20,7 @@ namespace EasyAbp.EShop.Products.Products
Task<ProductDto> DeleteSkuAsync(Guid productId, Guid productSkuId);
Task<ProductDto> GetByCodeAsync(Guid storeId, string code);
Task<ProductDto> GetByUniqueNameAsync(Guid storeId, string uniqueName);
Task<ListResultDto<ProductGroupDto>> GetProductGroupListAsync();
}

18
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/Categories/CategoryAppService.cs

@ -20,10 +20,14 @@ namespace EasyAbp.EShop.Products.Categories
protected override string GetPolicyName { get; set; } = null;
protected override string GetListPolicyName { get; set; } = null;
private readonly ICategoryManager _categoryManager;
private readonly ICategoryRepository _repository;
public CategoryAppService(ICategoryRepository repository) : base(repository)
public CategoryAppService(
ICategoryManager categoryManager,
ICategoryRepository repository) : base(repository)
{
_categoryManager = categoryManager;
_repository = repository;
}
@ -34,6 +38,18 @@ namespace EasyAbp.EShop.Products.Categories
return input.ShowHidden ? query : query.Where(x => !x.IsHidden);
}
protected override async Task<Category> MapToEntityAsync(CreateUpdateCategoryDto createInput)
{
return await _categoryManager.CreateAsync(createInput.ParentId, createInput.UniqueName,
createInput.DisplayName, createInput.Description, createInput.MediaResources, createInput.IsHidden);
}
protected override async Task MapToEntityAsync(CreateUpdateCategoryDto updateInput, Category entity)
{
await _categoryManager.UpdateAsync(entity, updateInput.ParentId, updateInput.UniqueName,
updateInput.DisplayName, updateInput.Description, updateInput.MediaResources, updateInput.IsHidden);
}
public override async Task<PagedResultDto<CategoryDto>> GetListAsync(GetCategoryListDto input)
{
if (input.ShowHidden && !await AuthorizationService.IsGrantedAsync(ProductsPermissions.Categories.ShowHidden))

4
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/Products/ProductAppService.cs

@ -234,11 +234,11 @@ namespace EasyAbp.EShop.Products.Products
return Task.CompletedTask;
}
public virtual async Task<ProductDto> GetByCodeAsync(Guid storeId, string code)
public virtual async Task<ProductDto> GetByUniqueNameAsync(Guid storeId, string uniqueName)
{
await CheckGetPolicyAsync();
var product = await _repository.GetAsync(x => x.UniqueName == code);
var product = await _repository.GetAsync(x => x.UniqueName == uniqueName);
if (!product.IsPublished)
{

15
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/Products/ProductViewAppService.cs

@ -20,18 +20,18 @@ namespace EasyAbp.EShop.Products.Products
private readonly IProductViewCacheKeyProvider _productViewCacheKeyProvider;
private readonly IDistributedCache<ProductViewCacheItem> _cache;
private readonly IProductAppService _productAppService;
private readonly IProductRepository _productRepository;
private readonly IProductViewRepository _repository;
public ProductViewAppService(
IProductViewCacheKeyProvider productViewCacheKeyProvider,
IDistributedCache<ProductViewCacheItem> cache,
IProductAppService productAppService,
IProductRepository productRepository,
IProductViewRepository repository) : base(repository)
{
_productViewCacheKeyProvider = productViewCacheKeyProvider;
_cache = cache;
_productAppService = productAppService;
_productRepository = productRepository;
_repository = repository;
}
@ -96,18 +96,15 @@ namespace EasyAbp.EShop.Products.Products
protected virtual async Task BuildStoreProductViewsAsync(Guid storeId)
{
var resultDto = await _productAppService.GetListAsync(new GetProductListInput
{
StoreId = storeId
});
var products = await _productRepository.GetListAsync(x => x.StoreId == storeId);
using var uow = UnitOfWorkManager.Begin(true, true);
await _repository.DeleteAsync(x => x.StoreId == storeId, true);
foreach (var product in resultDto.Items)
foreach (var product in products)
{
await _repository.InsertAsync(ObjectMapper.Map<ProductDto, ProductView>(product));
await _repository.InsertAsync(ObjectMapper.Map<Product, ProductView>(product));
}
await uow.CompleteAsync();

3
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/ProductsApplicationAutoMapperProfile.cs

@ -62,13 +62,12 @@ namespace EasyAbp.EShop.Products
CreateMap<UpdateProductSkuDto, ProductSku>(MemberList.Source);
CreateMap<Category, CategoryDto>();
CreateMap<Category, CategorySummaryDto>();
CreateMap<CreateUpdateCategoryDto, Category>(MemberList.Source);
CreateMap<ProductCategory, ProductCategoryDto>();
CreateMap<ProductHistory, ProductHistoryDto>();
CreateMap<ProductDetailHistory, ProductDetailHistoryDto>();
CreateMap<ProductInventory, ProductInventoryDto>();
CreateMap<ProductView, ProductViewDto>();
CreateMap<ProductDto, ProductView>(MemberList.Destination);
CreateMap<Product, ProductView>(MemberList.Destination);
}
}
}

1
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain.Shared/EasyAbp/EShop/Products/Localization/Products/cs.json

@ -66,6 +66,7 @@
"CategoryDisplayName": "Display name",
"CategoryDescription": "Description",
"CategoryMediaResources": "Media resources",
"CategoryIsHidden": "Hidden",
"CreateCategory": "New",
"EditCategory": "Edit",
"CategoryDeletionConfirmationMessage": "Are you sure to delete the category {0}?",

1
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain.Shared/EasyAbp/EShop/Products/Localization/Products/en.json

@ -67,6 +67,7 @@
"CategoryDisplayName": "Display name",
"CategoryDescription": "Description",
"CategoryMediaResources": "Media resources",
"CategoryIsHidden": "Hidden",
"CreateCategory": "New",
"EditCategory": "Edit",
"CategoryDeletionConfirmationMessage": "Are you sure to delete the category {0}?",

1
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain.Shared/EasyAbp/EShop/Products/Localization/Products/pl.json

@ -66,6 +66,7 @@
"CategoryDisplayName": "Display name",
"CategoryDescription": "Description",
"CategoryMediaResources": "Media resources",
"CategoryIsHidden": "Hidden",
"CreateCategory": "New",
"EditCategory": "Edit",
"CategoryDeletionConfirmationMessage": "Are you sure to delete the category {0}?",

1
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain.Shared/EasyAbp/EShop/Products/Localization/Products/pt-BR.json

@ -66,6 +66,7 @@
"CategoryDisplayName": "Display name",
"CategoryDescription": "Description",
"CategoryMediaResources": "Media resources",
"CategoryIsHidden": "Hidden",
"CreateCategory": "New",
"EditCategory": "Edit",
"CategoryDeletionConfirmationMessage": "Are you sure to delete the category {0}?",

1
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain.Shared/EasyAbp/EShop/Products/Localization/Products/sl.json

@ -67,6 +67,7 @@
"CategoryDisplayName": "Display name",
"CategoryDescription": "Description",
"CategoryMediaResources": "Media resources",
"CategoryIsHidden": "Hidden",
"CreateCategory": "New",
"EditCategory": "Edit",
"CategoryDeletionConfirmationMessage": "Are you sure to delete the category {0}?",

1
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain.Shared/EasyAbp/EShop/Products/Localization/Products/tr.json

@ -67,6 +67,7 @@
"CategoryDisplayName": "Display name",
"CategoryDescription": "Description",
"CategoryMediaResources": "Media resources",
"CategoryIsHidden": "Hidden",
"CreateCategory": "New",
"EditCategory": "Edit",
"CategoryDeletionConfirmationMessage": "Are you sure to delete the category {0}?",

1
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain.Shared/EasyAbp/EShop/Products/Localization/Products/vi.json

@ -66,6 +66,7 @@
"CategoryDisplayName": "Display name",
"CategoryDescription": "Description",
"CategoryMediaResources": "Media resources",
"CategoryIsHidden": "Hidden",
"CreateCategory": "New",
"EditCategory": "Edit",
"CategoryDeletionConfirmationMessage": "Are you sure to delete the category {0}?",

1
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain.Shared/EasyAbp/EShop/Products/Localization/Products/zh-Hans.json

@ -64,6 +64,7 @@
"CategoryDisplayName": "类目名称",
"CategoryDescription": "描述",
"CategoryMediaResources": "多媒体资源",
"CategoryIsHidden": "隐藏",
"CreateCategory": "新建",
"EditCategory": "编辑",
"CategoryDeletionConfirmationMessage": "确认删除类目 {0}?",

1
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain.Shared/EasyAbp/EShop/Products/Localization/Products/zh-Hant.json

@ -64,6 +64,7 @@
"CategoryDisplayName": "類目名稱",
"CategoryDescription": "描述",
"CategoryMediaResources": "多媒體資源",
"CategoryIsHidden": "隱藏",
"CreateCategory": "新建",
"EditCategory": "編輯",
"CategoryDeletionConfirmationMessage": "確認刪除類目 {0}?",

18
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain/EasyAbp/EShop/Products/Categories/Category.cs

@ -44,17 +44,31 @@ namespace EasyAbp.EShop.Products.Categories
{
}
public Category(
internal Category(
Guid id,
Guid? tenantId,
Guid? parentId,
string uniqueName,
string displayName,
string description,
string mediaResources,
bool isHidden
) :base(id)
) : base(id)
{
TenantId = tenantId;
Update(parentId, uniqueName, displayName, description, mediaResources, isHidden);
}
internal void Update(
Guid? parentId,
string uniqueName,
string displayName,
string description,
string mediaResources,
bool isHidden)
{
ParentId = parentId;
UniqueName = uniqueName;
DisplayName = displayName;
Description = description;

40
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain/EasyAbp/EShop/Products/Categories/CategoryManager.cs

@ -0,0 +1,40 @@
using System;
using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;
using Volo.Abp.Domain.Services;
namespace EasyAbp.EShop.Products.Categories
{
public class CategoryManager : DomainService, ICategoryManager
{
private readonly ICategoryRepository _repository;
public CategoryManager(ICategoryRepository repository)
{
_repository = repository;
}
public virtual async Task<Category> CreateAsync(Guid? parentId, string uniqueName, string displayName,
string description, string mediaResources, bool isHidden)
{
if (await _repository.AnyAsync(x => x.UniqueName == uniqueName))
{
throw new DuplicateCategoryUniqueNameException();
}
return new Category(GuidGenerator.Create(), CurrentTenant.Id, parentId, uniqueName, displayName,
description, mediaResources, isHidden);
}
public virtual async Task UpdateAsync(Category entity, Guid? parentId, string uniqueName, string displayName, string description,
string mediaResources, bool isHidden)
{
if (await _repository.AnyAsync(x => x.UniqueName == uniqueName && x.Id != entity.Id))
{
throw new DuplicateCategoryUniqueNameException();
}
entity.Update(parentId, uniqueName, displayName, description, mediaResources, isHidden);
}
}
}

12
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain/EasyAbp/EShop/Products/Categories/DuplicateCategoryUniqueNameException.cs

@ -0,0 +1,12 @@
using Volo.Abp;
namespace EasyAbp.EShop.Products.Categories
{
public class DuplicateCategoryUniqueNameException : BusinessException
{
public DuplicateCategoryUniqueNameException() : base("DuplicateCategoryUniqueName")
{
}
}
}

26
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain/EasyAbp/EShop/Products/Categories/ICategoryManager.cs

@ -0,0 +1,26 @@
using System;
using System.Threading.Tasks;
using Volo.Abp.Domain.Services;
namespace EasyAbp.EShop.Products.Categories
{
public interface ICategoryManager : IDomainService
{
Task<Category> CreateAsync(
Guid? parentId,
string uniqueName,
string displayName,
string description,
string mediaResources,
bool isHidden);
Task UpdateAsync(
Category entity,
Guid? parentId,
string uniqueName,
string displayName,
string description,
string mediaResources,
bool isHidden);
}
}

2
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain/EasyAbp/EShop/Products/Products/ProductManager.cs

@ -52,7 +52,7 @@ namespace EasyAbp.EShop.Products.Products
{
if (_productGroupConfigurationProvider.Get(product.ProductGroupName) == null)
{
throw new NonexistentProductGroupException(product.DisplayName);
throw new NonexistentProductGroupException(product.ProductGroupName);
}
return Task.CompletedTask;

16
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.EntityFrameworkCore/EasyAbp/EShop/Products/Categories/CategoryRepository.cs

@ -1,4 +1,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using EasyAbp.Abp.Trees;
using EasyAbp.EShop.Products.EntityFrameworkCore;
using Volo.Abp.Domain.Repositories.EntityFrameworkCore;
@ -11,5 +15,17 @@ namespace EasyAbp.EShop.Products.Categories
public CategoryRepository(IDbContextProvider<IProductsDbContext> dbContextProvider) : base(dbContextProvider)
{
}
public override Task InsertManyAsync(IEnumerable<Category> entities, bool autoSave = false,
CancellationToken cancellationToken = new CancellationToken())
{
throw new NotSupportedException();
}
public override Task UpdateManyAsync(IEnumerable<Category> entities, bool autoSave = false,
CancellationToken cancellationToken = new CancellationToken())
{
throw new NotSupportedException();
}
}
}

3
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.EntityFrameworkCore/EasyAbp/EShop/Products/EntityFrameworkCore/ProductsDbContextModelCreatingExtensions.cs

@ -91,9 +91,6 @@ namespace EasyAbp.EShop.Products.EntityFrameworkCore
b.ToTable(options.TablePrefix + "Categories", options.Schema);
b.ConfigureByConvention();
/* Configure more properties here */
// Todo: soft delete support?
b.HasIndex(x => x.UniqueName).IsUnique();
});
builder.Entity<ProductCategory>(b =>

10
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.HttpApi/EasyAbp/EShop/Products/Products/ProductController.cs

@ -66,10 +66,18 @@ namespace EasyAbp.EShop.Products.Products
}
[HttpGet]
[Obsolete("Use `by-unique-name/{uniqueName}`")]
[Route("by-code/{code}")]
public Task<ProductDto> GetByCodeAsync(Guid storeId, string code)
{
return _service.GetByCodeAsync(storeId, code);
return _service.GetByUniqueNameAsync(storeId, code);
}
[HttpGet]
[Route("by-unique-name/{uniqueName}")]
public Task<ProductDto> GetByUniqueNameAsync(Guid storeId, string uniqueName)
{
return _service.GetByUniqueNameAsync(storeId, uniqueName);
}
[HttpDelete]

2
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Categories/Category/Index.cshtml

@ -50,7 +50,7 @@
<th>@L["CategoryUniqueName"]</th>
<th>@L["CategoryDisplayName"]</th>
<th>@L["CategoryDescription"]</th>
<th>@L["CategoryMediaResources"]</th>
<th>@L["CategoryIsHidden"]</th>
</tr>
</thead>
</abp-table>

3
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Categories/Category/ViewModels/CreateEditProductViewModel.cs

@ -20,5 +20,8 @@ namespace EasyAbp.EShop.Products.Web.Pages.EShop.Products.Categories.Category.Vi
[Display(Name = "CategoryMediaResources")]
public string MediaResources { get; set; }
[Display(Name = "CategoryIsHidden")]
public bool IsHidden { get; set; }
}
}

2
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Categories/Category/index.js

@ -59,7 +59,7 @@ $(function () {
{ data: "uniqueName" },
{ data: "displayName" },
{ data: "description" },
{ data: "mediaResources" },
{ data: "isHidden" },
]
}));

2
samples/EShopSample/aspnet-core/src/EShopSample.DbMigrator/EShopSample.DbMigrator.csproj

@ -28,7 +28,7 @@
<ItemGroup>
<PackageReference Include="Volo.Abp.Autofac" Version="$(AbpVersion)" />
<ProjectReference Include="..\EShopSample.Application.Contracts\EShopSample.Application.Contracts.csproj" />
<ProjectReference Include="..\EShopSample.EntityFrameworkCore.DbMigrations\EShopSample.EntityFrameworkCore.DbMigrations.csproj" />
<ProjectReference Include="..\EShopSample.EntityFrameworkCore\EShopSample.EntityFrameworkCore.csproj" />
</ItemGroup>
</Project>

2
samples/EShopSample/aspnet-core/src/EShopSample.DbMigrator/EShopSampleDbMigratorModule.cs

@ -7,7 +7,7 @@ namespace EShopSample.DbMigrator
{
[DependsOn(
typeof(AbpAutofacModule),
typeof(EShopSampleEntityFrameworkCoreDbMigrationsModule),
typeof(EShopSampleEntityFrameworkCoreModule),
typeof(EShopSampleApplicationContractsModule)
)]
public class EShopSampleDbMigratorModule : AbpModule

63
samples/EShopSample/aspnet-core/src/EShopSample.Domain/Users/AppUser.cs

@ -1,63 +0,0 @@
using System;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.Users;
namespace EShopSample.Users
{
/* This entity shares the same table/collection ("AbpUsers" by default) with the
* IdentityUser entity of the Identity module.
*
* - You can define your custom properties into this class.
* - You never create or delete this entity, because it is Identity module's job.
* - You can query users from database with this entity.
* - You can update values of your custom properties.
*/
public class AppUser : FullAuditedAggregateRoot<Guid>, IUser
{
#region Base properties
/* These properties are shared with the IdentityUser entity of the Identity module.
* Do not change these properties through this class. Instead, use Identity module
* services (like IdentityUserManager) to change them.
* So, this properties are designed as read only!
*/
public virtual Guid? TenantId { get; private set; }
public virtual string UserName { get; private set; }
public virtual string Name { get; private set; }
public virtual string Surname { get; private set; }
public virtual string Email { get; private set; }
public virtual bool EmailConfirmed { get; private set; }
public virtual string PhoneNumber { get; private set; }
public virtual bool PhoneNumberConfirmed { get; private set; }
#endregion
/* Add your own properties here. Example:
*
* public string MyProperty { get; set; }
*
* If you add a property and using the EF Core, remember these;
*
* 1. Update EShopSampleDbContext.OnModelCreating
* to configure the mapping for your new property
* 2. Update EShopSampleEfCoreEntityExtensionMappings to extend the IdentityUser entity
* and add your new property to the migration.
* 3. Use the Add-Migration to add a new database migration.
* 4. Run the .DbMigrator project (or use the Update-Database command) to apply
* schema change to the database.
*/
private AppUser()
{
}
}
}

25
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/EShopSample.EntityFrameworkCore.DbMigrations.csproj

@ -1,25 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\common.props" />
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<RootNamespace>EShopSample</RootNamespace>
</PropertyGroup>
<ItemGroup>
<Compile Remove="Migrations\20200517122756_UsedPaymentServiceModule.cs" />
<Compile Remove="Migrations\20200517122756_UsedPaymentServiceModule.Designer.cs" />
<Compile Remove="Migrations\20200517123312_UsedPaymentServiceModule.cs" />
<Compile Remove="Migrations\20200517123312_UsedPaymentServiceModule.Designer.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\EShopSample.EntityFrameworkCore\EShopSample.EntityFrameworkCore.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="5.0.*" />
</ItemGroup>
</Project>

16
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/EntityFrameworkCore/EShopSampleEntityFrameworkCoreDbMigrationsModule.cs

@ -1,16 +0,0 @@
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Modularity;
namespace EShopSample.EntityFrameworkCore
{
[DependsOn(
typeof(EShopSampleEntityFrameworkCoreModule)
)]
public class EShopSampleEntityFrameworkCoreDbMigrationsModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.AddAbpDbContext<EShopSampleMigrationsDbContext>();
}
}
}

62
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/EntityFrameworkCore/EShopSampleMigrationsDbContext.cs

@ -1,62 +0,0 @@
using EasyAbp.EShop.EntityFrameworkCore;
using EasyAbp.EShop.Plugins.Baskets.EntityFrameworkCore;
using EasyAbp.EShop.Plugins.Coupons.EntityFrameworkCore;
using EasyAbp.PaymentService.EntityFrameworkCore;
using EasyAbp.PaymentService.Prepayment.EntityFrameworkCore;
using EasyAbp.PaymentService.WeChatPay.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Volo.Abp.AuditLogging.EntityFrameworkCore;
using Volo.Abp.BackgroundJobs.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore;
using Volo.Abp.FeatureManagement.EntityFrameworkCore;
using Volo.Abp.Identity.EntityFrameworkCore;
using Volo.Abp.IdentityServer.EntityFrameworkCore;
using Volo.Abp.PermissionManagement.EntityFrameworkCore;
using Volo.Abp.SettingManagement.EntityFrameworkCore;
using Volo.Abp.TenantManagement.EntityFrameworkCore;
namespace EShopSample.EntityFrameworkCore
{
/* This DbContext is only used for database migrations.
* It is not used on runtime. See EShopSampleDbContext for the runtime DbContext.
* It is a unified model that includes configuration for
* all used modules and your application.
*/
public class EShopSampleMigrationsDbContext : AbpDbContext<EShopSampleMigrationsDbContext>
{
public EShopSampleMigrationsDbContext(DbContextOptions<EShopSampleMigrationsDbContext> options)
: base(options)
{
}
protected override void OnModelCreating(ModelBuilder builder)
{
base.OnModelCreating(builder);
/* Include modules to your migration db context */
builder.ConfigurePermissionManagement();
builder.ConfigureSettingManagement();
builder.ConfigureBackgroundJobs();
builder.ConfigureAuditLogging();
builder.ConfigureIdentity();
builder.ConfigureIdentityServer();
builder.ConfigureFeatureManagement();
builder.ConfigureTenantManagement();
/* Configure your own tables/entities inside the ConfigureEShopSample method */
builder.ConfigureEShopSample();
builder.ConfigureEShop();
builder.ConfigureEShopPluginsBaskets();
builder.ConfigureEShopPluginsCoupons();
builder.ConfigurePaymentService();
builder.ConfigurePaymentServiceWeChatPay();
builder.ConfigurePaymentServicePrepayment();
}
}
}

3123
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200526074907_AddedCodeToProductSku.Designer.cs

File diff suppressed because it is too large

1715
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200526074907_AddedCodeToProductSku.cs

File diff suppressed because it is too large

3123
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200527083620_ChangedToSerializedEntityData.Designer.cs

File diff suppressed because it is too large

51
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200527083620_ChangedToSerializedEntityData.cs

@ -1,51 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.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);
}
}
}

3129
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200602074752_AddedPaymentAndRefundEntities.Designer.cs

File diff suppressed because it is too large

32
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200602074752_AddedPaymentAndRefundEntities.cs

@ -1,32 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class AddedPaymentAndRefundEntities : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<Guid>(
name: "StoreId",
table: "PaymentServiceRefunds",
nullable: true);
migrationBuilder.AddColumn<Guid>(
name: "StoreId",
table: "PaymentServicePayments",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "StoreId",
table: "PaymentServiceRefunds");
migrationBuilder.DropColumn(
name: "StoreId",
table: "PaymentServicePayments");
}
}
}

3367
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200603115405_MadePaymentAndRefundExclusiveTableEntities.Designer.cs

File diff suppressed because it is too large

143
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200603115405_MadePaymentAndRefundExclusiveTableEntities.cs

@ -1,143 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class MadePaymentAndRefundExclusiveTableEntities : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "StoreId",
table: "PaymentServiceRefunds");
migrationBuilder.DropColumn(
name: "StoreId",
table: "PaymentServicePayments");
migrationBuilder.CreateTable(
name: "EShopPaymentsPayments",
columns: table => new
{
Id = table.Column<Guid>(nullable: false),
ExtraProperties = table.Column<string>(nullable: true),
ConcurrencyStamp = table.Column<string>(nullable: true),
CreationTime = table.Column<DateTime>(nullable: false),
CreatorId = table.Column<Guid>(nullable: true),
LastModificationTime = table.Column<DateTime>(nullable: true),
LastModifierId = table.Column<Guid>(nullable: true),
IsDeleted = table.Column<bool>(nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(nullable: true),
DeletionTime = table.Column<DateTime>(nullable: true),
TenantId = table.Column<Guid>(nullable: true),
UserId = table.Column<Guid>(nullable: false),
PaymentMethod = table.Column<string>(nullable: true),
PayeeAccount = table.Column<string>(nullable: true),
ExternalTradingCode = table.Column<string>(nullable: true),
Currency = table.Column<string>(nullable: true),
OriginalPaymentAmount = table.Column<decimal>(type: "decimal(18,6)", nullable: false),
PaymentDiscount = table.Column<decimal>(type: "decimal(18,6)", nullable: false),
ActualPaymentAmount = table.Column<decimal>(type: "decimal(18,6)", nullable: false),
RefundAmount = table.Column<decimal>(type: "decimal(18,6)", nullable: false),
CompletionTime = table.Column<DateTime>(nullable: true),
CancelledTime = table.Column<DateTime>(nullable: true),
StoreId = table.Column<Guid>(nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EShopPaymentsPayments", x => x.Id);
});
migrationBuilder.CreateTable(
name: "EShopPaymentsRefunds",
columns: table => new
{
Id = table.Column<Guid>(nullable: false),
ExtraProperties = table.Column<string>(nullable: true),
ConcurrencyStamp = table.Column<string>(nullable: true),
CreationTime = table.Column<DateTime>(nullable: false),
CreatorId = table.Column<Guid>(nullable: true),
LastModificationTime = table.Column<DateTime>(nullable: true),
LastModifierId = table.Column<Guid>(nullable: true),
IsDeleted = table.Column<bool>(nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(nullable: true),
DeletionTime = table.Column<DateTime>(nullable: true),
TenantId = table.Column<Guid>(nullable: true),
PaymentId = table.Column<Guid>(nullable: false),
PaymentItemId = table.Column<Guid>(nullable: false),
RefundPaymentMethod = table.Column<string>(nullable: true),
ExternalTradingCode = table.Column<string>(nullable: true),
Currency = table.Column<string>(nullable: true),
RefundAmount = table.Column<decimal>(type: "decimal(18,6)", nullable: false),
CustomerRemark = table.Column<string>(nullable: true),
StaffRemark = table.Column<string>(nullable: true),
StoreId = table.Column<Guid>(nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EShopPaymentsRefunds", x => x.Id);
});
migrationBuilder.CreateTable(
name: "EShopPaymentsPaymentItems",
columns: table => new
{
Id = table.Column<Guid>(nullable: false),
CreationTime = table.Column<DateTime>(nullable: false),
CreatorId = table.Column<Guid>(nullable: true),
LastModificationTime = table.Column<DateTime>(nullable: true),
LastModifierId = table.Column<Guid>(nullable: true),
IsDeleted = table.Column<bool>(nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(nullable: true),
DeletionTime = table.Column<DateTime>(nullable: true),
ItemType = table.Column<string>(nullable: true),
ItemKey = table.Column<Guid>(nullable: false),
Currency = table.Column<string>(nullable: true),
OriginalPaymentAmount = table.Column<decimal>(type: "decimal(18,6)", nullable: false),
PaymentDiscount = table.Column<decimal>(type: "decimal(18,6)", nullable: false),
ActualPaymentAmount = table.Column<decimal>(type: "decimal(18,6)", nullable: false),
RefundAmount = table.Column<decimal>(type: "decimal(18,6)", nullable: false),
PaymentId = table.Column<Guid>(nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EShopPaymentsPaymentItems", x => x.Id);
table.ForeignKey(
name: "FK_EShopPaymentsPaymentItems_EShopPaymentsPayments_PaymentId",
column: x => x.PaymentId,
principalTable: "EShopPaymentsPayments",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateIndex(
name: "IX_EShopPaymentsPaymentItems_PaymentId",
table: "EShopPaymentsPaymentItems",
column: "PaymentId");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "EShopPaymentsPaymentItems");
migrationBuilder.DropTable(
name: "EShopPaymentsRefunds");
migrationBuilder.DropTable(
name: "EShopPaymentsPayments");
migrationBuilder.AddColumn<Guid>(
name: "StoreId",
table: "PaymentServiceRefunds",
type: "uniqueidentifier",
nullable: true);
migrationBuilder.AddColumn<Guid>(
name: "StoreId",
table: "PaymentServicePayments",
type: "uniqueidentifier",
nullable: true);
}
}
}

3533
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200610111529_UpgradedToAbp2_9_0.Designer.cs

File diff suppressed because it is too large

127
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200610111529_UpgradedToAbp2_9_0.cs

@ -1,127 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class UpgradedToAbp2_9_0 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "AbpOrganizationUnits",
columns: table => new
{
Id = table.Column<Guid>(nullable: false),
ExtraProperties = table.Column<string>(nullable: true),
ConcurrencyStamp = table.Column<string>(nullable: true),
CreationTime = table.Column<DateTime>(nullable: false),
CreatorId = table.Column<Guid>(nullable: true),
LastModificationTime = table.Column<DateTime>(nullable: true),
LastModifierId = table.Column<Guid>(nullable: true),
IsDeleted = table.Column<bool>(nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(nullable: true),
DeletionTime = table.Column<DateTime>(nullable: true),
TenantId = table.Column<Guid>(nullable: true),
ParentId = table.Column<Guid>(nullable: true),
Code = table.Column<string>(maxLength: 95, nullable: false),
DisplayName = table.Column<string>(maxLength: 128, nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpOrganizationUnits", x => x.Id);
table.ForeignKey(
name: "FK_AbpOrganizationUnits_AbpOrganizationUnits_ParentId",
column: x => x.ParentId,
principalTable: "AbpOrganizationUnits",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateTable(
name: "AbpOrganizationUnitRoles",
columns: table => new
{
RoleId = table.Column<Guid>(nullable: false),
OrganizationUnitId = table.Column<Guid>(nullable: false),
CreationTime = table.Column<DateTime>(nullable: false),
CreatorId = table.Column<Guid>(nullable: true),
TenantId = table.Column<Guid>(nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpOrganizationUnitRoles", x => new { x.OrganizationUnitId, x.RoleId });
table.ForeignKey(
name: "FK_AbpOrganizationUnitRoles_AbpOrganizationUnits_OrganizationUnitId",
column: x => x.OrganizationUnitId,
principalTable: "AbpOrganizationUnits",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_AbpOrganizationUnitRoles_AbpRoles_RoleId",
column: x => x.RoleId,
principalTable: "AbpRoles",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "AbpUserOrganizationUnits",
columns: table => new
{
UserId = table.Column<Guid>(nullable: false),
OrganizationUnitId = table.Column<Guid>(nullable: false),
CreationTime = table.Column<DateTime>(nullable: false),
CreatorId = table.Column<Guid>(nullable: true),
TenantId = table.Column<Guid>(nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpUserOrganizationUnits", x => new { x.OrganizationUnitId, x.UserId });
table.ForeignKey(
name: "FK_AbpUserOrganizationUnits_AbpOrganizationUnits_OrganizationUnitId",
column: x => x.OrganizationUnitId,
principalTable: "AbpOrganizationUnits",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_AbpUserOrganizationUnits_AbpUsers_UserId",
column: x => x.UserId,
principalTable: "AbpUsers",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateIndex(
name: "IX_AbpOrganizationUnitRoles_RoleId_OrganizationUnitId",
table: "AbpOrganizationUnitRoles",
columns: new[] { "RoleId", "OrganizationUnitId" });
migrationBuilder.CreateIndex(
name: "IX_AbpOrganizationUnits_Code",
table: "AbpOrganizationUnits",
column: "Code");
migrationBuilder.CreateIndex(
name: "IX_AbpOrganizationUnits_ParentId",
table: "AbpOrganizationUnits",
column: "ParentId");
migrationBuilder.CreateIndex(
name: "IX_AbpUserOrganizationUnits_UserId_OrganizationUnitId",
table: "AbpUserOrganizationUnits",
columns: new[] { "UserId", "OrganizationUnitId" });
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "AbpOrganizationUnitRoles");
migrationBuilder.DropTable(
name: "AbpUserOrganizationUnits");
migrationBuilder.DropTable(
name: "AbpOrganizationUnits");
}
}
}

3540
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200612085218_AddedOrderNumberProperty.Designer.cs

File diff suppressed because it is too large

33
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200612085218_AddedOrderNumberProperty.cs

@ -1,33 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class AddedOrderNumberProperty : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "OrderNumber",
table: "EShopOrdersOrders",
nullable: true);
migrationBuilder.CreateIndex(
name: "IX_EShopOrdersOrders_OrderNumber",
table: "EShopOrdersOrders",
column: "OrderNumber",
unique: true,
filter: "[OrderNumber] IS NOT NULL");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_EShopOrdersOrders_OrderNumber",
table: "EShopOrdersOrders");
migrationBuilder.DropColumn(
name: "OrderNumber",
table: "EShopOrdersOrders");
}
}
}

3543
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200612105914_AddedOrderMaxQuantityProperty.Designer.cs

File diff suppressed because it is too large

23
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200612105914_AddedOrderMaxQuantityProperty.cs

@ -1,23 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class AddedOrderMaxQuantityProperty : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "OrderMaxQuantity",
table: "EShopProductsProductSkus",
nullable: false,
defaultValue: 0);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "OrderMaxQuantity",
table: "EShopProductsProductSkus");
}
}
}

3543
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200620070213_ChangedMoneyToDecimal20_8.Designer.cs

File diff suppressed because it is too large

303
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200620070213_ChangedMoneyToDecimal20_8.cs

@ -1,303 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class ChangedMoneyToDecimal20_8 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<decimal>(
name: "Price",
table: "EShopProductsProductSkus",
type: "decimal(20,8)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "OriginalPrice",
table: "EShopProductsProductSkus",
type: "decimal(20,8)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "RefundAmount",
table: "EShopPaymentsRefunds",
type: "decimal(20,8)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "RefundAmount",
table: "EShopPaymentsPayments",
type: "decimal(20,8)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "PaymentDiscount",
table: "EShopPaymentsPayments",
type: "decimal(20,8)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "OriginalPaymentAmount",
table: "EShopPaymentsPayments",
type: "decimal(20,8)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "ActualPaymentAmount",
table: "EShopPaymentsPayments",
type: "decimal(20,8)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "RefundAmount",
table: "EShopPaymentsPaymentItems",
type: "decimal(20,8)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "PaymentDiscount",
table: "EShopPaymentsPaymentItems",
type: "decimal(20,8)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "OriginalPaymentAmount",
table: "EShopPaymentsPaymentItems",
type: "decimal(20,8)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "ActualPaymentAmount",
table: "EShopPaymentsPaymentItems",
type: "decimal(20,8)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "TotalPrice",
table: "EShopOrdersOrders",
type: "decimal(20,8)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "TotalDiscount",
table: "EShopOrdersOrders",
type: "decimal(20,8)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "RefundedAmount",
table: "EShopOrdersOrders",
type: "decimal(20,8)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "ProductTotalPrice",
table: "EShopOrdersOrders",
type: "decimal(20,8)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "UnitPrice",
table: "EShopOrdersOrderLines",
type: "decimal(20,8)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "TotalPrice",
table: "EShopOrdersOrderLines",
type: "decimal(20,8)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "TotalDiscount",
table: "EShopOrdersOrderLines",
type: "decimal(20,8)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<decimal>(
name: "Price",
table: "EShopProductsProductSkus",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(20,8)");
migrationBuilder.AlterColumn<decimal>(
name: "OriginalPrice",
table: "EShopProductsProductSkus",
type: "decimal(18,6)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(20,8)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "RefundAmount",
table: "EShopPaymentsRefunds",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(20,8)");
migrationBuilder.AlterColumn<decimal>(
name: "RefundAmount",
table: "EShopPaymentsPayments",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(20,8)");
migrationBuilder.AlterColumn<decimal>(
name: "PaymentDiscount",
table: "EShopPaymentsPayments",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(20,8)");
migrationBuilder.AlterColumn<decimal>(
name: "OriginalPaymentAmount",
table: "EShopPaymentsPayments",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(20,8)");
migrationBuilder.AlterColumn<decimal>(
name: "ActualPaymentAmount",
table: "EShopPaymentsPayments",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(20,8)");
migrationBuilder.AlterColumn<decimal>(
name: "RefundAmount",
table: "EShopPaymentsPaymentItems",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(20,8)");
migrationBuilder.AlterColumn<decimal>(
name: "PaymentDiscount",
table: "EShopPaymentsPaymentItems",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(20,8)");
migrationBuilder.AlterColumn<decimal>(
name: "OriginalPaymentAmount",
table: "EShopPaymentsPaymentItems",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(20,8)");
migrationBuilder.AlterColumn<decimal>(
name: "ActualPaymentAmount",
table: "EShopPaymentsPaymentItems",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(20,8)");
migrationBuilder.AlterColumn<decimal>(
name: "TotalPrice",
table: "EShopOrdersOrders",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(20,8)");
migrationBuilder.AlterColumn<decimal>(
name: "TotalDiscount",
table: "EShopOrdersOrders",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(20,8)");
migrationBuilder.AlterColumn<decimal>(
name: "RefundedAmount",
table: "EShopOrdersOrders",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(20,8)");
migrationBuilder.AlterColumn<decimal>(
name: "ProductTotalPrice",
table: "EShopOrdersOrders",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(20,8)");
migrationBuilder.AlterColumn<decimal>(
name: "UnitPrice",
table: "EShopOrdersOrderLines",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(20,8)");
migrationBuilder.AlterColumn<decimal>(
name: "TotalPrice",
table: "EShopOrdersOrderLines",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(20,8)");
migrationBuilder.AlterColumn<decimal>(
name: "TotalDiscount",
table: "EShopOrdersOrderLines",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(20,8)");
}
}
}

3561
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200620145307_UsedEasyAbpTreesModule.Designer.cs

File diff suppressed because it is too large

63
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200620145307_UsedEasyAbpTreesModule.cs

@ -1,63 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class UsedEasyAbpTreesModule : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Code",
table: "EShopProductsCategories",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "Level",
table: "EShopProductsCategories",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<Guid>(
name: "ParentId",
table: "EShopProductsCategories",
nullable: true);
migrationBuilder.CreateIndex(
name: "IX_EShopProductsCategories_ParentId",
table: "EShopProductsCategories",
column: "ParentId");
migrationBuilder.AddForeignKey(
name: "FK_EShopProductsCategories_EShopProductsCategories_ParentId",
table: "EShopProductsCategories",
column: "ParentId",
principalTable: "EShopProductsCategories",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_EShopProductsCategories_EShopProductsCategories_ParentId",
table: "EShopProductsCategories");
migrationBuilder.DropIndex(
name: "IX_EShopProductsCategories_ParentId",
table: "EShopProductsCategories");
migrationBuilder.DropColumn(
name: "Code",
table: "EShopProductsCategories");
migrationBuilder.DropColumn(
name: "Level",
table: "EShopProductsCategories");
migrationBuilder.DropColumn(
name: "ParentId",
table: "EShopProductsCategories");
}
}
}

3589
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200624075154_UpgradedPaymentServiceModuleTo0_3_7.Designer.cs

File diff suppressed because it is too large

219
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200624075154_UpgradedPaymentServiceModuleTo0_3_7.cs

@ -1,219 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class UpgradedPaymentServiceModuleTo0_3_7 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "NonceStr",
table: "PaymentServiceWeChatPayRefundRecords");
migrationBuilder.DropColumn(
name: "ReqInfo",
table: "PaymentServiceWeChatPayRefundRecords");
migrationBuilder.DropColumn(
name: "NonceStr",
table: "PaymentServiceWeChatPayPaymentRecords");
migrationBuilder.DropColumn(
name: "Sign",
table: "PaymentServiceWeChatPayPaymentRecords");
migrationBuilder.DropColumn(
name: "SignType",
table: "PaymentServiceWeChatPayPaymentRecords");
migrationBuilder.AlterColumn<int>(
name: "SettlementRefundFee",
table: "PaymentServiceWeChatPayRefundRecords",
nullable: true,
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AddColumn<int>(
name: "CashFee",
table: "PaymentServiceWeChatPayRefundRecords",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<string>(
name: "CashFeeType",
table: "PaymentServiceWeChatPayRefundRecords",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "CashRefundFee",
table: "PaymentServiceWeChatPayRefundRecords",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "CouponIds",
table: "PaymentServiceWeChatPayRefundRecords",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "CouponRefundCount",
table: "PaymentServiceWeChatPayRefundRecords",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "CouponRefundFee",
table: "PaymentServiceWeChatPayRefundRecords",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "CouponRefundFees",
table: "PaymentServiceWeChatPayRefundRecords",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "CouponTypes",
table: "PaymentServiceWeChatPayRefundRecords",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "FeeType",
table: "PaymentServiceWeChatPayRefundRecords",
nullable: true);
migrationBuilder.AddColumn<DateTime>(
name: "CancelledTime",
table: "PaymentServiceRefunds",
nullable: true);
migrationBuilder.AddColumn<DateTime>(
name: "CompletedTime",
table: "PaymentServiceRefunds",
nullable: true);
migrationBuilder.AddColumn<decimal>(
name: "PendingRefundAmount",
table: "PaymentServicePayments",
type: "decimal(18,6)",
nullable: false,
defaultValue: 0m);
migrationBuilder.AddColumn<decimal>(
name: "PendingRefundAmount",
table: "PaymentServicePaymentItems",
type: "decimal(18,6)",
nullable: false,
defaultValue: 0m);
migrationBuilder.CreateIndex(
name: "IX_PaymentServiceWeChatPayRefundRecords_PaymentId",
table: "PaymentServiceWeChatPayRefundRecords",
column: "PaymentId");
migrationBuilder.CreateIndex(
name: "IX_PaymentServiceWeChatPayPaymentRecords_PaymentId",
table: "PaymentServiceWeChatPayPaymentRecords",
column: "PaymentId");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_PaymentServiceWeChatPayRefundRecords_PaymentId",
table: "PaymentServiceWeChatPayRefundRecords");
migrationBuilder.DropIndex(
name: "IX_PaymentServiceWeChatPayPaymentRecords_PaymentId",
table: "PaymentServiceWeChatPayPaymentRecords");
migrationBuilder.DropColumn(
name: "CashFee",
table: "PaymentServiceWeChatPayRefundRecords");
migrationBuilder.DropColumn(
name: "CashFeeType",
table: "PaymentServiceWeChatPayRefundRecords");
migrationBuilder.DropColumn(
name: "CashRefundFee",
table: "PaymentServiceWeChatPayRefundRecords");
migrationBuilder.DropColumn(
name: "CouponIds",
table: "PaymentServiceWeChatPayRefundRecords");
migrationBuilder.DropColumn(
name: "CouponRefundCount",
table: "PaymentServiceWeChatPayRefundRecords");
migrationBuilder.DropColumn(
name: "CouponRefundFee",
table: "PaymentServiceWeChatPayRefundRecords");
migrationBuilder.DropColumn(
name: "CouponRefundFees",
table: "PaymentServiceWeChatPayRefundRecords");
migrationBuilder.DropColumn(
name: "CouponTypes",
table: "PaymentServiceWeChatPayRefundRecords");
migrationBuilder.DropColumn(
name: "FeeType",
table: "PaymentServiceWeChatPayRefundRecords");
migrationBuilder.DropColumn(
name: "CancelledTime",
table: "PaymentServiceRefunds");
migrationBuilder.DropColumn(
name: "CompletedTime",
table: "PaymentServiceRefunds");
migrationBuilder.DropColumn(
name: "PendingRefundAmount",
table: "PaymentServicePayments");
migrationBuilder.DropColumn(
name: "PendingRefundAmount",
table: "PaymentServicePaymentItems");
migrationBuilder.AlterColumn<int>(
name: "SettlementRefundFee",
table: "PaymentServiceWeChatPayRefundRecords",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldNullable: true);
migrationBuilder.AddColumn<string>(
name: "NonceStr",
table: "PaymentServiceWeChatPayRefundRecords",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "ReqInfo",
table: "PaymentServiceWeChatPayRefundRecords",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "NonceStr",
table: "PaymentServiceWeChatPayPaymentRecords",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Sign",
table: "PaymentServiceWeChatPayPaymentRecords",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "SignType",
table: "PaymentServiceWeChatPayPaymentRecords",
type: "nvarchar(max)",
nullable: true);
}
}
}

3601
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200624181705_AddedMissingPropertiesInPaymentAndRefund.Designer.cs

File diff suppressed because it is too large

52
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200624181705_AddedMissingPropertiesInPaymentAndRefund.cs

@ -1,52 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class AddedMissingPropertiesInPaymentAndRefund : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "CancelledTime",
table: "EShopPaymentsRefunds",
nullable: true);
migrationBuilder.AddColumn<DateTime>(
name: "CompletedTime",
table: "EShopPaymentsRefunds",
nullable: true);
migrationBuilder.AddColumn<decimal>(
name: "PendingRefundAmount",
table: "EShopPaymentsPayments",
nullable: false,
defaultValue: 0m);
migrationBuilder.AddColumn<decimal>(
name: "PendingRefundAmount",
table: "EShopPaymentsPaymentItems",
nullable: false,
defaultValue: 0m);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "CancelledTime",
table: "EShopPaymentsRefunds");
migrationBuilder.DropColumn(
name: "CompletedTime",
table: "EShopPaymentsRefunds");
migrationBuilder.DropColumn(
name: "PendingRefundAmount",
table: "EShopPaymentsPayments");
migrationBuilder.DropColumn(
name: "PendingRefundAmount",
table: "EShopPaymentsPaymentItems");
}
}
}

3601
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200624191051_AddedColumnTypeOfPendingRefundAmount.Designer.cs

File diff suppressed because it is too large

45
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200624191051_AddedColumnTypeOfPendingRefundAmount.cs

@ -1,45 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class AddedColumnTypeOfPendingRefundAmount : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<decimal>(
name: "PendingRefundAmount",
table: "EShopPaymentsPayments",
type: "decimal(20,8)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "PendingRefundAmount",
table: "EShopPaymentsPaymentItems",
type: "decimal(20,8)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<decimal>(
name: "PendingRefundAmount",
table: "EShopPaymentsPayments",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(20,8)");
migrationBuilder.AlterColumn<decimal>(
name: "PendingRefundAmount",
table: "EShopPaymentsPaymentItems",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(20,8)");
}
}
}

3601
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200627172358_RenamedCancelledToCanceled.Designer.cs

File diff suppressed because it is too large

64
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200627172358_RenamedCancelledToCanceled.cs

@ -1,64 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class RenamedCancelledToCanceled : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "CancelledTime",
table: "PaymentServiceRefunds",
newName: "CanceledTime");
migrationBuilder.RenameColumn(
name: "CancelledTime",
table: "PaymentServicePayments",
newName: "CanceledTime");
migrationBuilder.RenameColumn(
name: "CancelledTime",
table: "EShopPaymentsRefunds",
newName: "CanceledTime");
migrationBuilder.RenameColumn(
name: "CancelledTime",
table: "EShopPaymentsPayments",
newName: "CanceledTime");
migrationBuilder.RenameColumn(
name: "CancelledTime",
table: "EShopOrdersOrders",
newName: "CanceledTime");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "CanceledTime",
table: "PaymentServiceRefunds",
newName: "CancelledTime");
migrationBuilder.RenameColumn(
name: "CanceledTime",
table: "PaymentServicePayments",
newName: "CancelledTime");
migrationBuilder.RenameColumn(
name: "CanceledTime",
table: "EShopPaymentsRefunds",
newName: "CancelledTime");
migrationBuilder.RenameColumn(
name: "CanceledTime",
table: "EShopPaymentsPayments",
newName: "CancelledTime");
migrationBuilder.RenameColumn(
name: "CanceledTime",
table: "EShopOrdersOrders",
newName: "CancelledTime");
}
}
}

3625
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200702100757_UpgradedAbpTo3_0_0.Designer.cs

File diff suppressed because it is too large

519
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200702100757_UpgradedAbpTo3_0_0.cs

@ -1,519 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class UpgradedAbpTo3_0_0 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "PaymentServiceWeChatPayRefundRecords",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "PaymentServiceWeChatPayPaymentRecords",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "PaymentServiceRefunds",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "PaymentServicePayments",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "IdentityServerPersistedGrants",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "IdentityServerIdentityResources",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "IdentityServerDeviceFlowCodes",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "IdentityServerClients",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "IdentityServerApiResources",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "EShopStoresStores",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "EShopProductsProductTypes",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "EShopProductsProductStores",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "EShopProductsProducts",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "EShopProductsProductHistories",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "EShopProductsProductDetails",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "EShopProductsProductDetailHistories",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "EShopProductsProductCategories",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "EShopProductsCategories",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "EShopPaymentsRefunds",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "EShopPaymentsPayments",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "EShopOrdersOrders",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "AbpUsers",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "AbpTenants",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "AbpRoles",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(256)",
oldMaxLength: 256);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "AbpOrganizationUnits",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "AbpClaimTypes",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(256)",
oldMaxLength: 256);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "AbpBackgroundJobs",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "AbpAuditLogs",
maxLength: 40,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "PaymentServiceWeChatPayRefundRecords",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "PaymentServiceWeChatPayPaymentRecords",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "PaymentServiceRefunds",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "PaymentServicePayments",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "IdentityServerPersistedGrants",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "IdentityServerIdentityResources",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "IdentityServerDeviceFlowCodes",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "IdentityServerClients",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "IdentityServerApiResources",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "EShopStoresStores",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "EShopProductsProductTypes",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "EShopProductsProductStores",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "EShopProductsProducts",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "EShopProductsProductHistories",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "EShopProductsProductDetails",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "EShopProductsProductDetailHistories",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "EShopProductsProductCategories",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "EShopProductsCategories",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "EShopPaymentsRefunds",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "EShopPaymentsPayments",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "EShopOrdersOrders",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "AbpUsers",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "AbpTenants",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "AbpRoles",
type: "nvarchar(256)",
maxLength: 256,
nullable: false,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "AbpOrganizationUnits",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "AbpClaimTypes",
type: "nvarchar(256)",
maxLength: 256,
nullable: false,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "AbpBackgroundJobs",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ConcurrencyStamp",
table: "AbpAuditLogs",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 40,
oldNullable: true);
}
}
}

3699
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704104743_AddedMediaResourcesToProductSku.Designer.cs

File diff suppressed because it is too large

59
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704104743_AddedMediaResourcesToProductSku.cs

@ -1,59 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class AddedMediaResourcesToProductSku : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "MediaResources",
table: "EShopProductsProductSkus",
nullable: true);
migrationBuilder.CreateTable(
name: "EShopPluginsBasketsBasketItems",
columns: table => new
{
Id = table.Column<Guid>(nullable: false),
ExtraProperties = table.Column<string>(nullable: true),
ConcurrencyStamp = table.Column<string>(maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(nullable: false),
CreatorId = table.Column<Guid>(nullable: true),
TenantId = table.Column<Guid>(nullable: true),
BasketName = table.Column<string>(nullable: true),
UserId = table.Column<Guid>(nullable: false),
ProductId = table.Column<Guid>(nullable: false),
ProductSkuId = table.Column<Guid>(nullable: false),
Quantity = table.Column<int>(nullable: false),
MediaResources = table.Column<string>(nullable: true),
ProductName = table.Column<string>(nullable: true),
SkuDescription = table.Column<string>(nullable: true),
Currency = table.Column<string>(nullable: true),
UnitPrice = table.Column<decimal>(nullable: false),
TotalPrice = table.Column<decimal>(nullable: false),
TotalDiscount = table.Column<decimal>(nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_EShopPluginsBasketsBasketItems", x => x.Id);
});
migrationBuilder.CreateIndex(
name: "IX_EShopPluginsBasketsBasketItems_UserId",
table: "EShopPluginsBasketsBasketItems",
column: "UserId");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "EShopPluginsBasketsBasketItems");
migrationBuilder.DropColumn(
name: "MediaResources",
table: "EShopProductsProductSkus");
}
}
}

3699
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704130321_AddedDecimalConfigurationsToBasketItem.Designer.cs

File diff suppressed because it is too large

61
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704130321_AddedDecimalConfigurationsToBasketItem.cs

@ -1,61 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class AddedDecimalConfigurationsToBasketItem : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<decimal>(
name: "UnitPrice",
table: "EShopPluginsBasketsBasketItems",
type: "decimal(20,8)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "TotalPrice",
table: "EShopPluginsBasketsBasketItems",
type: "decimal(20,8)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "TotalDiscount",
table: "EShopPluginsBasketsBasketItems",
type: "decimal(20,8)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<decimal>(
name: "UnitPrice",
table: "EShopPluginsBasketsBasketItems",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(20,8)");
migrationBuilder.AlterColumn<decimal>(
name: "TotalPrice",
table: "EShopPluginsBasketsBasketItems",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(20,8)");
migrationBuilder.AlterColumn<decimal>(
name: "TotalDiscount",
table: "EShopPluginsBasketsBasketItems",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(20,8)");
}
}
}

3702
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704130714_AddedStoreIdToBasketItem.Designer.cs

File diff suppressed because it is too large

24
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704130714_AddedStoreIdToBasketItem.cs

@ -1,24 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class AddedStoreIdToBasketItem : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<Guid>(
name: "StoreId",
table: "EShopPluginsBasketsBasketItems",
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "StoreId",
table: "EShopPluginsBasketsBasketItems");
}
}
}

3762
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704181535_CreatedProductUpdateEntity.Designer.cs

File diff suppressed because it is too large

44
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704181535_CreatedProductUpdateEntity.cs

@ -1,44 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class CreatedProductUpdateEntity : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "EShopPluginsBasketsProductUpdates",
columns: table => new
{
Id = table.Column<Guid>(nullable: false),
ExtraProperties = table.Column<string>(nullable: true),
ConcurrencyStamp = table.Column<string>(maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(nullable: false),
CreatorId = table.Column<Guid>(nullable: true),
LastModificationTime = table.Column<DateTime>(nullable: true),
LastModifierId = table.Column<Guid>(nullable: true),
IsDeleted = table.Column<bool>(nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(nullable: true),
DeletionTime = table.Column<DateTime>(nullable: true),
TenantId = table.Column<Guid>(nullable: true),
ProductSkuId = table.Column<Guid>(nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_EShopPluginsBasketsProductUpdates", x => x.Id);
});
migrationBuilder.CreateIndex(
name: "IX_EShopPluginsBasketsProductUpdates_ProductSkuId",
table: "EShopPluginsBasketsProductUpdates",
column: "ProductSkuId");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "EShopPluginsBasketsProductUpdates");
}
}
}

3770
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704182511_ChangeBasketItemToAuditedEntity.Designer.cs

File diff suppressed because it is too large

32
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704182511_ChangeBasketItemToAuditedEntity.cs

@ -1,32 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class ChangeBasketItemToAuditedEntity : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "LastModificationTime",
table: "EShopPluginsBasketsBasketItems",
nullable: true);
migrationBuilder.AddColumn<Guid>(
name: "LastModifierId",
table: "EShopPluginsBasketsBasketItems",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "LastModificationTime",
table: "EShopPluginsBasketsBasketItems");
migrationBuilder.DropColumn(
name: "LastModifierId",
table: "EShopPluginsBasketsBasketItems");
}
}
}

3776
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704195327_AddInventoryAndIsInvalidToBasketItem.Designer.cs

File diff suppressed because it is too large

33
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704195327_AddInventoryAndIsInvalidToBasketItem.cs

@ -1,33 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class AddInventoryAndIsInvalidToBasketItem : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "Inventory",
table: "EShopPluginsBasketsBasketItems",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<bool>(
name: "IsInvalid",
table: "EShopPluginsBasketsBasketItems",
nullable: false,
defaultValue: false);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Inventory",
table: "EShopPluginsBasketsBasketItems");
migrationBuilder.DropColumn(
name: "IsInvalid",
table: "EShopPluginsBasketsBasketItems");
}
}
}

3772
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704200233_RemoveTenantIdFromProductUpdate.Designer.cs

File diff suppressed because it is too large

24
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704200233_RemoveTenantIdFromProductUpdate.cs

@ -1,24 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class RemoveTenantIdFromProductUpdate : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "TenantId",
table: "EShopPluginsBasketsProductUpdates");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<Guid>(
name: "TenantId",
table: "EShopPluginsBasketsProductUpdates",
type: "uniqueidentifier",
nullable: true);
}
}
}

3831
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200705195503_RedesignedInventory.Designer.cs

File diff suppressed because it is too large

68
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200705195503_RedesignedInventory.cs

@ -1,68 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class RedesignedInventory : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Inventory",
table: "EShopProductsProductSkus");
migrationBuilder.DropColumn(
name: "Sold",
table: "EShopProductsProductSkus");
migrationBuilder.CreateTable(
name: "EShopProductsProductInventories",
columns: table => new
{
Id = table.Column<Guid>(nullable: false),
ExtraProperties = table.Column<string>(nullable: true),
ConcurrencyStamp = table.Column<string>(maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(nullable: false),
CreatorId = table.Column<Guid>(nullable: true),
LastModificationTime = table.Column<DateTime>(nullable: true),
LastModifierId = table.Column<Guid>(nullable: true),
IsDeleted = table.Column<bool>(nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(nullable: true),
DeletionTime = table.Column<DateTime>(nullable: true),
ProductId = table.Column<Guid>(nullable: false),
ProductSkuId = table.Column<Guid>(nullable: false),
Inventory = table.Column<int>(nullable: false),
Sold = table.Column<int>(nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_EShopProductsProductInventories", x => x.Id);
});
migrationBuilder.CreateIndex(
name: "IX_EShopProductsProductInventories_ProductSkuId",
table: "EShopProductsProductInventories",
column: "ProductSkuId");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "EShopProductsProductInventories");
migrationBuilder.AddColumn<int>(
name: "Inventory",
table: "EShopProductsProductSkus",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "Sold",
table: "EShopProductsProductSkus",
type: "int",
nullable: false,
defaultValue: 0);
}
}
}

3837
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200706060054_AddedSpecifiedInventoryProviderName.Designer.cs

File diff suppressed because it is too large

31
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200706060054_AddedSpecifiedInventoryProviderName.cs

@ -1,31 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class AddedSpecifiedInventoryProviderName : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "SpecifiedInventoryProviderName",
table: "EShopProductsProductSkus",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "SpecifiedInventoryProviderName",
table: "EShopProductsProducts",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "SpecifiedInventoryProviderName",
table: "EShopProductsProductSkus");
migrationBuilder.DropColumn(
name: "SpecifiedInventoryProviderName",
table: "EShopProductsProducts");
}
}
}

3837
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200706070250_ChangedSoldToLong.Designer.cs

File diff suppressed because it is too large

27
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200706070250_ChangedSoldToLong.cs

@ -1,27 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class ChangedSoldToLong : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<long>(
name: "Sold",
table: "EShopProductsProductInventories",
nullable: false,
oldClrType: typeof(int),
oldType: "int");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<int>(
name: "Sold",
table: "EShopProductsProductInventories",
type: "int",
nullable: false,
oldClrType: typeof(long));
}
}
}

3840
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200708064137_AddedProductTypeNameToOrderLine.Designer.cs

File diff suppressed because it is too large

22
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200708064137_AddedProductTypeNameToOrderLine.cs

@ -1,22 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class AddedProductTypeNameToOrderLine : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "ProductTypeName",
table: "EShopOrdersOrderLines",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ProductTypeName",
table: "EShopOrdersOrderLines");
}
}
}

3840
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710144500_AddedNameAndRemovedParentCategoryId.Designer.cs

File diff suppressed because it is too large

33
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710144500_AddedNameAndRemovedParentCategoryId.cs

@ -1,33 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class AddedNameAndRemovedParentCategoryId : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ParentCategoryId",
table: "EShopProductsCategories");
migrationBuilder.AddColumn<string>(
name: "Name",
table: "EShopProductsCategories",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Name",
table: "EShopProductsCategories");
migrationBuilder.AddColumn<Guid>(
name: "ParentCategoryId",
table: "EShopProductsCategories",
type: "uniqueidentifier",
nullable: true);
}
}
}

3840
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710151847_RenamedCodeToName.Designer.cs

File diff suppressed because it is too large

33
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710151847_RenamedCodeToName.cs

@ -1,33 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class RenamedCodeToName : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "Code",
newName: "Name",
table: "EShopProductsProductSkus");
migrationBuilder.RenameColumn(
name: "Code",
newName: "UniqueName",
table: "EShopProductsProducts");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "Name",
newName: "Code",
table: "EShopProductsProductSkus");
migrationBuilder.RenameColumn(
name: "UniqueName",
newName: "Code",
table: "EShopProductsProducts");
}
}
}

3844
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710152518_MadeUniqueNameUniqueIndex.Designer.cs

File diff suppressed because it is too large

40
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710152518_MadeUniqueNameUniqueIndex.cs

@ -1,40 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class MadeUniqueNameUniqueIndex : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "UniqueName",
table: "EShopProductsProducts",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.CreateIndex(
name: "IX_EShopProductsProducts_UniqueName",
table: "EShopProductsProducts",
column: "UniqueName",
unique: true,
filter: "[UniqueName] IS NOT NULL");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_EShopProductsProducts_UniqueName",
table: "EShopProductsProducts");
migrationBuilder.AlterColumn<string>(
name: "UniqueName",
table: "EShopProductsProducts",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldNullable: true);
}
}
}

3848
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710153132_RenamedNameToUniqueNameInCategory.Designer.cs

File diff suppressed because it is too large

43
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710153132_RenamedNameToUniqueNameInCategory.cs

@ -1,43 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class RenamedNameToUniqueNameInCategory : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Name",
table: "EShopProductsCategories");
migrationBuilder.AddColumn<string>(
name: "UniqueName",
table: "EShopProductsCategories",
nullable: true);
migrationBuilder.CreateIndex(
name: "IX_EShopProductsCategories_UniqueName",
table: "EShopProductsCategories",
column: "UniqueName",
unique: true,
filter: "[UniqueName] IS NOT NULL");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_EShopProductsCategories_UniqueName",
table: "EShopProductsCategories");
migrationBuilder.DropColumn(
name: "UniqueName",
table: "EShopProductsCategories");
migrationBuilder.AddColumn<string>(
name: "Name",
table: "EShopProductsCategories",
type: "nvarchar(max)",
nullable: true);
}
}
}

3854
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710160345_RenamedNameToUniqueName.Designer.cs

File diff suppressed because it is too large

107
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710160345_RenamedNameToUniqueName.cs

@ -1,107 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class RenamedNameToUniqueName : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Name",
table: "EShopProductsProductTypes");
migrationBuilder.DropColumn(
name: "ProductName",
table: "EShopPluginsBasketsBasketItems");
migrationBuilder.DropColumn(
name: "ProductName",
table: "EShopOrdersOrderLines");
migrationBuilder.DropColumn(
name: "ProductTypeName",
table: "EShopOrdersOrderLines");
migrationBuilder.AddColumn<string>(
name: "UniqueName",
table: "EShopProductsProductTypes",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "ProductDisplayName",
table: "EShopPluginsBasketsBasketItems",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "ProductUniqueName",
table: "EShopPluginsBasketsBasketItems",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "ProductDisplayName",
table: "EShopOrdersOrderLines",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "ProductTypeUniqueName",
table: "EShopOrdersOrderLines",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "ProductUniqueName",
table: "EShopOrdersOrderLines",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "UniqueName",
table: "EShopProductsProductTypes");
migrationBuilder.DropColumn(
name: "ProductDisplayName",
table: "EShopPluginsBasketsBasketItems");
migrationBuilder.DropColumn(
name: "ProductUniqueName",
table: "EShopPluginsBasketsBasketItems");
migrationBuilder.DropColumn(
name: "ProductDisplayName",
table: "EShopOrdersOrderLines");
migrationBuilder.DropColumn(
name: "ProductTypeUniqueName",
table: "EShopOrdersOrderLines");
migrationBuilder.DropColumn(
name: "ProductUniqueName",
table: "EShopOrdersOrderLines");
migrationBuilder.AddColumn<string>(
name: "Name",
table: "EShopProductsProductTypes",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "ProductName",
table: "EShopPluginsBasketsBasketItems",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "ProductName",
table: "EShopOrdersOrderLines",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "ProductTypeName",
table: "EShopOrdersOrderLines",
type: "nvarchar(max)",
nullable: true);
}
}
}

3860
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710163538_AddedSkuName.Designer.cs

File diff suppressed because it is too large

31
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710163538_AddedSkuName.cs

@ -1,31 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopSample.Migrations
{
public partial class AddedSkuName : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "SkuName",
table: "EShopPluginsBasketsBasketItems",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "SkuName",
table: "EShopOrdersOrderLines",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "SkuName",
table: "EShopPluginsBasketsBasketItems");
migrationBuilder.DropColumn(
name: "SkuName",
table: "EShopOrdersOrderLines");
}
}
}

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save