- Microsoft.EntityFramework.Tools
- Microsoft.EntityFramework.Design
- Microsoft.EntityFramework.SqlServer
- Newtonsoft.Json
- Microsoft.AspNetCore.Mvc.NewtonsoftJson
$ dotnet ef migrations add init
$ dotnet ef database update
"ConnectionStrings": {
"DefaultConnection": "Data Source=localhost,1433;Initial Catalog=finshark;User Id=sa;Password=xxxxxx;TrustServerCertificate=true"
}
MacOS +Docker
it depends on your setting.
- Stock.cs Comment.cs
- AppDbContext.cs
- Program.cs : AddDbContext
- appsettings.json : ConnectionStrings
- migration + dummy data
- Controller
- Program.cs : AddControllers MapControllers while(post,delete,put)
- DTOs
- Mapper
- Controller from sending model -> sending Dto
- Controller : Async
- add IRepository , Repository
- Program.cs : builder.Services.AddScoped()
- Data Validation to DTOs + ModelState.isValid in Controllers
- Query : Filtering Sorting Pagination
- IRepository Repository
- DTO
- Mapper
- Controller
- builder.Services.AddScoped()
- Newtonsoft.Json + Microsoft.AspNetCore.Mvc.NewtonsoftJson