MongoDB driver cannot use [BsonElement(“SomeAttributeName)”] on Id?

前端 未结 0 1638
夕颜
夕颜 2021-02-07 03:37

I want to map an attribute from MongoDb to a field called Id in the POCO class. Note that it is not the real _id in MongoDb, I wanted to use the name Id over something else.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题