Skip to content

aZerato/myapp-sample-architecture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample ASP .NET Core Architecture

Pattern Domain-Driven Design DDD

01 - Presentation

The user interface layer

SwaggerUI

02 - Domain

The data management layer

03 - Data

The data access layer

04 - Infrastructure

The app management layer

Global

Installation

Local DB

Install docker, Then open a CLI :

docker compose up -d

dotnet tool install --global dotnet-ef

OR (if already installed) :

dotnet tool update --global dotnet-ef

Then,

cd .\MyApp

Initial Migration for a fresh start.

dotnet ef migrations add InitialCreate --project .\MyApp.Data\MyApp.Data.csproj --startup-project .\MyApp\MyApp.csproj

Create Database or Update :

dotnet ef database update --project MyApp/MyApp.csproj

Use SQL Server Explorer :

Use SQL Server Explorer