/// <summary> /// Deprecated Method for adding a new object to the Participants EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToParticipants(Participant participant) { base.AddObject("Participants", participant); }
/// <summary> /// Create a new Participant object. /// </summary> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="tubeId">Initial value of the TubeId property.</param> public static Participant CreateParticipant(global::System.Guid userId, global::System.Int32 tubeId) { Participant participant = new Participant(); participant.UserId = userId; participant.TubeId = tubeId; return participant; }