'How to get the latest data in InfluxDB via C#
When I used mongodb before, I used this method to get the latest data in the DB.
double H = Model.LastOrDefault().Ax;
double V = Model.LastOrDefault().Ay;
Does influxdb have similar functions? I am currently obtaining all the information using this method.
@foreach (var record in Model)
{
<li>@record.Ax</li>
}
it is model
public class MpuModel
{
public double Ax { get; set; }
public double Ay { get; set; }
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
