Skip to content

Commit

Permalink
Fix #2227 - Better exception message for no database provider configured
Browse files Browse the repository at this point in the history
  • Loading branch information
mikary committed Dec 18, 2015
1 parent 19b0e06 commit 31b8114
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/EntityFramework.Core/Properties/CoreStrings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
<value>The database providers {storeNames}are configured. A context can only be configured to use a single database provider.</value>
</data>
<data name="NoProviderConfigured" xml:space="preserve">
<value>No database providers are configured. Configure a database provider by overriding OnConfiguring in your DbContext class or in the AddDbContext method when setting up services.</value>
<value>No database providers are configured. You can configure a database provider by calling the AddDbContext method when setting up services and then instantiating the derived DbContext class using dependency injection, or by overriding OnConfiguring in your DbContext class.</value>
</data>
<data name="NoProviderServices" xml:space="preserve">
<value>No database providers are available. Ensure that database provider services are added inside the call to AddEntityFramework on your ServiceCollection.</value>
Expand Down Expand Up @@ -528,4 +528,4 @@
<data name="ConcurrentMethodInvocation" xml:space="preserve">
<value>A second operation started on this context before a previous operation completed. Any instance members are not guaranteed to be thread safe.</value>
</data>
</root>
</root>

0 comments on commit 31b8114

Please sign in to comment.