OAuth2.0 Web API
- SDK: .NET Core 3.1
- Framework: Web API
- Database: MySQL
- Install:
dotnet tool install --global dotnet-ef
This is library to create identity database.
- Microsoft.AspNetCore.Identity
- Microsoft.AspNetCore.Identity.EntityFrameworkCore
- Microsoft.EntityFrameworkCore.Design
- Microsoft.EntityFrameworkCore.Relational
- MySql.Data.EntityFrameworkCore
- Add Migration :
dotnet ef migrations add InitialCreate
- Remove Migration :
dotnet ef migrations remove
- Update Database:
dotnet ef database update
- Revert Database:
dotnet ef database update 0
This is service library base on repository pattern.
- Models + ViewModel + Request/Response Model
- Repository
- Service
- AutoMapper
- Newtonsoft.Json
- MySql.Data.EntityFrameworkCore
- Microsoft.EntityFrameworkCore.Design
- Scaffold DB:
dotnet ef dbcontext scaffold "server=localhost;port=3306;user=dbadmin;password=123456;database=db_oauth" MySql.Data.EntityFrameworkCore -o Models\Entities -f