/// <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="city">Initial value of the City property.</param> /// <param name="state">Initial value of the State property.</param> /// <param name="emailDomain">Initial value of the EmailDomain property.</param> public static School CreateSchool(global::System.Int32 id, global::System.String name, global::System.String city, global::System.String state, global::System.String emailDomain) { School school = new School(); school.Id = id; school.Name = name; school.City = city; school.State = state; school.EmailDomain = emailDomain; return school; }