-
Type: Bug
-
Resolution: Unresolved
-
Priority: Unknown
-
None
-
Affects Version/s: 8.1.1
-
Dotnet Drivers
Hi,
I'm trying to have a composite BsonId with EF Core.
public class MyEntity { [BsonId] public MyEntityKey Id { get; set; } } public class MyEntityKey { public string ABC { get; set; } public string XYZ { get; set; } }
When querying it, it throws an exception:
await this.DbSet.FirstOrDefaultAsync(entity => entity.Id.ABC == "1" && entity.Id.XYZ == "2", cancellationToken);
System.NotSupportedException: 'Unsupported shadow property 'TempId' identified on entity type 'MyEntity'.'