コード例 #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="schoolID">Initial value of the SchoolID property.</param>
 public static School CreateSchool(global::System.Int32 schoolID)
 {
     School school = new School();
     school.SchoolID = schoolID;
     return school;
 }