Naarfy
Blazor page reloading after db update ?
I have a comments table. I querry my Users table to get the DateTIme where the user last saw the comments and I group the comments based on that to get oldComments, newComments. Then I update my user.
The issue I'm having it my new comment shows up for half a second in "New comments" before moving to "Old Comments"
3 replies
Blazor - No event handlers associated
Hi. I have a simple Blazor project (.NET8) I have fields who write to a database on click.
The issue I have is most of the time - but not everytime - I click on an input field, I get the error message here
https://pastebin.com/Y0FxsfUe
When that happens, I can't invoke my submit function (I get the same error with the handler ID incremented by 1)
sometimes I restart the server and it works I can upsert my post no problem.
here is my code
https://pastebin.com/gcWnRyRB
5 replies
Converting the Sqlite template to Postgresql
Hello,
I started a new project with the template
It comes with a Sqlite Db. I want to change it to Postgres. I installed the packages and change UseSqlite to UseNpgsql. It connects to my db and the initial migration works, it creates the tables on my db. The issue i'm having is if I try to create a user for example, I get :
I guess there is some casting going on and Postgres doesn't want to use a boolean as an integer.
If I look into I see :
The issue I have is that this file is auto generated. If I search the field EmailConfirmed that's pretty much all I have. The variable declaration and this. At that point can I tell EF to make sure the colu;mn stays a bool ?
8 replies
❔ Blazor @bind not triggering update
Hello everyone
I'm trying to display a select that will trigger a database fetch on select and display the values with Blazor and .NET8. The issue i'm facing is that @bind doesnt seem to update my variable. I also try different things with @onchange, @oninput or @onselect but it seems like it's never firing any function
Obviously I'm missing something here but I can't see what
9 replies
✅ finding dotnet 8.0.0-rc.1.23419.4 ?
Hi. I'm trying to get dotnet-ef working with dotnet preview 8.0 It seems that it supports rc 1.23419.4 here https://www.nuget.org/packages/dotnet-ef/8.0.0-rc.1.23419.6#supportedframeworks-body-tab
But I can't find it anywhere. Here is my log
7 replies
❔ cannot resolve AddDatabaseDeveloperPageExceptionFilter();
Hello,
I'm trying to follow
https://learn.microsoft.com/en-us/aspnet/core/tutorials/min-web-api?view=aspnetcore-7.0&tabs=visual-studio-mac
I had an issue with the class Todo who couldn't be resolved but that was an easy fix (using TodoApi) however I have a problem with
Rider gives me the error
What am I doing wrong ?
Thanks
3 replies