diff options
Diffstat (limited to 'AirPollutionWebApi')
-rw-r--r-- | AirPollutionWebApi/Models/Reading.cs | 6 | ||||
-rw-r--r-- | AirPollutionWebApi/SqlOperator.cs | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/AirPollutionWebApi/Models/Reading.cs b/AirPollutionWebApi/Models/Reading.cs index 07f4599..f211407 100644 --- a/AirPollutionWebApi/Models/Reading.cs +++ b/AirPollutionWebApi/Models/Reading.cs @@ -4,8 +4,8 @@ { public int Id { get; set; } public int TimeStamp { get; set; } - public int Co { get; set; } - public int No { get; set; } - public int So { get; set; } + public decimal Co { get; set; } + public decimal No { get; set; } + public decimal So { get; set; } } } diff --git a/AirPollutionWebApi/SqlOperator.cs b/AirPollutionWebApi/SqlOperator.cs index bde60f8..40e7d6f 100644 --- a/AirPollutionWebApi/SqlOperator.cs +++ b/AirPollutionWebApi/SqlOperator.cs @@ -33,9 +33,9 @@ namespace AirPollutionWebApi.Singletons { Id = reader.GetInt32(0), TimeStamp = reader.GetInt32(1), - Co = reader.GetInt32(2), - No = reader.GetInt32(3), - So = reader.GetInt32(4) + Co = reader.GetDecimal(2), + No = reader.GetDecimal(3), + So = reader.GetDecimal(4) }); } } |