/// <summary> /// Deprecated Method for adding a new object to the Schools EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSchools(School school) { base.AddObject("Schools", school); }
/// <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; }