From 21602db0744a020888b9901c4d38b0bab1c5a2cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20=C3=87etinkaya?= Date: Sun, 11 Feb 2024 21:33:12 +0300 Subject: [PATCH] refactor(*): upgrade to NArchitecture v1.0.0 --- NArchitectureCodeGenerator.sln | 11 ++++++ docs/Semantic Commit Messages.md | 33 ++++++++++++++++++ docs/images/n-architecture-logo.png | Bin 0 -> 4278 bytes .../Commands/New/CreateNewProjectCommand.cs | 28 ++------------- src/nArchGen/ConsoleUI/ConsoleUI.csproj | 12 ++++--- .../Create/CreateENTITYCommand.cs.sbn | 8 ++--- .../Create/CreatedENTITYResponse.cs.sbn | 2 +- .../Delete/DeleteENTITYCommand.cs.sbn | 8 ++--- .../Delete/DeletedENTITYResponse.cs.sbn | 2 +- .../Update/UpdateENTITYCommand.cs.sbn | 8 ++--- .../Update/UpdatedENTITYResponse.cs.sbn | 2 +- .../PLURAL_ENTITYOperationClaims.cs.sbn | 17 +++++---- .../Profiles/MappingProfiles.cs.sbn | 4 +-- .../Queries/GetById/GetByIdENTITYQuery.cs.sbn | 2 +- .../GetById/GetByIdENTITYResponse.cs.sbn | 2 +- .../GetList/GetListENTITYListItemDto.cs.sbn | 2 +- .../Queries/GetList/GetListENTITYQuery.cs.sbn | 10 +++--- .../Rules/ENTITYBusinessRules.cs.sbn | 6 ++-- .../PLURAL_ENTITY/ENTITYManager.cs.sbn | 2 +- .../PLURAL_ENTITY/IENTITYService.cs.sbn | 2 +- .../Repositories/IENTITYRepository.cs.sbn | 2 +- .../Repositories/ENTITYRepository.cs.sbn | 2 +- .../PLURAL_ENTITYController.cs.sbn | 4 +-- .../EntityBaseClassNameSpaceUsing.cs.sbn | 2 +- .../Commands/COMMAND/COMMANDCommand.cs.sbn | 8 ++--- .../Commands/COMMAND/COMMANDResponse.cs.sbn | 2 +- .../FEATURE/Queries/QUERY/QUERYQuery.cs.sbn | 6 ++-- .../Queries/QUERY/QUERYResponse.cs.sbn | 2 +- 28 files changed, 108 insertions(+), 81 deletions(-) create mode 100644 docs/Semantic Commit Messages.md create mode 100644 docs/images/n-architecture-logo.png diff --git a/NArchitectureCodeGenerator.sln b/NArchitectureCodeGenerator.sln index 0d76ef4..7e3c472 100644 --- a/NArchitectureCodeGenerator.sln +++ b/NArchitectureCodeGenerator.sln @@ -25,10 +25,19 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Core.ConsoleUI", "src\coreP EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A8705E86-40ED-4733-9FD4-63978FEB6A2A}" ProjectSection(SolutionItems) = preProject + .csharpierrc = .csharpierrc + .editorconfig = .editorconfig LICENSE = LICENSE README.md = README.md EndProjectSection EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{EDAA799A-1429-4600-BDF4-A5C1A6782562}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "images", "images", "{6E4D5A62-DCCF-4966-8196-41FDFA7E4A03}" + ProjectSection(SolutionItems) = preProject + docs\images\n-architecture-logo.png = docs\images\n-architecture-logo.png + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -77,6 +86,8 @@ Global {ABAE025D-8DB7-4BEC-9B84-6E279246C6EA} = {930E16E5-8D6F-4DED-BF5F-A29BBE5F3D24} {DAA1FFAA-74C7-48AE-A372-C8136F8E99B2} = {930E16E5-8D6F-4DED-BF5F-A29BBE5F3D24} {92C3F668-A726-49AA-8652-B479588BD68F} = {930E16E5-8D6F-4DED-BF5F-A29BBE5F3D24} + {EDAA799A-1429-4600-BDF4-A5C1A6782562} = {A8705E86-40ED-4733-9FD4-63978FEB6A2A} + {6E4D5A62-DCCF-4966-8196-41FDFA7E4A03} = {EDAA799A-1429-4600-BDF4-A5C1A6782562} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {70B48DC2-4941-4DC9-9D67-A29D673A0C26} diff --git a/docs/Semantic Commit Messages.md b/docs/Semantic Commit Messages.md new file mode 100644 index 0000000..6a77f8e --- /dev/null +++ b/docs/Semantic Commit Messages.md @@ -0,0 +1,33 @@ +# Semantic Commit Messages + +**Format:** `(?): ` (scope is optional.) + +## 🏷️ Types + +- `feat`: (new feature for the user, not a new feature for build script) +- `fix`: (bug fix for the user, not a fix to a build script) +- `docs`: (changes to the documentation) +- `style`: (formatting, missing semi colons, etc; no production code change) +- `perf`: (production changes related to backward-compatible performance improvements) +- `refactor`: (refactoring production code, eg. renaming a variable) +- `test`: (adding missing tests, refactoring tests; no production code change) +- `build`: (updating grunt tasks etc; no production code change) +- `ci`: (changes to identify development changes related to the continuous integration and deployment system - involving scripts, configurations or tools) + +## 💡 Example + +``` +feat(core): add otp authenticator +``` + +--- + +
+ References +
    +
  • https://www.conventionalcommits.org/
  • +
  • https://seesparkbox.com/foundry/semantic_commit_messages
  • +
  • http://karma-runner.github.io/1.0/dev/git-commit-msg.html
  • +
  • https://nitayneeman.com/posts/understanding-semantic-commit-messages-using-git-and-angular/
  • +
