コード例 #1
0
ファイル: SaleMgn.Designer.cs プロジェクト: kietfriends/QLBH
 /// <summary>
 /// Create a new Session object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="token">Initial value of the Token property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="startDate">Initial value of the StartDate property.</param>
 /// <param name="lastRenewDate">Initial value of the LastRenewDate property.</param>
 public static Session CreateSession(global::System.Int32 id, global::System.String token, global::System.Int32 userId, global::System.DateTime startDate, global::System.DateTime lastRenewDate)
 {
     Session session = new Session();
     session.Id = id;
     session.Token = token;
     session.UserId = userId;
     session.StartDate = startDate;
     session.LastRenewDate = lastRenewDate;
     return session;
 }
コード例 #2
0
ファイル: SaleMgn.Designer.cs プロジェクト: kietfriends/QLBH
 /// <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);
 }