コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Sessions EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSessions(Session session)
 {
     base.AddObject("Sessions", session);
 }
コード例 #2
0
 /// <summary>
 /// Create a new Session object.
 /// </summary>
 /// <param name="sessionId">Initial value of the SessionId property.</param>
 /// <param name="sessionType">Initial value of the SessionType property.</param>
 /// <param name="sessionDate">Initial value of the SessionDate property.</param>
 /// <param name="rigId">Initial value of the RigId property.</param>
 public static Session CreateSession(global::System.Int32 sessionId, global::System.String sessionType, global::System.DateTime sessionDate, global::System.Int32 rigId)
 {
     Session session = new Session();
     session.SessionId = sessionId;
     session.SessionType = sessionType;
     session.SessionDate = sessionDate;
     session.RigId = rigId;
     return session;
 }