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

DeleteAndFlush() protected static method

Deletes the instance from the database and flushes the session.
protected static DeleteAndFlush ( object instance ) : void
instance object The ActiveRecord instance to be deleted
return void
		protected internal static void DeleteAndFlush(object instance)
		{
			InternalDelete(instance, true);
		}

Same methods

ActiveRecordBase::DeleteAndFlush ( ) : void

Usage Example

Beispiel #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);
 }