Castle.ActiveRecord.ActiveRecordMediator.Delete C# (CSharp) Méthode

Delete() public static méthode

Deletes the instance from the database.
public static Delete ( object instance ) : void
instance object The ActiveRecord instance to be deleted
Résultat void
		public static void Delete(object instance)
		{
			ActiveRecordBase.Delete(instance);
		}

Usage Example

 /// <summary>
 /// Deletes the instance from the database.
 /// </summary>
 /// <param name="instance"></param>
 public static void Delete(T instance)
 {
     ActiveRecordMediator.Delete(instance);
 }