Skip to content

JinhyukKo/financeAPI

Repository files navigation

financeAPI

Setting

Nuget

  1. Microsoft.EntityFramework.Tools
  2. Microsoft.EntityFramework.Design
  3. Microsoft.EntityFramework.SqlServer
  4. Newtonsoft.Json
  5. Microsoft.AspNetCore.Mvc.NewtonsoftJson

Migration

$ dotnet ef migrations add init
$ dotnet ef database update

appsettings.json

  "ConnectionStrings": {
    "DefaultConnection": "Data Source=localhost,1433;Initial Catalog=finshark;User Id=sa;Password=xxxxxx;TrustServerCertificate=true"
  }

MacOS +Docker

it depends on your setting.

Progress

  1. Stock.cs Comment.cs
  2. AppDbContext.cs
  3. Program.cs : AddDbContext
  4. appsettings.json : ConnectionStrings
  5. migration + dummy data
  6. Controller
  7. Program.cs : AddControllers MapControllers while(post,delete,put)
  8. DTOs
  9. Mapper
  10. Controller from sending model -> sending Dto
  11. Controller : Async
  12. add IRepository , Repository
  13. Program.cs : builder.Services.AddScoped()
  14. Data Validation to DTOs + ModelState.isValid in Controllers
  15. Query : Filtering Sorting Pagination

Comment

  1. IRepository Repository
  2. DTO
  3. Mapper
  4. Controller
  5. builder.Services.AddScoped()
  6. Newtonsoft.Json + Microsoft.AspNetCore.Mvc.NewtonsoftJson

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages