Commit b8e53fc7 authored by Carole Treser's avatar Carole Treser
Browse files

feat(weather): push weather icon data and update edmx

parent 8efe30c9
......@@ -9,12 +9,10 @@
namespace BeeWeatherPollenTracker
{
using MySql.Data.EntityFramework;
using System;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
[DbConfigurationType(typeof(MySqlEFConfiguration))]
public partial class delmeEntities1 : DbContext
{
public delmeEntities1()
......
// La génération de code T4 est activée pour le modèle 'C:\CNAM\2A\Darmstadt\bee-weather\BeeWeatherPollenTracker\BeesWeatherModel.edmx'.
// La génération de code T4 est activée pour le modèle 'C:\CNAM\2A\Darmstadt\Genie_logiciel\bee-weather\BeeWeatherPollenTracker\BeesWeatherModel.edmx'.
// Pour activer la génération de code héritée, définissez la valeur de la propriété
// du concepteur 'Stratégie de génération de code' sur 'ObjectContext hérité'. Cette propriété est disponible dans la fenêtre Propriétés lorsque le modèle
// est ouvert dans le concepteur.
......
......@@ -24,13 +24,14 @@
<PropertyRef Name="Id" />
</Key>
<Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="Input_date" Type="date" Nullable="false" />
<Property Name="Forecast_date" Type="date" Nullable="false" />
<Property Name="Input_date" Type="datetime" Precision="0" Nullable="false" />
<Property Name="Forecast_date" Type="datetime" Precision="0" Nullable="false" />
<Property Name="Temperature" Type="double" Nullable="false" />
<Property Name="Wind" Type="double" Nullable="false" />
<Property Name="Humidity" Type="double" Nullable="false" />
<Property Name="Cloudiness" Type="varchar" MaxLength="256" Nullable="false" />
<Property Name="Location" Type="varchar" MaxLength="256" Nullable="false" />
<Property Name="Icon" Type="varchar" MaxLength="5" Nullable="false" />
</EntityType>
<EntityType Name="ref_beehive_poll_forecast">
<Key>
......@@ -142,6 +143,7 @@
<Property Name="Humidity" Type="Double" Nullable="false" />
<Property Name="Cloudiness" Type="String" Nullable="false" MaxLength="256" FixedLength="false" Unicode="false" />
<Property Name="Location" Type="String" Nullable="false" MaxLength="256" FixedLength="false" Unicode="false" />
<Property Name="Icon" Type="String" Nullable="false" MaxLength="5" FixedLength="false" Unicode="false" />
</EntityType>
<EntityType Name="ref_beehive_poll_forecast">
<Key>
......@@ -189,7 +191,7 @@
</Dependent>
</ReferentialConstraint>
</Association>
</Schema>
</Schema>
</edmx:ConceptualModels>
<!-- C-S mapping content -->
<edmx:Mappings>
......@@ -213,6 +215,7 @@
<EntitySetMapping Name="beehive_weather_forecast">
<EntityTypeMapping TypeName="delmeModel.beehive_weather_forecast">
<MappingFragment StoreEntitySet="beehive_weather_forecast">
<ScalarProperty Name="Icon" ColumnName="Icon" />
<ScalarProperty Name="Location" ColumnName="Location" />
<ScalarProperty Name="Cloudiness" ColumnName="Cloudiness" />
<ScalarProperty Name="Humidity" ColumnName="Humidity" />
......
......@@ -73,6 +73,7 @@ namespace BeeWeatherPollenTracker
w.Wind = item.WindSpeed;
w.Cloudiness = item.Description;
w.Location = item.City;
w.Icon = item.Icon;
_weather_forecast_list.Add(w);
}
......
......@@ -22,5 +22,6 @@ namespace BeeWeatherPollenTracker
public double Humidity { get; set; }
public string Cloudiness { get; set; }
public string Location { get; set; }
public string Icon { get; set; }
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment