Errors when using "mix ef-sqlite" with "web" or "single" Templates #122
Replies: 3 comments
-
ADDITIONAL ISSUE : if I run this happens when running against a NEW database (i.e.: there were no existing tables in the database before running "migrate" for the first time). Any help that can be offered in resolving this would be appreciated: I haven't managed to resolve this yet :-( |
Beta Was this translation helpful? Give feedback.
-
I created a Git repository with the failing project source, for reference : https://github.com/Ryan-Britton/ServiceStack-Issue-Example |
Beta Was this translation helpful? Give feedback.
-
I don't want to spend too much of my time on this, but I'll leave a couple of points:
If you just OrmLite on an empty template, use $ x mix sqlite |
Beta Was this translation helpful? Give feedback.
-
Hi there,
I am trying to get a simple multi-project microservice prototype up and running before committing to an indie license, but struggled to get up and running with a "single" or "web" template. I thought maybe I was missing something, and wanted to share my experience (or at the very least provide something to help other folks who run into the same problems):
if I go to https://www.servicestack.net/start and select a "web" or "single" template (enabling only SqlLite RDBMS support), like so:
the project which I download doesn't build, and has the following errors:
If I copy the "Data" folder and "Roles.cs" file which are generated when generating the "blazor-wasm" template:
and add the ASP.NET Core Identity nuget packages (which are missing):
and add the ServiceStack.Server nuget (required for the AdminDatabase Feature)
then I can get past the build errors - but I get the following error when trying to run "dotnet run --AppTasks=migrate"
adding the following to Program.cs resolves this :
I realize that these steps might be considered "ASP.NET Core Identity Setup", and may differ per project...but I felt that it might be a better developer experience to have a project that builds and is ready to run (with some "simple defaults"), rather than something which appears to be "broken" out of the box....and so I wanted to make that suggestion here.
I also wanted to leave the step-by-step resolution here in case anyone else struggles with the broken templates....
Beta Was this translation helpful? Give feedback.
All reactions