/// <summary> /// Deprecated Method for adding a new object to the Session EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSession(Session session) { base.AddObject("Session", session); }
/// <summary> /// Create a new Session object. /// </summary> /// <param name="sessionId">Initial value of the SessionId property.</param> /// <param name="year">Initial value of the Year property.</param> /// <param name="number">Initial value of the Number property.</param> public static Session CreateSession(global::System.Int32 sessionId, global::System.Int32 year, global::System.Int32 number) { Session session = new Session(); session.SessionId = sessionId; session.Year = year; session.Number = number; return session; }