System.Data.SqlClient.SqlException but table is exists in the database
I use Quartz to perform background tasks in my .NET core project. Here is the code for my Quartz:
EFCore Instance of join entity type cannot be tracked because another instance with the key value is already being tracked
System.InvalidOperationException: “The instance of entity type ‘JoinEntity’ cannot be tracked because another instance with the key value ‘{TestEntity1Id: 11, TestEntity2Id: 59}’ is already being tracked. When attaching existing entities, ensure that only one entity instance with a given key value is attached.”
Implementing RetryOnFailure in ef core .net 8
I have implemented the Connection Resiliency in EF Core using .NET 8.
EF core dependency injection
I’m new to DI and I ran into a problem. I’m making an Avalonia App(C#) which uses a local postgreSQL database. When registering into the app, it will concurrently check if the email and username already exist in the database, and therefore showing the according error :
How can I tell Entity Framework to modify an array related entities?
I have an abstract AuditObject
class with audit fields I can set automatically before saving changes on my entities.
Migration Error with Entityfraemwork Core
I’m trying to learn Onion Architecture with .net 8. I prepare dbcontext registration in persistance layer and add it to program.cs in presentation but I’m having an error. What is the problem, how can i solve it ?
The property ” cannot be added to the type ” because no property type was specified and there is no corresponding CLR property or field
Im trying to set relationship in EF Core in .NET 6 via shadow properties. But im not sure if i’m doint it correctly.
Correct way of using .ToLookup() with an EF Core query
I’m trying to use the .ToLookup()
method with an EF Core query and wondering what the best practice is when using it, should I be buffering the query into a list first, or call .ToLookup()
directly on the IQueryable
?