Update() public method

Updates this property by writing it to the database.
public Update ( ) : SessionProperty
return SessionProperty
Esempio n. 1
0
 /// <summary>
 /// Removes the specified _session property.
 /// </summary>
 /// <param name="sessionProperty">The _session property.</param>
 /// <returns></returns>
 public bool Remove(SessionProperty sessionProperty)
 {
     sessionProperty.SuspendUpdates = true;
     sessionProperty.AccountId = AccountId;
     sessionProperty.SessionId = SessionId;
     sessionProperty.Update();
     sessionProperty.SuspendUpdates = false;
     return Properties.Remove(sessionProperty);
 }
Esempio n. 2
0
 /// <summary>
 /// Adds the specified session property.
 /// </summary>
 /// <param name="sessionProperty">The _session property.</param>
 public void Add(SessionProperty sessionProperty)
 {
     sessionProperty.SuspendUpdates = true;
     sessionProperty.AccountId = AccountId;
     sessionProperty.SessionId = SessionId;
     sessionProperty.Update();
     sessionProperty.SuspendUpdates = false;
     Properties.Add(sessionProperty);
 }