From f63f4eaa47e3067e44efbf967b68433865fd56a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Sat, 28 Jun 2025 13:22:14 +0300 Subject: [PATCH 1/3] Fix part-05 --- docs/en/tutorials/modular-crm/part-05.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/en/tutorials/modular-crm/part-05.md b/docs/en/tutorials/modular-crm/part-05.md index 4b40dedd0a..139c4a9a8b 100644 --- a/docs/en/tutorials/modular-crm/part-05.md +++ b/docs/en/tutorials/modular-crm/part-05.md @@ -75,7 +75,6 @@ Open your IDE, in `Data` folder under the `ModularCrm.Ordering` project, and edi ````csharp using Microsoft.EntityFrameworkCore; -using ModularCrm.Ordering.Entities; using Volo.Abp.Data; using Volo.Abp.EntityFrameworkCore; @@ -92,7 +91,6 @@ Afterwards, create *Orders* `DbSet` for the `OrderingDbContext` class in the `Da ````csharp using Microsoft.EntityFrameworkCore; -using ModularCrm.Ordering.Entities; using Volo.Abp.Data; using Volo.Abp.EntityFrameworkCore; @@ -103,9 +101,10 @@ public class OrderingDbContext : AbpDbContext, IOrderingDbCon { public DbSet Orders { get; set; } - public OrderingDbContext(DbContextOptions options) : base(options) + public OrderingDbContext(DbContextOptions options) + : base(options) { - + } protected override void OnModelCreating(ModelBuilder builder) @@ -123,7 +122,6 @@ It is best to configure the database table mapping for the `Order` entity in the ````csharp using Microsoft.EntityFrameworkCore; -using ModularCrm.Ordering.Entities; using Volo.Abp; using Volo.Abp.EntityFrameworkCore.Modeling; @@ -184,7 +182,7 @@ public class ModularCrmDbContext : protected override void OnModelCreating(ModelBuilder builder) { ... - builder.ConfigureOrdering(); //NEW: CALL THE EXTENSION METHOD + builder.ConfigureOrdering(); } ```` @@ -309,7 +307,7 @@ using System.Collections.Generic; using System.Threading.Tasks; using Volo.Abp.Domain.Repositories; -namespace ModularCrm.Ordering.Services; +namespace ModularCrm.Ordering; public class OrderAppService : OrderingAppService, IOrderAppService { From 1a2dda6d79d3dd68f3009edb3dbb59bdf0b1b9e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Sat, 28 Jun 2025 13:25:53 +0300 Subject: [PATCH 2/3] Fix part-06 --- docs/en/tutorials/modular-crm/part-06.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/docs/en/tutorials/modular-crm/part-06.md b/docs/en/tutorials/modular-crm/part-06.md index 568fa4d800..5ce9d8aad0 100644 --- a/docs/en/tutorials/modular-crm/part-06.md +++ b/docs/en/tutorials/modular-crm/part-06.md @@ -56,11 +56,10 @@ Open the `IProductIntegrationService.cs` file and replace it's content with the using System; using System.Collections.Generic; using System.Threading.Tasks; -using ModularCrm.Catalog; using Volo.Abp; using Volo.Abp.Application.Services; -namespace ModularCrm.Products.Integration; +namespace ModularCrm.Catalog.Integration; [IntegrationService] public interface IProductIntegrationService : IApplicationService @@ -91,11 +90,10 @@ Open the `ProductIntegrationService.cs` file and replace its content with the fo using System; using System.Collections.Generic; using System.Threading.Tasks; -using ModularCrm.Catalog; using Volo.Abp; using Volo.Abp.Domain.Repositories; -namespace ModularCrm.Products.Integration; +namespace ModularCrm.Catalog.Integration; [IntegrationService] public class ProductIntegrationService @@ -152,13 +150,12 @@ using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -using ModularCrm.Products.Integration; -using Volo.Abp.Application.Services; +using ModularCrm.Catalog.Integration; using Volo.Abp.Domain.Repositories; namespace ModularCrm.Ordering; -public class OrderAppService : ApplicationService, IOrderAppService +public class OrderAppService : OrderingAppService, IOrderAppService { private readonly IRepository _orderRepository; private readonly IProductIntegrationService _productIntegrationService; From 32a4135497ad3b8cad0acf3f25615647912456f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Sat, 28 Jun 2025 13:28:31 +0300 Subject: [PATCH 3/3] Fix part-07 --- docs/en/tutorials/modular-crm/part-07.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/en/tutorials/modular-crm/part-07.md b/docs/en/tutorials/modular-crm/part-07.md index 8006bcae54..49eb24b71f 100644 --- a/docs/en/tutorials/modular-crm/part-07.md +++ b/docs/en/tutorials/modular-crm/part-07.md @@ -64,12 +64,12 @@ using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; +using ModularCrm.Catalog.Integration; using ModularCrm.Ordering.Events; -using ModularCrm.Products.Integration; using Volo.Abp.Domain.Repositories; using Volo.Abp.EventBus.Distributed; -namespace ModularCrm.Ordering.Services; +namespace ModularCrm.Ordering; public class OrderAppService : OrderingAppService, IOrderAppService { @@ -163,22 +163,21 @@ You can check the ABP Studio's *Solution Explorer* panel to see the module impor Now, it is possible to use the `OrderPlacedEto` class inside the Catalog module since it has the `ModularCrm.Ordering.Contracts` package reference. -Open the Catalog module's .NET solution in your IDE, locate the `ModularCrm.Catalog` project, and create a new `Orders` folder and an `OrderEventHandler` class inside that folder. The final folder structure should be like this: +Open the Catalog module's .NET solution in your IDE, locate the `ModularCrm.Catalog` project, and create a new `EventHandlers` folder and an `OrderEventHandler` class inside that folder. The final folder structure should be like this: ![visual-studio-order-event-handler](images/visual-studio-order-event-handler-v2.png) Replace the `OrderEventHandler.cs` file's content with the following code block: ````csharp -using ModularCrm.Catalog; -using ModularCrm.Ordering.Events; using System; using System.Threading.Tasks; +using ModularCrm.Ordering.Events; using Volo.Abp.DependencyInjection; using Volo.Abp.Domain.Repositories; using Volo.Abp.EventBus.Distributed; -namespace ModularCrm.Products.Orders; +namespace ModularCrm.Catalog.EventHandlers; public class OrderEventHandler : IDistributedEventHandler,