Module Service configuration settings (connection strings) #713
Unanswered
markdav-is
asked this question in
General
Replies: 2 comments 4 replies
-
I am not sure why you are using IServerStartup? If you look at any of the sample modules or use the Module Creator you will see the pattern for connecting to a database from your module code. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Why not retrieve the connection string within your DBContext:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm implementing iServerStartup to get a RepoDB context established. Typically, I'd pull this from the appconfig.json during startup from the Iconfiguration parameter. Where can I get access to the configuration in my module?
Beta Was this translation helpful? Give feedback.
All reactions