Castle.ActiveRecord.ActiveRecordBase.DeleteAndFlush C# (CSharp) Метод

DeleteAndFlush() публичный Метод

Deletes the instance from 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 DeleteAndFlush ( ) : void
Результат void
		public virtual void DeleteAndFlush()
		{
			DeleteAndFlush(this);
		}

Same methods

ActiveRecordBase::DeleteAndFlush ( object instance ) : void

Usage Example

Пример #1
0
 /// <summary>
 /// Deletes the instance from the database and flushes the session.
 /// </summary>
 /// <param name="instance">The ActiveRecord instance to be deleted</param>
 public static void DeleteAndFlush(object instance)
 {
     ActiveRecordBase.DeleteAndFlush(instance);
 }