コード例 #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="clientSessionId">Initial value of the ClientSessionId property.</param>
 /// <param name="startTime">Initial value of the StartTime property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 public static Session CreateSession(global::System.Int32 sessionId, global::System.Int64 clientSessionId, global::System.DateTime startTime, global::System.Int32 userId)
 {
     Session session = new Session();
     session.SessionId = sessionId;
     session.ClientSessionId = clientSessionId;
     session.StartTime = startTime;
     session.UserId = userId;
     return session;
 }