generator-codedesignplus 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
using CodeDesignPlus.Net.Microservice.Application.Order.Commands.CancelOrder;
|
|
3
|
-
using CodeDesignPlus.Net.Microservice.Application.Order.Commands.CreateOrder;
|
|
4
|
-
using CodeDesignPlus.Net.Microservice.Application.Order.Commands.UpdateQuantityProduct;
|
|
5
|
-
using CodeDesignPlus.Net.Microservice.Domain.ValueObjects;
|
|
6
|
-
|
|
7
|
-
namespace CodeDesignPlus.Net.Microservice.Application.Setup;
|
|
1
|
+
namespace CodeDesignPlus.Net.Microservice.Application.Setup;
|
|
8
2
|
|
|
9
3
|
public static class MapsterConfigOrder
|
|
10
4
|
{
|
|
11
5
|
public static void Configure()
|
|
12
6
|
{
|
|
13
|
-
TypeAdapterConfig<ClientDto, ClientValueObject>.NewConfig().TwoWays();
|
|
14
|
-
TypeAdapterConfig<AddressDto, AddressValueObject>.NewConfig().TwoWays();
|
|
7
|
+
TypeAdapterConfig<ClientDto, Domain.ValueObjects.ClientValueObject>.NewConfig().TwoWays();
|
|
8
|
+
TypeAdapterConfig<AddressDto, Domain.ValueObjects.AddressValueObject>.NewConfig().TwoWays();
|
|
15
9
|
TypeAdapterConfig<ProductDto, ProductDto>.NewConfig().TwoWays();
|
|
16
10
|
|
|
17
11
|
TypeAdapterConfig<OrderAggregate, OrderDto>.NewConfig()
|
|
@@ -27,9 +21,9 @@ public static class MapsterConfigOrder
|
|
|
27
21
|
.Map(dest => dest.UpdatedBy, src => src.UpdatedBy)
|
|
28
22
|
.Map(dest => dest.ReasonForCancellation, src => src.ReasonForCancellation);
|
|
29
23
|
|
|
30
|
-
TypeAdapterConfig<CodeDesignPlus.Microservice.Api.Dtos.AddProductToOrderDto, AddProductToOrderCommand>.NewConfig().TwoWays();
|
|
31
|
-
TypeAdapterConfig<CodeDesignPlus.Microservice.Api.Dtos.CancelOrderDto, CancelOrderCommand>.NewConfig().TwoWays();
|
|
32
|
-
TypeAdapterConfig<CodeDesignPlus.Microservice.Api.Dtos.CreateOrderDto, CreateOrderCommand>.NewConfig().TwoWays();
|
|
33
|
-
TypeAdapterConfig<CodeDesignPlus.Microservice.Api.Dtos.UpdateQuantityProductDto, UpdateQuantityProductCommand>.NewConfig().TwoWays();
|
|
24
|
+
TypeAdapterConfig<CodeDesignPlus.Microservice.Api.Dtos.AddProductToOrderDto, Order.Commands.AddProductToOrder.AddProductToOrderCommand>.NewConfig().TwoWays();
|
|
25
|
+
TypeAdapterConfig<CodeDesignPlus.Microservice.Api.Dtos.CancelOrderDto, Order.Commands.CancelOrder.CancelOrderCommand>.NewConfig().TwoWays();
|
|
26
|
+
TypeAdapterConfig<CodeDesignPlus.Microservice.Api.Dtos.CreateOrderDto, Order.Commands.CreateOrder.CreateOrderCommand>.NewConfig().TwoWays();
|
|
27
|
+
TypeAdapterConfig<CodeDesignPlus.Microservice.Api.Dtos.UpdateQuantityProductDto, Order.Commands.UpdateQuantityProduct.UpdateQuantityProductCommand>.NewConfig().TwoWays();
|
|
34
28
|
}
|
|
35
29
|
}
|
package/package.json
CHANGED