Simple CRUD example by using .Net Core with DDD structure, Swagger, FluentValidation, AutoMapper, Entity Framework Core and MySQL Connection.
- .Net Core 2.2
- Swagger
- FluentValidation
- AutoMapper
- Entity Framework Core
- MySQL Database
-
Run the script located at "/Docs/script.sql" to create the database on MySQL Workbench or on another program of your preference.
-
Open the solution located at "/APICRUDCoreRegister/APICRUDCoreRegister.sln" and configure the database connection on appsettings.json:
- Run the application and it will open on:
http://localhost:63850/swagger
- Solution:
- Presentation Layer:
- Domain Layer:
- Infra Layer: