Exemplo n.º 1
0
        public async Task <TEntity> GetByIdWithDeletedAsync(params object[] id)
        {
            var getByIdPredicate = EfExpressionHelper.BuildByIdPredicate <TEntity>(this.Context, id);

            return(await this.AllWithDeleted().FirstOrDefaultAsync(getByIdPredicate));
        }
Exemplo n.º 2
0
        public TEntity GetByIdWithDeleted(params object[] id)
        {
            var getByIdPredicate = EfExpressionHelper.BuildByIdPredicate <TEntity>(this.Context, id);

            return(this.AllWithDeleted().FirstOrDefault(getByIdPredicate));
        }