A simple and clean usage of Generic repository with .net core API and identity framework
- Multi-layered architecture
- Generic repository & Unit of work
- Code first approach
- REST API based on .net core
- Identity authentication & JWT tokens
- Example controller for login / register / get users
- Swagger
- Domain - Contains models and DTO's
- DatabaseMigration - Contains migration script as per code first approach
- Core - Contains generic repository (CRUD with Search, Count, Paging & Sorting) and unit of work
- Service - Contains service classes where business logic is defined
- API - Contains controllers
- Create and update database - prototype using DatabaseMigration project
- Build and execute the project, you will see swagger page
- Utilize method like sign up / sign in to insert user / get auth token
- Once you get auth token, you will be able to call get methods
- Enjoy coding