This project provide a sample that shows how to use InfluxDB in .Net 6.
I also wrote an article in the following address that completely explains Using InfluxDB in C#:
https://www.linkedin.com/pulse/using-influxdb-c-amir-doosti-dbklf/
The solution contains one Console App project which is written in Visual Studio. The project let you add temperature for two cities Tehran and London in an InfluxDB measurement with two different methods and query them with Flux using Influx.Client in C#.
- OS: Windows 10 Enterprise - 64 bits
- IDE: Visual Studio Enterprise 2022 (64 bits) - version 17.2.5
- Framework: .Net 6
- Language: C#
- InfluxDB docker v 2.7.5
Open the solution in Visual Studio and run it using F5. You will see a menu in the console with 4 command to create and query InfluxDB database.
Press X to exit the program.