Skip to content
New issue

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

Firstrun query error #1

Open
muratozbayraktar opened this issue Jan 30, 2021 · 1 comment
Open

Firstrun query error #1

muratozbayraktar opened this issue Jan 30, 2021 · 1 comment

Comments

@muratozbayraktar
Copy link

I'm using sqlite database. After i run project getting multiple errors on Index > SummaryData > BatchSummaryList

AggregateException: One or more errors occurred. (The LINQ expression '(GroupByShaperExpression: KeySelector: (l.BatchId), ElementSelector:(EntityShaperExpression: EntityType: Log ValueBufferExpression: (ProjectionBindingExpression: EmptyProjectionMember) IsNullable: False ) ) .Max(x => x.Gravity)' could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to either AsEnumerable(), AsAsyncEnumerable(), ToList(), or ToListAsync().

InvalidOperationException: The LINQ expression '(GroupByShaperExpression: KeySelector: (l.BatchId), ElementSelector:(EntityShaperExpression: EntityType: Log ValueBufferExpression: (ProjectionBindingExpression: EmptyProjectionMember) IsNullable: False ) ) .Max(x => x.Gravity)' could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to either AsEnumerable(), AsAsyncEnumerable(), ToList(), or ToListAsync().

@JWealthall
Copy link
Owner

Hi Murat,

What version of Entity Framework Core are you using and what platform did you build/deploy this on? i.e. did you 'upgrade' the version to the .Net Core 5 versions - there were some breaking changes in the Core 5 version which I've not coded around.

Regards John

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants