-
1 votesanswersviews
使用Azure DocumentDB的MongoDB Indexes.CreateOneAsync异常
我正在尝试使用连接到Azure DocumentDB实例的c#MongoDB驱动程序创建多个唯一索引,但在尝试创建第二个唯一索引时,我收到以下异常: MongoDB.Driver.MongoCommandException:'命令createIndexes失败:消息:{“错误”:[“唯一键的数量不能大于1.”]} 我似乎无法找到有关Azure DocumentDB集合的唯一键数量的任何文档 . 请... -
0 votesanswersviews
MongoDB C#OfType()索引行为
假设我对集合有这个查询: var dbMarkers = Features.AsQueryable<DBFeature>() .OfType<DBPointFeature>() .Where(f => f.parentFeatureSetId = parentFeature...