Entity Framework Core / MongoDB: the entity type ‘TestEntity’ primary key property ‘Id’ must be mapped to element ‘_id’
I am writing a data access layer which is tested against multiple database implementations; some SQL (Postgres, Sqlite, SQL Server) and some document (MongoDB). In order to test different databases, my test fixtures include a test entity, entity configuration and DbContext
.
EntityFrameworkCore/MongoDB: The entity type ‘TestEntity’ primary key property ‘Id’ must be mapped to element ‘_id’
I am writing a data access layer which is tested against multiple database implementations; some SQL (Postgres, Sqlite, SqlServer) and some Document (Mongo). In order to test different databases, my test fixtures include a test entity, entity configuration and DbContext; for example:
MongoDB EF Core provider creates duplicate collection items during loading of root object
I am using the MongoDB EF Core provider and I am getting duplicates for embedded collections of complex objects when I load the root object. I have noticed this with latest version 8.0 and previous 7.0.0-preview.1. I am using .net8. This is my .proj file: