在使用MongoDB C# Driver 2.3时,下面代码的强类型版本是什么?
database.GetCollection<GamePlay>()
.Indexes
.CreateOne("{ \"PartiesInGame.Username\": 1 }");
GamePlay
有一个IEnumerable<PartyInGame>
,其中PartyInGame
具有public string Username { get; set; }
在使用MongoDB C# Driver 2.3时,下面代码的强类型版本是什么?
database.GetCollection<GamePlay>()
.Indexes
.CreateOne("{ \"PartiesInGame.Username\": 1 }");
GamePlay
有一个IEnumerable<PartyInGame>
,其中PartyInGame
具有public string Username { get; set; }