aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcinzelent <zelent.marcin@gmail.com>2017-11-27 13:56:31 +0100
committermarcinzelent <zelent.marcin@gmail.com>2017-11-27 13:56:31 +0100
commit5b0a861c151fb99334e55438f795b1c5921ca5d8 (patch)
tree727ea0dddde419f40c85038e1dc3f526e2e347b7
parentd93cd5af6b53c1d66f0633506bad5d7e83d64710 (diff)
Changed reading types to double.
-rw-r--r--AirPollutionWebApi/Models/Reading.cs6
-rw-r--r--AirPollutionWebApi/SqlOperator.cs6
2 files changed, 6 insertions, 6 deletions
diff --git a/AirPollutionWebApi/Models/Reading.cs b/AirPollutionWebApi/Models/Reading.cs
index f211407..0d7ff39 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 decimal Co { get; set; }
- public decimal No { get; set; }
- public decimal So { get; set; }
+ public double Co { get; set; }
+ public double No { get; set; }
+ public double So { get; set; }
}
}
diff --git a/AirPollutionWebApi/SqlOperator.cs b/AirPollutionWebApi/SqlOperator.cs
index 40e7d6f..34213df 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.GetDecimal(2),
- No = reader.GetDecimal(3),
- So = reader.GetDecimal(4)
+ Co = reader.GetDouble(2),
+ No = reader.GetDouble(3),
+ So = reader.GetDouble(4)
});
}
}