When I am using the Mongo with Entity Framework.
I am getting below error
Property ‘User.LastLogin’ is annotated with unsupported attribute ‘BsonIgnoreIfNullAttribute’.
Skip to main content
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
New & Unread Topics
Topic | Replies | Views | Activity |
---|---|---|---|
Fairly new to MongoDB. Need to update older entries | 0 | 429 | May 2024 |
Mongo 5 – mongoexport doesn’t preserve date format everywhere. | 0 | 434 | May 2024 |
Introducing Mongo Explorer: An Open-Source, AI-Powered MongoDB Management Tool | 0 | 1.1k | Aug 2024 |
MongoDB Compass 1.44 breaks SSH tunneling | 2 | 91 | Sep 2024 |
Find() not using index | 4 | 88 | Feb 19 |