Mongo 嵌套数组上的 C# 强类型索引 属性
Mongo C# strongly typed index on nested array property
使用 MongoDB C# 驱动程序 2.3,以下代码的强类型版本是什么?
database.GetCollection<GamePlay>()
.Indexes
.CreateOne("{ \"PartiesInGame.Username\": 1 }");
GamePlay
有一个 IEnumerable<PartyInGame>
,其中 PartyInGame
有一个 public string Username { get; set; }
请注意,但现在 Robert Stam 表示您目前无法执行此操作,但他们正在计划在未来的版本中执行此操作,您可以在此处进行跟踪... CSHARP-1955
使用 MongoDB C# 驱动程序 2.3,以下代码的强类型版本是什么?
database.GetCollection<GamePlay>()
.Indexes
.CreateOne("{ \"PartiesInGame.Username\": 1 }");
GamePlay
有一个 IEnumerable<PartyInGame>
,其中 PartyInGame
有一个 public string Username { get; set; }
请注意,但现在 Robert Stam 表示您目前无法执行此操作,但他们正在计划在未来的版本中执行此操作,您可以在此处进行跟踪... CSHARP-1955