You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commands silently swallow exceptions from Startup.cs #2553
We use startup.cs in a class library to configure connection strings for running migrations and other commands that are common to multiple projects.
Now, if the Startup ctor or one of the configuration methods throws an exception, ContextTool.TryCreateContextFromStartup silently swallows it without a trace. This makes it rather difficult to understand why our connection strings aren't being found. :)
Activity
rytmis commentedon Jul 7, 2015
Minimal repro steps
Expected result
Exception details printed to the console
Actual result
No trace of the exception
bricelam commentedon Jul 7, 2015
Yeah, we should at least show them as warnings before falling back to other ways of constructing DbContext classes.
This is part of the higher-level issue #639.
bricelam commentedon Sep 23, 2015
Closing since this work is tracked by #2294