/// <summary> /// Create a new Session object. /// </summary> /// <param name="sessionID">Initial value of the SessionID property.</param> /// <param name="speakerID">Initial value of the SpeakerID property.</param> /// <param name="title">Initial value of the Title property.</param> /// <param name="approved">Initial value of the Approved property.</param> public static Session CreateSession(global::System.Guid sessionID, global::System.Guid speakerID, global::System.String title, global::System.Boolean approved) { Session session = new Session(); session.SessionID = sessionID; session.SpeakerID = speakerID; session.Title = title; session.Approved = approved; return session; }
/// <summary> /// Deprecated Method for adding a new object to the Sessions EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSessions(Session session) { base.AddObject("Sessions", session); }