Castle.ActiveRecord.ActiveRecordBase.UpdateAndFlush C# (CSharp) Method

UpdateAndFlush() public method

Persists the modification on the instance state to the database.
Even within a SessionScope the operation is going to be flushed immediately. This might have side effects such as flushing (persisting) others operations that were on hold.
public UpdateAndFlush ( ) : void
return void
		public virtual void UpdateAndFlush()
		{
			UpdateAndFlush(this);
		}

Same methods

ActiveRecordBase::UpdateAndFlush ( object instance ) : void

Usage Example

Exemplo n.º 1
0
 /// <summary>
 /// Persists the modification on the instance
 /// state to the database and flushes the session.
 /// </summary>
 /// <param name="instance">The ActiveRecord instance to be updated on the database</param>
 public static void UpdateAndFlush(object instance)
 {
     ActiveRecordBase.UpdateAndFlush(instance);
 }