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 Jan 26, 2016
1 parent 59c0a94 commit 6c4d50a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.

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

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>A database has not been configured for this context. If you are not using dependency injection, override the OnConfiguring method in your context class to configure the database. If you are using dependency injection, use the AddDbContext method to register your context as a service and configure the database. In ASP.NET Core this is done in the ConfigureServices method of your Startup class. Also ensure that you are resolving the context from services and are not directly creating instances of it.</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

0 comments on commit 6c4d50a

Please sign in to comment.