Пример #1
0
        public async Task <TEntity> GetByIdWithDeletedAsync(params object[] id)
        {
            var getByIdPredicate = EfExpressionHelper.BuildByIdPredicate <TEntity>(this.Context, id);

            return(await this.AllWithDeleted().FirstOrDefaultAsync(getByIdPredicate));
        }
Пример #2
0
        public TEntity GetByIdWithDeleted(params object[] id)
        {
            var getByIdPredicate = EfExpressionHelper.BuildByIdPredicate <TEntity>(this.Context, id);

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