I have the following Mongodb Script but would like to write them in C#, can somebody help me translate them to C# as simple as possible. I am using mongodb C# driver.
Find the max value of a field in a collection and return it to a variable
db.tblProduct.find().sort({"ThrowNo":1/-1}).limit(-1)
Find the min value :
db.tblProduct.find().sort({"ThrowNo":1/1}).limit(-1)
How would I handle converting different datatypes for example if ThrowNo
would be a datetime.
Thanks you for assisting me!