コード例 #1
0
        /// <summary>
        /// Create a new NameAndCity object.
        /// </summary>
        /// <param name="id">Initial value of the Id property.</param>
        public static NameAndCity CreateNameAndCity(global::System.Int32 id)
        {
            NameAndCity nameAndCity = new NameAndCity();

            nameAndCity.Id = id;
            return(nameAndCity);
        }
コード例 #2
0
 /// <summary>
 /// Create a new NameAndCity object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 public static NameAndCity CreateNameAndCity(global::System.Int32 id)
 {
     NameAndCity nameAndCity = new NameAndCity();
     nameAndCity.Id = id;
     return nameAndCity;
 }
コード例 #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the NameAndCities EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToNameAndCities(NameAndCity nameAndCity)
 {
     base.AddObject("NameAndCities", nameAndCity);
 }
コード例 #4
0
 /// <summary>
 /// Deprecated Method for adding a new object to the NameAndCities EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToNameAndCities(NameAndCity nameAndCity)
 {
     base.AddObject("NameAndCities", nameAndCity);
 }