Home > Net >  What's the best method to access configuration in .NET 6?
What's the best method to access configuration in .NET 6?

Time:07-13

The second answer of this question: enter image description here

What's the benefit?

For me, if there are many data ​​in appsetting.json, Creating a class to map them only needs to map once, You don't need to get them one by one, which makes coding more convenient.

  • Related