/// <summary> /// Remove /// </summary> /// <param name="query">Query object</param> /// <returns>Return the activation record</returns> public IActivationRecord Remove(IQuery query, ActivationOption activationOption = null) { WarehouseManager.Remove <TEntity>(query); var record = DefaultActivationRecord <TEntity, TDataAccess> .CreateRemoveByConditionRecord(query, activationOption); return(record); }
/// <summary> /// remove /// </summary> /// <param name="query"></param> /// <returns></returns> public async Task <IActivationRecord> RemoveAsync(IQuery query) { await WarehouseManager.RemoveAsync <ET>(query); var record = DefaultActivationRecord <ET, DAI> .CreateRemoveByConditionRecord(query); return(record); }