+
diff --git a/docs/images/n-architecture-logo.png b/docs/images/n-architecture-logo.png new file mode 100644 index 0000000000000000000000000000000000000000..c76f2e83f21777e32ad1823b0989657f899bddbd GIT binary patch literal 4278 zcmbVPWmFVgw7o+}NeI#)DHw$0M@t9{3eqJYr64dv4lziKlqfMEB`GE401^TM10x|Z zgrIacNDLt${rKMd^M1Vb)_U*9xo6$8?_Fn|v+mt%pEr7sHK{4tC;B4PkQ-((v4 znk5`EDa{-{r!`R>-L6Q1y#l;^81ha!^IW=jz&4DIUb#IylG5ZlbVYY?s=H_C<9 zg|>BJQACW;SrTr#WqgYxX*&Sh#7Ms&#OM2`ka9Ob1l)&2_~|?5E<)?|1WW;UJecLB zU!j7;8Gud^qt5G~lLdS>ta?TX5&?iA15|lI2{qXGqoqU&MvD_BnZal-M=?2wfq>Lo zn*2n{4Zz0um4Ofut_5U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foc(H`7>Y;XO_hE}ejTvkTMuZd>gO^true nArchGen ./nupkg - Kodlamaio.$(AssemblyName) + NArchitecture.Gen nArchitecture Gen Kodlama.io Kodlama.io, Contributors Code generator tool for nArchitecture framework. - Resources/Images/Logo.png + n-architecture-logo.png https://github.com/kodlamaio-projects/nArchitecture.Gen nArchitecture, nArchGen, cli, framework, tool, code generation - 0.1.0 - 0.1.0 - 0.1.0 + 1.0.1 LICENSE README.md + + True + \ + True \ diff --git a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Commands/Create/CreateENTITYCommand.cs.sbn b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Commands/Create/CreateENTITYCommand.cs.sbn index cb47fba..c072f28 100644 --- a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Commands/Create/CreateENTITYCommand.cs.sbn +++ b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Commands/Create/CreateENTITYCommand.cs.sbn @@ -3,10 +3,10 @@ using Application.Services.Repositories; using AutoMapper; using Domain.Entities;{{ if is_secured_operation_used }} -using Core.Application.Pipelines.Authorization;{{ end }}{{ if is_caching_used }} -using Core.Application.Pipelines.Caching;{{ end }}{{ if is_logging_used }} -using Core.Application.Pipelines.Logging;{{ end }}{{ if is_transaction_used }} -using Core.Application.Pipelines.Transaction;{{ end }} +using NArchitecture.Core.Application.Pipelines.Authorization;{{ end }}{{ if is_caching_used }} +using NArchitecture.Core.Application.Pipelines.Caching;{{ end }}{{ if is_logging_used }} +using NArchitecture.Core.Application.Pipelines.Logging;{{ end }}{{ if is_transaction_used }} +using NArchitecture.Core.Application.Pipelines.Transaction;{{ end }} using MediatR;{{ for propertyItem in entity.properties }}{{ if (propertyItem.name_space) }} using {{ propertyItem.name_space }};{{ end }}{{ end }}{{ if is_secured_operation_used }} using static Application.Features.{{ entity.name | string.pascalcase | string.plural }}.Constants.{{ entity.name | string.pascalcase | string.plural }}OperationClaims;{{ end }} diff --git a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Commands/Create/CreatedENTITYResponse.cs.sbn b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Commands/Create/CreatedENTITYResponse.cs.sbn index af8fa19..2227d83 100644 --- a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Commands/Create/CreatedENTITYResponse.cs.sbn +++ b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Commands/Create/CreatedENTITYResponse.cs.sbn @@ -1,4 +1,4 @@ -using Core.Application.Responses;{{ for propertyItem in entity.properties }}{{ if (propertyItem.name_space) }} +using NArchitecture.Core.Application.Responses;{{ for propertyItem in entity.properties }}{{ if (propertyItem.name_space) }} using {{ propertyItem.name_space }};{{ end }}{{ end }} namespace Application.Features.{{ entity.name | string.pascalcase | string.plural }}.Commands.Create; diff --git a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Commands/Delete/DeleteENTITYCommand.cs.sbn b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Commands/Delete/DeleteENTITYCommand.cs.sbn index fb44ff1..948703e 100644 --- a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Commands/Delete/DeleteENTITYCommand.cs.sbn +++ b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Commands/Delete/DeleteENTITYCommand.cs.sbn @@ -4,10 +4,10 @@ using Application.Features.{{ entity.name | string.pascalcase | string.plural }} using Application.Services.Repositories; using AutoMapper; using Domain.Entities;{{ if is_secured_operation_used }} -using Core.Application.Pipelines.Authorization;{{ end }}{{ if is_caching_used }} -using Core.Application.Pipelines.Caching;{{ end }}{{ if is_logging_used }} -using Core.Application.Pipelines.Logging;{{ end }}{{ if is_transaction_used }} -using Core.Application.Pipelines.Transaction;{{ end }} +using NArchitecture.Core.Application.Pipelines.Authorization;{{ end }}{{ if is_caching_used }} +using NArchitecture.Core.Application.Pipelines.Caching;{{ end }}{{ if is_logging_used }} +using NArchitecture.Core.Application.Pipelines.Logging;{{ end }}{{ if is_transaction_used }} +using NArchitecture.Core.Application.Pipelines.Transaction;{{ end }} using MediatR;{{ if is_secured_operation_used }} using static Application.Features.{{ entity.name | string.pascalcase | string.plural }}.Constants.{{ entity.name | string.pascalcase | string.plural }}OperationClaims;{{ end }} diff --git a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Commands/Delete/DeletedENTITYResponse.cs.sbn b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Commands/Delete/DeletedENTITYResponse.cs.sbn index d58cc4d..47c21ff 100644 --- a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Commands/Delete/DeletedENTITYResponse.cs.sbn +++ b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Commands/Delete/DeletedENTITYResponse.cs.sbn @@ -1,4 +1,4 @@ -using Core.Application.Responses; +using NArchitecture.Core.Application.Responses; namespace Application.Features.{{ entity.name | string.pascalcase | string.plural }}.Commands.Delete; diff --git a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Commands/Update/UpdateENTITYCommand.cs.sbn b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Commands/Update/UpdateENTITYCommand.cs.sbn index f4c4403..3e6999d 100644 --- a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Commands/Update/UpdateENTITYCommand.cs.sbn +++ b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Commands/Update/UpdateENTITYCommand.cs.sbn @@ -3,10 +3,10 @@ using Application.Services.Repositories; using AutoMapper; using Domain.Entities;{{ if is_secured_operation_used }} -using Core.Application.Pipelines.Authorization;{{ end }}{{ if is_caching_used }} -using Core.Application.Pipelines.Caching;{{ end }}{{ if is_logging_used }} -using Core.Application.Pipelines.Logging;{{ end }}{{ if is_transaction_used }} -using Core.Application.Pipelines.Transaction;{{ end }} +using NArchitecture.Core.Application.Pipelines.Authorization;{{ end }}{{ if is_caching_used }} +using NArchitecture.Core.Application.Pipelines.Caching;{{ end }}{{ if is_logging_used }} +using NArchitecture.Core.Application.Pipelines.Logging;{{ end }}{{ if is_transaction_used }} +using NArchitecture.Core.Application.Pipelines.Transaction;{{ end }} using MediatR;{{ for propertyItem in entity.properties }}{{ if (propertyItem.name_space) }} using {{ propertyItem.name_space }};{{ end }}{{ end }}{{ if is_secured_operation_used }} using static Application.Features.{{ entity.name | string.pascalcase | string.plural }}.Constants.{{ entity.name | string.pascalcase | string.plural }}OperationClaims;{{ end }} diff --git a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Commands/Update/UpdatedENTITYResponse.cs.sbn b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Commands/Update/UpdatedENTITYResponse.cs.sbn index cad0f75..c6e16f0 100644 --- a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Commands/Update/UpdatedENTITYResponse.cs.sbn +++ b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Commands/Update/UpdatedENTITYResponse.cs.sbn @@ -1,4 +1,4 @@ -using Core.Application.Responses;{{ for propertyItem in entity.properties }}{{ if (propertyItem.name_space) }} +using NArchitecture.Core.Application.Responses;{{ for propertyItem in entity.properties }}{{ if (propertyItem.name_space) }} using {{ propertyItem.name_space }};{{ end }}{{ end }} namespace Application.Features.{{ entity.name | string.pascalcase | string.plural }}.Commands.Update; diff --git a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Constants/PLURAL_ENTITYOperationClaims.cs.sbn b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Constants/PLURAL_ENTITYOperationClaims.cs.sbn index 5387ef1..c6253d9 100644 --- a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Constants/PLURAL_ENTITYOperationClaims.cs.sbn +++ b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Constants/PLURAL_ENTITYOperationClaims.cs.sbn @@ -1,13 +1,18 @@ +using NArchitecture.Core.Security.Attributes; + namespace Application.Features.{{ entity.name | string.pascalcase | string.plural }}.Constants; +[OperationClaimConstants] public static class {{ entity.name | string.pascalcase | string.plural }}OperationClaims { - public const string Admin = "{{ entity.name | string.pascalcase | string.plural }}.Admin"; + private const string _section = "{{ entity.name | string.pascalcase | string.plural }}"; + + public const string Admin = $"{_section}.Admin"; - public const string Read = "{{ entity.name | string.pascalcase | string.plural }}.Read"; - public const string Write = "{{ entity.name | string.pascalcase | string.plural }}.Write"; + public const string Read = $"{_section}.Read"; + public const string Write = $"{_section}.Write"; - public const string Create = "{{ entity.name | string.pascalcase | string.plural }}.Create"; - public const string Update = "{{ entity.name | string.pascalcase | string.plural }}.Update"; - public const string Delete = "{{ entity.name | string.pascalcase | string.plural }}.Delete"; + public const string Create = $"{_section}.Create"; + public const string Update = $"{_section}.Update"; + public const string Delete = $"{_section}.Delete"; } \ No newline at end of file diff --git a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Profiles/MappingProfiles.cs.sbn b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Profiles/MappingProfiles.cs.sbn index 35eaab7..f80fd99 100644 --- a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Profiles/MappingProfiles.cs.sbn +++ b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Profiles/MappingProfiles.cs.sbn @@ -4,9 +4,9 @@ using Application.Features.{{ entity.name | string.pascalcase | string.plural }} using Application.Features.{{ entity.name | string.pascalcase | string.plural }}.Queries.GetById; using Application.Features.{{ entity.name | string.pascalcase | string.plural }}.Queries.GetList; using AutoMapper; -using Core.Application.Responses; +using NArchitecture.Core.Application.Responses; using Domain.Entities; -using Core.Persistence.Paging; +using NArchitecture.Core.Persistence.Paging; namespace Application.Features.{{ entity.name | string.pascalcase | string.plural }}.Profiles; diff --git a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Queries/GetById/GetByIdENTITYQuery.cs.sbn b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Queries/GetById/GetByIdENTITYQuery.cs.sbn index b2b2967..c54cb0a 100644 --- a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Queries/GetById/GetByIdENTITYQuery.cs.sbn +++ b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Queries/GetById/GetByIdENTITYQuery.cs.sbn @@ -3,7 +3,7 @@ using Application.Services.Repositories; using AutoMapper; using Domain.Entities;{{ if is_secured_operation_used }} -using Core.Application.Pipelines.Authorization;{{ end }} +using NArchitecture.Core.Application.Pipelines.Authorization;{{ end }} using MediatR;{{ if is_secured_operation_used }} using static Application.Features.{{ entity.name | string.pascalcase | string.plural }}.Constants.{{ entity.name | string.pascalcase | string.plural }}OperationClaims;{{ end }} diff --git a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Queries/GetById/GetByIdENTITYResponse.cs.sbn b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Queries/GetById/GetByIdENTITYResponse.cs.sbn index 7aabafe..1f6db98 100644 --- a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Queries/GetById/GetByIdENTITYResponse.cs.sbn +++ b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Queries/GetById/GetByIdENTITYResponse.cs.sbn @@ -1,4 +1,4 @@ -using Core.Application.Responses;{{ for propertyItem in entity.properties }}{{ if (propertyItem.name_space) }} +using NArchitecture.Core.Application.Responses;{{ for propertyItem in entity.properties }}{{ if (propertyItem.name_space) }} using {{ propertyItem.name_space }};{{ end }}{{ end }} namespace Application.Features.{{ entity.name | string.pascalcase | string.plural }}.Queries.GetById; diff --git a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Queries/GetList/GetListENTITYListItemDto.cs.sbn b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Queries/GetList/GetListENTITYListItemDto.cs.sbn index c8183b1..05c7696 100644 --- a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Queries/GetList/GetListENTITYListItemDto.cs.sbn +++ b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Queries/GetList/GetListENTITYListItemDto.cs.sbn @@ -1,4 +1,4 @@ -using Core.Application.Dtos;{{ for propertyItem in entity.properties }}{{ if (propertyItem.name_space) }} +using NArchitecture.Core.Application.Dtos;{{ for propertyItem in entity.properties }}{{ if (propertyItem.name_space) }} using {{ propertyItem.name_space }};{{ end }}{{ end }} namespace Application.Features.{{ entity.name | string.pascalcase | string.plural }}.Queries.GetList; diff --git a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Queries/GetList/GetListENTITYQuery.cs.sbn b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Queries/GetList/GetListENTITYQuery.cs.sbn index 5f50056..8c96228 100644 --- a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Queries/GetList/GetListENTITYQuery.cs.sbn +++ b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Queries/GetList/GetListENTITYQuery.cs.sbn @@ -2,11 +2,11 @@ {{ end }}using Application.Services.Repositories; using AutoMapper; using Domain.Entities;{{ if is_secured_operation_used }} -using Core.Application.Pipelines.Authorization;{{ end }}{{ if is_caching_used }} -using Core.Application.Pipelines.Caching;{{ end }} -using Core.Application.Requests; -using Core.Application.Responses; -using Core.Persistence.Paging; +using NArchitecture.Core.Application.Pipelines.Authorization;{{ end }}{{ if is_caching_used }} +using NArchitecture.Core.Application.Pipelines.Caching;{{ end }} +using NArchitecture.Core.Application.Requests; +using NArchitecture.Core.Application.Responses; +using NArchitecture.Core.Persistence.Paging; using MediatR;{{ if is_secured_operation_used }} using static Application.Features.{{ entity.name | string.pascalcase | string.plural }}.Constants.{{ entity.name | string.pascalcase | string.plural }}OperationClaims;{{ end }} diff --git a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Rules/ENTITYBusinessRules.cs.sbn b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Rules/ENTITYBusinessRules.cs.sbn index f2069e4..f618a9f 100644 --- a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Rules/ENTITYBusinessRules.cs.sbn +++ b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Features/PLURAL_ENTITY/Rules/ENTITYBusinessRules.cs.sbn @@ -1,8 +1,8 @@ using Application.Features.{{ entity.name | string.pascalcase | string.plural }}.Constants; using Application.Services.Repositories; -using Core.Application.Rules; -using Core.CrossCuttingConcerns.Exceptions.Types; -using Core.Localization.Abstraction; +using NArchitecture.Core.Application.Rules; +using NArchitecture.Core.CrossCuttingConcerns.Exception.Types; +using NArchitecture.Core.Localization.Abstraction; using Domain.Entities; namespace Application.Features.{{ entity.name | string.pascalcase | string.plural }}.Rules; diff --git a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Services/PLURAL_ENTITY/ENTITYManager.cs.sbn b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Services/PLURAL_ENTITY/ENTITYManager.cs.sbn index 1d7302b..90fa63a 100644 --- a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Services/PLURAL_ENTITY/ENTITYManager.cs.sbn +++ b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Services/PLURAL_ENTITY/ENTITYManager.cs.sbn @@ -1,6 +1,6 @@ using Application.Features.{{ entity.name | string.pascalcase | string.plural }}.Rules; using Application.Services.Repositories; -using Core.Persistence.Paging; +using NArchitecture.Core.Persistence.Paging; using Domain.Entities; using Microsoft.EntityFrameworkCore.Query; using System.Linq.Expressions; diff --git a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Services/PLURAL_ENTITY/IENTITYService.cs.sbn b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Services/PLURAL_ENTITY/IENTITYService.cs.sbn index c046dbe..f22d83d 100644 --- a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Services/PLURAL_ENTITY/IENTITYService.cs.sbn +++ b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Services/PLURAL_ENTITY/IENTITYService.cs.sbn @@ -1,4 +1,4 @@ -using Core.Persistence.Paging; +using NArchitecture.Core.Persistence.Paging; using Domain.Entities; using Microsoft.EntityFrameworkCore.Query; using System.Linq.Expressions; diff --git a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Services/Repositories/IENTITYRepository.cs.sbn b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Services/Repositories/IENTITYRepository.cs.sbn index 6db4c77..0bac688 100644 --- a/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Services/Repositories/IENTITYRepository.cs.sbn +++ b/src/nArchGen/Domain/Templates/CRUD/Folders/Application/Services/Repositories/IENTITYRepository.cs.sbn @@ -1,5 +1,5 @@ using Domain.Entities; -using Core.Persistence.Repositories; +using NArchitecture.Core.Persistence.Repositories; namespace Application.Services.Repositories; diff --git a/src/nArchGen/Domain/Templates/CRUD/Folders/Persistence/Repositories/ENTITYRepository.cs.sbn b/src/nArchGen/Domain/Templates/CRUD/Folders/Persistence/Repositories/ENTITYRepository.cs.sbn index f8d2c84..5847e13 100644 --- a/src/nArchGen/Domain/Templates/CRUD/Folders/Persistence/Repositories/ENTITYRepository.cs.sbn +++ b/src/nArchGen/Domain/Templates/CRUD/Folders/Persistence/Repositories/ENTITYRepository.cs.sbn @@ -1,6 +1,6 @@ using Application.Services.Repositories; using Domain.Entities; -using Core.Persistence.Repositories; +using NArchitecture.Core.Persistence.Repositories; using Persistence.Contexts; namespace Persistence.Repositories; diff --git a/src/nArchGen/Domain/Templates/CRUD/Folders/WebAPI/Controllers/PLURAL_ENTITYController.cs.sbn b/src/nArchGen/Domain/Templates/CRUD/Folders/WebAPI/Controllers/PLURAL_ENTITYController.cs.sbn index 41a7ff8..2c805da 100644 --- a/src/nArchGen/Domain/Templates/CRUD/Folders/WebAPI/Controllers/PLURAL_ENTITYController.cs.sbn +++ b/src/nArchGen/Domain/Templates/CRUD/Folders/WebAPI/Controllers/PLURAL_ENTITYController.cs.sbn @@ -3,8 +3,8 @@ using Application.Features.{{ entity.name | string.pascalcase | string.plural }} using Application.Features.{{ entity.name | string.pascalcase | string.plural }}.Commands.Update; using Application.Features.{{ entity.name | string.pascalcase | string.plural }}.Queries.GetById; using Application.Features.{{ entity.name | string.pascalcase | string.plural }}.Queries.GetList; -using Core.Application.Requests; -using Core.Application.Responses; +using NArchitecture.Core.Application.Requests; +using NArchitecture.Core.Application.Responses; using Microsoft.AspNetCore.Mvc; namespace WebAPI.Controllers; diff --git a/src/nArchGen/Domain/Templates/CRUD/Lines/EntityBaseClassNameSpaceUsing.cs.sbn b/src/nArchGen/Domain/Templates/CRUD/Lines/EntityBaseClassNameSpaceUsing.cs.sbn index deae1eb..4980f8d 100644 --- a/src/nArchGen/Domain/Templates/CRUD/Lines/EntityBaseClassNameSpaceUsing.cs.sbn +++ b/src/nArchGen/Domain/Templates/CRUD/Lines/EntityBaseClassNameSpaceUsing.cs.sbn @@ -1 +1 @@ -using Core.Persistence.Repositories; \ No newline at end of file +using NArchitecture.Core.Persistence.Repositories; \ No newline at end of file diff --git a/src/nArchGen/Domain/Templates/Command/Folders/Application/Features/FEATURE/Commands/COMMAND/COMMANDCommand.cs.sbn b/src/nArchGen/Domain/Templates/Command/Folders/Application/Features/FEATURE/Commands/COMMAND/COMMANDCommand.cs.sbn index 14476f6..cff3c28 100644 --- a/src/nArchGen/Domain/Templates/Command/Folders/Application/Features/FEATURE/Commands/COMMAND/COMMANDCommand.cs.sbn +++ b/src/nArchGen/Domain/Templates/Command/Folders/Application/Features/FEATURE/Commands/COMMAND/COMMANDCommand.cs.sbn @@ -1,10 +1,10 @@ {{ if is_secured_operation_used }}using Application.Features.{{ feature_name }}.Constants; {{ end }}using Application.Features.{{ feature_name }}.Rules; using AutoMapper;{{ if is_secured_operation_used }} -using Core.Application.Pipelines.Authorization;{{ end }}{{ if is_caching_used }} -using Core.Application.Pipelines.Caching;{{ end }}{{ if is_logging_used }} -using Core.Application.Pipelines.Logging;{{ end }}{{ if is_transaction_used }} -using Core.Application.Pipelines.Transaction;{{ end }} +using NArchitecture.Core.Application.Pipelines.Authorization;{{ end }}{{ if is_caching_used }} +using NArchitecture.Core.Application.Pipelines.Caching;{{ end }}{{ if is_logging_used }} +using NArchitecture.Core.Application.Pipelines.Logging;{{ end }}{{ if is_transaction_used }} +using NArchitecture.Core.Application.Pipelines.Transaction;{{ end }} using MediatR;{{ if is_secured_operation_used }} using static Application.Features.{{ feature_name }}.Constants.{{ feature_name }}OperationClaims;{{ end }} diff --git a/src/nArchGen/Domain/Templates/Command/Folders/Application/Features/FEATURE/Commands/COMMAND/COMMANDResponse.cs.sbn b/src/nArchGen/Domain/Templates/Command/Folders/Application/Features/FEATURE/Commands/COMMAND/COMMANDResponse.cs.sbn index 3ca4f92..8ee258b 100644 --- a/src/nArchGen/Domain/Templates/Command/Folders/Application/Features/FEATURE/Commands/COMMAND/COMMANDResponse.cs.sbn +++ b/src/nArchGen/Domain/Templates/Command/Folders/Application/Features/FEATURE/Commands/COMMAND/COMMANDResponse.cs.sbn @@ -1,4 +1,4 @@ -using Core.Application.Responses; +using NArchitecture.Core.Application.Responses; namespace Application.Features.{{ feature_name }}.Commands.{{ command_name | string.pascalcase }}; diff --git a/src/nArchGen/Domain/Templates/Query/Folders/Application/Features/FEATURE/Queries/QUERY/QUERYQuery.cs.sbn b/src/nArchGen/Domain/Templates/Query/Folders/Application/Features/FEATURE/Queries/QUERY/QUERYQuery.cs.sbn index 1fd01fc..33752b0 100644 --- a/src/nArchGen/Domain/Templates/Query/Folders/Application/Features/FEATURE/Queries/QUERY/QUERYQuery.cs.sbn +++ b/src/nArchGen/Domain/Templates/Query/Folders/Application/Features/FEATURE/Queries/QUERY/QUERYQuery.cs.sbn @@ -1,9 +1,9 @@ {{ if is_secured_operation_used }}using Application.Features.{{ feature_name }}.Constants; {{ end }}using Application.Features.{{ feature_name }}.Rules; using AutoMapper;{{ if is_secured_operation_used }} -using Core.Application.Pipelines.Authorization;{{ end }}{{ if is_caching_used }} -using Core.Application.Pipelines.Caching;{{ end }}{{ if is_logging_used }} -using Core.Application.Pipelines.Logging;{{ end }} +using NArchitecture.Core.Application.Pipelines.Authorization;{{ end }}{{ if is_caching_used }} +using NArchitecture.Core.Application.Pipelines.Caching;{{ end }}{{ if is_logging_used }} +using NArchitecture.Core.Application.Pipelines.Logging;{{ end }} using MediatR;{{ if is_secured_operation_used }} using static Application.Features.{{ feature_name }}.Constants.{{ feature_name }}OperationClaims;{{ end }} diff --git a/src/nArchGen/Domain/Templates/Query/Folders/Application/Features/FEATURE/Queries/QUERY/QUERYResponse.cs.sbn b/src/nArchGen/Domain/Templates/Query/Folders/Application/Features/FEATURE/Queries/QUERY/QUERYResponse.cs.sbn index 764d5c5..2c761ed 100644 --- a/src/nArchGen/Domain/Templates/Query/Folders/Application/Features/FEATURE/Queries/QUERY/QUERYResponse.cs.sbn +++ b/src/nArchGen/Domain/Templates/Query/Folders/Application/Features/FEATURE/Queries/QUERY/QUERYResponse.cs.sbn @@ -1,4 +1,4 @@ -using Core.Application.Responses; +using NArchitecture.Core.Application.Responses; namespace Application.Features.{{ feature_name }}.Queries.{{ query_name | string.pascalcase }};