Hi @improwise, I've created an app-pro template with Blazor Server as UI and EF-Core as the database provider (in v4.4.4). Then, I could successfully generate CRUD pages for my Book entity.
For some strange reason, we notice that the error messages seem to be truncated.
Yes, I reproduced this problem using VS 2022. But there is not any problem, when using dotnet run
command or using other IDE such as Rider. There could be a problem in VS 2022, we will investigate this, thanks.
Hi @mc86, I will check and write you back asap.
Hi @mc86, after creating the new microservice did you follow the documentation?
After applyng the steps in the documentation you should be able to generate CRUD pages for your microservice.
Hi @LawrenceKwan, *.EntityFrameworkCore.DbMigrations
project is removed from the solution.
From v4.4.4 DbContexts are unified in the *.EntityFrameworkCore
project. (See the related issue)
*.EntityFrameworkCore.DbMigrations
project is removed and DbContexts are unified you can read this article.My Angular and API are are hosted in the same node in the IIS - so do i have to keep the angular url empty ? I tried removing the key it doesn't work.
No, they both need to be the same then.
Did you change your appsettings.json when migrating the database (in DbMigrator project)?
{
"ConnectionStrings": {
"Default": "Server=localhost;Database=MyApp;Trusted_Connection=True"
},
"IdentityServer": {
"Clients": {
//...
"MyProjectName_App": {
"ClientId": "MyProjectName_App",
"RootUrl": "http://116.90.234.198:8080" //change root url
},
//...
}
}
}
Hi @mc86, as @berkansasmaz mentioned product service
does not support code generation with Suite in versions 4.*.*
. But you can create a new microservice and then generate CRUD pages for it.
Hi @LawrenceKwan, do you use the Redis? It can be really helpful to downgrade the response time.
Does the error still same?
Btw, you should specify the SelfUrl as your HttpApi.Host url not Angular project url.
Hi, did you add the url http://116.90.234.198:8080
into the RedirectAllowedUrls section of your package.json file? (in HttpApi.Host project)
{
"App": {
"SelfUrl": "https://localhost:44326",
"AngularUrl": "http://localhost:4200",
"CorsOrigins": "https://*.MyProjectName.com,http://localhost:4200,http://116.90.234.198:8080",
"RedirectAllowedUrls": "http://localhost:4200,https://localhost:44307,http://116.90.234.198:8080"
},
//...
}
Also add this url to CorsOrigins section.