C#C
C#•3y ago•
19 replies
Eduardo BagarrĂŁo

Where to place Settings classes that are populated with appsettings.json in a N-layer achitechture?

Hello, I'm creating a N-layer architechture REST api, and I want to create some classes that will store appsettings.json data, but in the N-layer architechture I don't know the best place to add them, as they will need to be accessible to all the layers. Should I create a new class library to store these kind of classes?

The project structure looks like this in the image.

Thank you so much in advance 🙏
image.png
Was this page helpful?