/// <summary> /// Modify /// </summary> /// <param name="modifyExpression">Modify expression</param> /// <param name="query">Query object</param> /// <returns>Return the activation record</returns> public IActivationRecord Modify(IModify modifyExpression, IQuery query, ActivationOption activationOption = null) { WarehouseManager.Modify <TEntity>(modifyExpression, query); var record = DefaultActivationRecord <TEntity, TDataAccess> .CreateModifyRecord(modifyExpression, query, activationOption); return(record); }
/// <summary> /// modify /// </summary> /// <param name="modifyExpression">modify expression</param> /// <param name="query">query</param> /// <returns></returns> public async Task <IActivationRecord> ModifyAsync(IModify modifyExpression, IQuery query) { await WarehouseManager.ModifyAsync <ET>(modifyExpression, query); var record = DefaultActivationRecord <ET, DAI> .CreateModifyRecord(modifyExpression, query); return(record); }