A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
Hi @Cenk, Welcome to Microsoft Q&A.
I'm glad you were able to resolve your issue. Below I will explain some reasons so that you can have a deeper understanding of Blazor Server and EF Core.
You are trying to use DateTime.Now.Year as part of a query criteria. This means you are trying to use the current year in C# in a LINQ query. However, Blazor Server applications execute on the server side, not the client, so DateTime.Now will return the server's current date and time, not the client's.
So when you specify the year and status, you can get the query you want.
Best Regards,
Wenbin
---If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.