loading...

re: Tutorial: MongoDB With C# The Easy Way! VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Hi, I've read through your documentation but I can't find what I'm looking for. In the official MongoDB driver you can specify if you want your ID ...
 

with this library it's not possible to change the type of the default id as objectid was chosen to be the best option for >90% of cases. you can however simply add another property to store the ISBN and put an index on it so queries can be written on that instead of querying by the ID. imho it's a small price to pay considering the benefits offered by the library.

Code of Conduct Report abuse