Store Json string as MongoDB array in C#

后端 未结 1 1881
逝去的感伤
逝去的感伤 2021-01-28 21:13

I want to store a JSON string in an array format in MongoDB.This is my C# code for storing notification into MongoDB, here the field \"Event_meta\" field sending as a JSON strin

1条回答
  •  醉话见心
    2021-01-28 21:58

    Make your Event_meta field type into BsonDocument and deserialize as BsonDocument. Or make your Notifications class as mapper class like Mongo Doc

    0 讨论(0)
提交回复
热议问题