Write the float value to mongo as bool as read it back as float. Useful if you want to rewrite the values in the DB and read it back in C# app.
Provides access to basic operations for MongoDB. To use this code, mongo database must run somewhere. To start MongoDB locally you can use following code
Start MongoDB without authentication
"C:\Program Files\MongoDB\Server\4.4\bin\mongod.exe" --dbpath C:\DATA\DB446\
Start MongoDB with authentication. You don't have to use the "--port" attribute or use a different "--dbpath". The only reason why would you want to run authenticated database on a different dbpath and port simultaneously is if they're running on the same machine.
More info about the use credentials MongoDbCredentials
"C:\Program Files\MongoDB\Server\4.4\bin\mongod.exe" --dbpath C:\DATA\DB446_AUTH\ --auth --port 27018