Showing posts with the label entity-framework-core

[FIXED] How can I write a SQL update query with a where clause using Entity Framework .NET Core

Issue I only want to update a field based on the condition that is mentionned below. I know how to …

[FIXED] EF.Functions.Like method not working after upgrading to .NET 6

Issue I was using EF.Functions.Like method for my query on my ASP.NET Core 3.1 SPI but as soon as…

[FIXED] Using Where clause for DateTime field using a LINQ statement

Issue I am trying to return records for users based on their telephone numbers as well as a restric…

[FIXED] Translate an postgresql query to entityframework core in asp.net core

Issue I am trying to translate the following Postgresql query in a dotnet api application using ent…

[FIXED] Entity Framework Core code first default values for PostgreSQL

Issue So far I read the docs, tutorials google brought up and other SO questions but it seems I mis…

[FIXED] How do I retrieve the creation date of a SQL Server database with EF Core?

Issue Is there a way for me to get the create_date property of sys.databases view in SQL Server w…

[FIXED] EFCore looks for xxxId as ForeignKey instead of xxx

Issue I use EFCore. In my Entity, there are this Properties: [Column("ReleasedFrom"…

[FIXED] Get only newest records grouped by some value in LINQ

Issue I have a table in a SQL Server database containing the following data: class="s-table&…