Relative Content

Tag Archive for c#entity-framework-core

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.