public override void Delete(Weather weather)
 {
     if (weather.EntityState == System.Data.EntityState.Detached)
     {
         this._entities.Weathers.Attach(weather);
     }
     this._entities.Weathers.DeleteObject(weather);
 }
        public override void Update(Weather weather)
        {
            ObjectStateEntry entry;
            if (!this._entities.ObjectStateManager.TryGetObjectStateEntry(weather, out entry) ||
                entry.State == System.Data.EntityState.Detached)
            {
                this._entities.Weathers.Attach(weather);
            }

            if (weather.EntityState != System.Data.EntityState.Modified)
            {
                this._entities.ObjectStateManager.ChangeObjectState(weather, System.Data.EntityState.Modified);
            }
        }
 /// <summary>
 /// Create a new Weather object.
 /// </summary>
 /// <param name="weatherID">Initial value of the WeatherID property.</param>
 /// <param name="locationID">Initial value of the LocationID property.</param>
 /// <param name="symbol">Initial value of the Symbol property.</param>
 /// <param name="period">Initial value of the Period property.</param>
 /// <param name="time">Initial value of the Time property.</param>
 /// <param name="temp">Initial value of the Temp property.</param>
 public static Weather CreateWeather(global::System.Int32 weatherID, global::System.Int32 locationID, global::System.String symbol, global::System.String period, global::System.String time, global::System.String temp)
 {
     Weather weather = new Weather();
     weather.WeatherID = weatherID;
     weather.LocationID = locationID;
     weather.Symbol = symbol;
     weather.Period = period;
     weather.Time = time;
     weather.Temp = temp;
     return weather;
 }
 public override void Add(Weather weather)
 {
     this._entities.Weathers.AddObject(weather);
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Weathers EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToWeathers(Weather weather)
 {
     base.AddObject("Weathers", weather);
 }