【问题标题】:How to make sure data is entered in MongoDB after InsertOne/InsertMany Command using C#?如何确保在使用 C# 的 InsertOne/InsertMany 命令后将数据输入 MongoDB?
【发布时间】:2022-06-13 15:58:29
【问题描述】:

我正在使用 c# 在 MongoDb 中插入一个文档,并希望确保将数据插入到 Db 中。有这个命令吗?我尝试使用“Isacknowledged”命令,但似乎不受支持。

【问题讨论】:

  • 我已从您的问题中删除了 ASP.NET-Core 标记,因为问题与 ASP.NET Core 无关。无论如何,如果你没有得到异常,数据已经插入。

标签: c# mongodb


猜你喜欢
  • 2020-10-07
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-08-16
  • 2013-05-26
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多