/// <summary> /// Actualy delete the row associated to a given id. You can use this if you need to really delete a row /// instead of just marking it as deleted /// </summary> /// <param name="toDelete">The id of the row that will be deleted</param> /// <param name="parameters">Can customize the functionality of the ForceDelete, not really useful /// for now</param> /// <returns>True if the row was deleted, else false</returns> public bool ForceDelete(int id, BusinessParameters parameters = null) { parameters = BusinessParameters.SetDeepValue(parameters, "soft-deletable.mode", "all"); return(ForceDelete(business.Find(id, parameters), parameters)); }
/// <summary> /// Actualy delete the row associated to a given Poco. You can use this if you need to really delete a row /// instead of just marking it as deleted /// </summary> /// <param name="toDelete">The Poco object that will be deleted</param> /// <param name="parameters">Can customize the functionality of the ForceDelete, not really useful /// for now</param> /// <returns>True if the row was deleted, else false</returns> public bool ForceDelete(Poco toDelete, BusinessParameters parameters = null) { parameters = BusinessParameters.SetDeepValue(parameters, "soft-deletable.disable", true); return(business.Delete(toDelete, parameters)); }