コード例 #1
0
 /// <summary>
 /// Create a new Session object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="userID">Initial value of the UserID property.</param>
 /// <param name="startTime">Initial value of the StartTime property.</param>
 /// <param name="lastActivityTime">Initial value of the LastActivityTime property.</param>
 /// <param name="endTime">Initial value of the EndTime property.</param>
 /// <param name="iP">Initial value of the IP property.</param>
 public static Session CreateSession(global::System.String id, global::System.String userID, global::System.DateTime startTime, global::System.DateTime lastActivityTime, global::System.DateTime endTime, global::System.String iP)
 {
     Session session = new Session();
     session.ID = id;
     session.UserID = userID;
     session.StartTime = startTime;
     session.LastActivityTime = lastActivityTime;
     session.EndTime = endTime;
     session.IP = iP;
     return session;
 }
コード例 #2
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);
 }