Skip to content

The projects lets user to define domain class and theri properities. Then it creates all entities, services, dtos api enpoint of the classes.

Notifications You must be signed in to change notification settings

makin4990/CodeGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CodeGenerator Extention Documentation

Overview

The CodeGenerator is a powerful tool designed to streamline the development process in an Onion Architecture-based .NET 6 project. It automates the generation of code for various architectural layers, including Domain, Application, Infrastructure, Persistence, and WebAPI.

Features

1. Domain Layer

The Domain layer is responsible for defining the core business logic and entities of your application. The CodeGenerator simplifies domain entity creation by:

  • Generating domain entity classes.
  • Creating value objects and aggregates.
  • Todo:Handling relationships and associations between entities.

2. Application Layer

The Application layer contains the application's use cases and orchestrates interactions between the Domain layer and the external world. The CodeGenerator assists in this layer by:

  • Generating application service classes.
  • Creating DTOs (Data Transfer Objects) for input and output.
  • Implementing application use cases.

3. Infrastructure Layer

The Infrastructure layer provides support for various technical concerns, such as data access, caching, and external services integration. The CodeGenerator helps you set up this layer by:

  • Generating data access classes, including repositories.
  • Creating cache and external service integration components.
  • Handling configuration and dependency injection.

4. Persistence Layer

The Persistence layer is responsible for data storage and retrieval. The CodeGenerator simplifies database-related tasks by:

  • Generating database context and entity configurations.
  • Creating migration scripts for database schema updates.
  • Managing database seed data.

5. WebAPI Layer

The WebAPI layer exposes your application's functionality through HTTP endpoints. The CodeGenerator accelerates WebAPI development by:

  • Generating API controllers for your application services.
  • Creating request and response models for API endpoints.
  • Handling routing and authentication configuration.

Usage

To use the CodeGenerator in your project, follow these steps:

  1. Clone or download the repository containing the CodeGenerator.
  2. Configure the CodeGenerator settings to match your project's needs.
  3. Build
  4. Get Extention file from debug folder where it is located
  5. Install Ententions
  6. Open Vs2022 Click on Generator button from Menu > Tool > CodeGenerator
  7. Define Class Access Modifier and Name
  8. Click Add button
  9. Click on class you added on datagrid
  10. Define properities
  11. close window
  12. click on Generate button

Example

Here's an example command to run the CodeGenerator:

About

The projects lets user to define domain class and theri properities. Then it creates all entities, services, dtos api enpoint of the classes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages