Example #1
0
        /// <summary>
        /// Create a new city object.
        /// </summary>
        /// <param name="countryCode">Initial value of the CountryCode property.</param>
        /// <param name="district">Initial value of the District property.</param>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="name">Initial value of the Name property.</param>
        /// <param name="population">Initial value of the Population property.</param>
        public static city Createcity(global::System.String countryCode, global::System.String district, global::System.Int32 id, global::System.String name, global::System.Int32 population)
        {
            city city = new city();

            city.CountryCode = countryCode;
            city.District    = district;
            city.ID          = id;
            city.Name        = name;
            city.Population  = population;
            return(city);
        }
Example #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the cities EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTocities(city city)
 {
     base.AddObject("cities", city);
 }