4
使用MongoDB C#驱动程序2.3,以下代码的强类型版本是什么?Mongo C#在嵌套数组属性上的强类型索引
database.GetCollection<GamePlay>()
.Indexes
.CreateOne("{ \"PartiesInGame.Username\": 1 }");
GamePlay
有IEnumerable<PartyInGame>
,其中PartyInGame
有public string Username { get; set; }