Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
        /// <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);
        }