We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using conjoined tenancy and mapping the TenantId to the document with the following configuration:
opts.Schema .For<User>() .Metadata(a => a.TenantId.MapTo(x => x.TenantId));
and then fetching the documents with the following query:
var userDict = new Dictionary<Guid, UserState>(); var document = await session .Query<User>() .Include(x => x.Id, userDict) .Where(a => a.Id == newUser.Id) .ToPagedListAsync(1,10);
Results in a exception System.NotSupportedException : Specified method is not supported.
System.NotSupportedException : Specified method is not supported.
Stack Trace:
DuplicatedFieldSelectClause.UseStatistics(QueryStatistics statistics) line 490 CollectionUsage.BuildTopStatement(IMartenSession session, IQueryableMemberCollection collection, IDocumentStorage storage, QueryStatistics statistics) line 59 LinqQueryParser.BuildStatements() line 33 LinqQueryParser.BuildListHandler[T]() line 71 MartenLinqQueryable`1.ToListAsync[TResult](CancellationToken token) line 0 PagedList`1.InitAsync(IQueryable`1 queryable, Int32 pageNumber, Int32 pageSize, CancellationToken token) line 160 PagedList`1.CreateAsync(IQueryable`1 queryable, Int32 pageNumber, Int32 pageSize, CancellationToken token) line 130 PagedListQueryableExtensions.ToPagedListAsync[T](IQueryable`1 queryable, Int32 pageNumber, Int32 pageSize, CancellationToken token) line 47
Here is a pull request with a test reproducing the issue. #3275
The text was updated successfully, but these errors were encountered:
Duplicated fields + Select() + UseStatistics() combo. Closes GH-3274
8a6ce16
ffccfac
No branches or pull requests
When using conjoined tenancy and mapping the TenantId to the document with the following configuration:
and then fetching the documents with the following query:
Results in a exception
System.NotSupportedException : Specified method is not supported.
Stack Trace:
Here is a pull request with a test reproducing the issue.
#3275
The text was updated successfully, but these errors were encountered: