/// <summary>
 /// Create a new Country object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 public static Country CreateCountry(global::System.Int32 id)
 {
     Country country = new Country();
     country.id = id;
     return country;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Countrys EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCountrys(Country country)
 {
     base.AddObject("Countrys", country);
 }
Пример #3
0
 private void filter_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (e.AddedItems != null && e.AddedItems.Count > 0)
     {
         Selectedcountry = (Country)e.AddedItems[0];
     }
 }