Update() public method

Persists the modification on the instance state to the database.
If within a SessionScope the operation is going to be on hold until NHibernate (or you) decides to flush the session.
public Update ( ) : void
return void
Esempio n. 1
0
 /// <summary>
 /// Persists the modification on the instance
 /// state to the database.
 /// </summary>
 /// <param name="instance">The ActiveRecord instance to be deleted</param>
 public static void Update(object instance)
 {
     ActiveRecordBase.Update(instance);
 }
Esempio n. 2
0
 public virtual void Update()
 {
     ActiveRecordBase.Update(this);
 }
Esempio n. 3
0
 /// <summary>
 /// Persists the modification on the instance
 /// state to the database.
 /// </summary>
 /// <param name="instance">The ActiveRecord instance to be updated on the database</param>
 protected internal static void Update(T instance)
 {
     ActiveRecordBase.Update(instance);
 }