コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Schools EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSchools(School school)
 {
     base.AddObject("Schools", school);
 }
コード例 #2
0
 /// <summary>
 /// Create a new School object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="address">Initial value of the Address property.</param>
 /// <param name="city">Initial value of the City property.</param>
 /// <param name="state">Initial value of the State property.</param>
 /// <param name="country">Initial value of the Country property.</param>
 /// <param name="phone">Initial value of the Phone property.</param>
 public static School CreateSchool(global::System.Int64 id, global::System.String name, global::System.String address, global::System.String city, global::System.String state, global::System.String country, global::System.String phone)
 {
     School school = new School();
     school.Id = id;
     school.Name = name;
     school.Address = address;
     school.City = city;
     school.State = state;
     school.Country = country;
     school.Phone = phone;
     return school;
 }