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 |
---|---|---|---|
Mongoexport failed by date | 3 | 334 | Jul 2024 |
MongoDB Compass 1.44 breaks SSH tunneling | 2 | 91 | Sep 2024 |
C# aggregation with dynamic group stage based on params | 1 | 38 | Oct 2024 |
MongoDB Starts and then fails to start up WiredTiger | 0 | 66 | Dec 2024 |
mongodump is very slow | 2 | 74 | Feb 19 |