Using MongoDB C# Driver 2.3, what's the strongly typed version of the following code?
database.GetCollection<GamePlay>()
.Indexes
.CreateOne("{ \"PartiesInGame.Username\": 1 }");
GamePlay
has an IEnumerable<PartyInGame>
, where PartyInGame
has a public string Username { get; set; }
Just a heads up but for now Robert Stam has said you cannot do this at present but they are planning it for a future release you can track it here... CSHARP-1955
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With