/// <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="id">Initial value of the Id property.</param> /// <param name="hasExtraLaptop">Initial value of the HasExtraLaptop property.</param> /// <param name="experienceLevelId">Initial value of the ExperienceLevelId property.</param> /// <param name="charityProjectId">Initial value of the CharityProjectId property.</param> public static Volunteer CreateVolunteer(global::System.Int32 id, global::System.Boolean hasExtraLaptop, global::System.Int32 experienceLevelId, global::System.Int32 charityProjectId) { Volunteer volunteer = new Volunteer(); volunteer.Id = id; volunteer.HasExtraLaptop = hasExtraLaptop; volunteer.ExperienceLevelId = experienceLevelId; volunteer.CharityProjectId = charityProjectId; return volunteer; }