i have a winforms app, the solution has two projects client (winforms) and the business logic(as Library classes). When i create a datset.xsd
file in the client, it adds app.config
file to the client. but why it adds it in the client?
App.config
which contains the connection string should belong in the business logic (in the Library classes) because the business logic layer is the layer that accesses the database. To my understanding the the connection string part of the app.config
should be encrypted. But why this app.config
is placed in the client where the security risk is high, why typically developers do not place it in the business layer?