Hi There,
In my Asp.Net development, I have my connection string in the web.config file like this:
<connectionStrings>
<add name=”Default” connectionString=”Data Source=DESKTOP-HEMJ43C;Initial Catalog=TestDatabase; User ID=sa; Password=Abc2022;” providerName=”System.Data.SqlClient” />
</connectionStrings>
How do I go about this in a WiseJ application?
Best Regards,
Steve.
Hi Steve,
you can either use web.config or default.json to store your connection strings:
https://docs.wisej.com/docs/concepts/configuration
For default.json there was just a recent post explaining how:
https://wisej.com/support/question/connect-to-sqlserver-and-read-connectionstrings-in-net-6-0
Best regards
Frank
Please login first to submit.