Sernik
Explore posts from serversKeyset pagination with filters
Hello everyone!
I use this piece of code (probably very inefficient piece of code) to get employees from database using keyset pagination.
This code works perfectly fine unless i activate filters. I get an exception that ef core can't translate my shitty Linq to SQL and that's kinda understandable. But the question is, how can I make this work? Afaik loading all entities to list, filtering and then taking, for example 50 entities isn't a good idea.
19 replies
Get data from api periodically
Hi everyone, I am making a blazor server web app, and i have to get data from api every 10 seconds and save it to database and update index.razor page with that data.
The question is, how can i get that data? I have to create service with timer and add it to services in program.cs? and which timer should i use?
Thanks for help!
5 replies
regex help [Answered]
So I made a regex with little help of copilot, it looks like this:
It should match strings like this: "n,n > n,n x n,n" or like this: "n,n > n,n", where n is number between 0 and 7 (spaces between are optional)
However when I test it here https://regex101.com/r/MMnQql/1 I get no matches
The question is why? Can somebody help me?
14 replies