/// <summary> /// Deprecated Method for adding a new object to the Volunteers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToVolunteers(Volunteer volunteer) { base.AddObject("Volunteers", volunteer); }
/// <summary> /// Create a new Volunteer object. /// </summary> /// <param name="volunteerId">Initial value of the VolunteerId property.</param> public static Volunteer CreateVolunteer(global::System.Int32 volunteerId) { Volunteer volunteer = new Volunteer(); volunteer.VolunteerId = volunteerId; return volunteer; }