Is it possible to add only the new entities and ignore the existing ones?
I am using Entity Framework Core 8 and I have a list of entities that I want to add to the database.
Is it possible to add only the no exisiting entities and igonre the existing one?
I am using Entity Core 8 and I have a list of entities that I want to add to the database.
EF Core Relationship many tables with one with non using FK
I started studying the Entity Framework, trying to understand things that are simple for many people.
Entity Framework Core: using non-anonymous type for outer/inner key selector
I have many “join” tables in my data model, implementing many-to-many relationships, and these are having composite primary keys, one for each side of the relationship. I have for example room entity and document entity, and room-document
table (obviously) has room_id
and document_id
. I also have product entity and similarly product-document
table with product_id
and document_id
, and so on.
Adding a interherited class from a different assembly by using a discriminator and than retrieve it
I’m facing the following situation: I’m creating a agenda with a AgendaItemModel
that is created in a assembly called AgendaModule
. You can assume this assembly is being used, but there is another assembly which is optional: RepeatingAgendaModule
which holds
a class RepeatingAgendaItemModel
that inherits from the AgendaItemModel
.
Adding a interherited class from a different assembly by using a discriminator and than retrieve it
I’m facing the following situation: I’m creating a agenda with a AgendaItemModel
that is created in a assembly called AgendaModule
. You can assume this assembly is being used, but there is another assembly which is optional: RepeatingAgendaModule
which holds
a class RepeatingAgendaItemModel
that inherits from the AgendaItemModel
.
EntityFrameworkCore – Can we create an Entity From a creation request class?
Let’s say I have this class
efcore add update conditions based on table fields
efcore default is to use the primary key as the update condition。
I want to add the year when updating the year field in the table。
C# dbcontext configuration multiple entities mapping to the same base entity and table with different query filters
I’m trying to map multiple entities that inherit from the same entity to different dbsets but live on the same table
EF user-defined function mapping: “Ensure the parameter can be mapped by the current provider”
I have a custom type UniversityId
(value type):