When I am using the Mongo with Entity Framework.
I am getting below error
Property ‘User.LastLogin’ is annotated with unsupported attribute ‘BsonIgnoreIfNullAttribute’.
Hi, @Rajesh_Chanchalfas,
Welcome to the MongoDB Community Forums. I understand that you have encountered an error Property '<<Class.Property>>' is annotated with unsupported attribute
. We have implemented support for BSON attributes in our EFCore Provider that map to equivalent EFCore semantics. Unfortunately EFCore does not support all semantics provided by the .NET/C# Driver. One of those is [BsonIgnoreIfNull]
. The current release (8.0.3) supports all BSON attributes noted in “first round” and “second round” of EF-96. EF-96 also contains a list of BSON attributes that are not supported by EFCore.
Sincerely,
James