Skip to content
| Marketplace
Sign in
Visual Studio>Tools>EM2A
EM2A

EM2A

Preview

Mohamed Bayar

|
2 installs
| (0) | Free
The Enterprise Microservice Architecture Assistant is a powerful Visual Studio extension created By Bayar Mohamed designed to streamline the creation, deployment, and management of microservices. It a
Download

Setting Up Your Microservice Solution

1. Create Your Empty Solution

Start by creating an empty solution to serve as the foundation for your microservices architecture.


2. Create Your New Microservice

Set up your new microservice by following these steps:

Use Generated SDKs to Expose Your Services

  • Interface.SDK: Use this project to expose your contracts to the external world.
  • Facade.SDK: Use this project for inter-communication between services.

Once you build your host, the SDKs will be generated. You can package these projects as NuGet packages and share your artifacts between teams.

Note: NSwag helps you generate these projects.


3. Add Layers

Always select the Microservice folder (e.g., Product) before opening the menu to add the desired layer.

Available Layers:

  1. Interface Layer

    • Add contracts for external communication.
    • Important: Reference this project in your Web API host project.
  2. Facade Layer

    • Add contracts for inter-service communication.
    • Important: Reference this project in your Web API host project.
  3. Business Layer

    • Implement your business logic, such as repositories.
  4. Domain Layer

    • Define your entities to generate your database.
    • The DbContext is generated automatically.
    • The IDesignTimeDbContextFactory assists in using code migrations to generate your database.

Ensure you follow these steps to maintain a clean and efficient microservices architecture.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft