What is the initial setup for `dotnet new3 mvc --auth Individual` SQLite database?
See original GitHub issueI’ve used to advice to call dotnet ef database update
before running MVC project with SQLite datbase, but that is no longer a case with new dotnet tooling.
What is the supposed UX scenario to get MVC with authorization backed by SQLite to run?
dotnet run Hosting environment: Production Content root path: /Users/piotrblazejewicz/development Now listening on: http://localhost:5000 Application started. Press Ctrl+C to shut down. warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] No XML encryptor configured. Key {9dc754fa-11c3-436b-9235-b123c11babb3} may be persisted to storage in unencrypted form. fail: Microsoft.EntityFrameworkCore.Query.RelationalQueryCompilationContextFactory[1] An exception occurred in the database while iterating the results of a query. Microsoft.Data.Sqlite.SqliteException: SQLite Error 1: ‘no such table: AspNetUsers’. at Microsoft.Data.Sqlite.Interop.MarshalEx.ThrowExceptionForRC(Int32 rc, Sqlite3Handle db)
https://github.com/aspnet/EntityFramework/issues/7538 https://github.com/aspnet/EntityFramework/issues/7358
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (8 by maintainers)
Top GitHub Comments
Just to add a little more clarity. The
Microsoft.EntityFrameworkCore.Tools
package contains the PowerShell commands that are used within Visual Studio, and is just installed as a usual package reference.Microsoft.EntityFrameworkCore.Tools.DotNet
has the .NET CLI commands, and needs to be listed as aDotNetCliToolReference
in the project.This is fixed with the templates in rtw.