int id = (int)(long)reader["id"]; //reader is an IDataReader that has the results from a querry ran with IDbCommand.ExecuteReader()
System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.Int64'.
at Stas.Monitor.Infrastructures.ThermometresRepository.GetThermometres() in /home/mathieub/Documents/b2/ai/Stas.Monitor/Stas.Monitor.Infrastructures/ThermometresRepository.cs:line 27
at Stas.Monitor.App.App.OnFrameworkInitializationCompleted() in /home/mathieub/Documents/b2/ai/Stas.Monitor/Stas.Monitor.App/App.axaml.cs:line 58
int id = (int)(long)reader["id"]; //reader is an IDataReader that has the results from a querry ran with IDbCommand.ExecuteReader()
System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.Int64'.
at Stas.Monitor.Infrastructures.ThermometresRepository.GetThermometres() in /home/mathieub/Documents/b2/ai/Stas.Monitor/Stas.Monitor.Infrastructures/ThermometresRepository.cs:line 27
at Stas.Monitor.App.App.OnFrameworkInitializationCompleted() in /home/mathieub/Documents/b2/ai/Stas.Monitor/Stas.Monitor.App/App.axaml.cs:line 58