-
Notifications
You must be signed in to change notification settings - Fork 159
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
Error in combination with EF and SplitToTable #1295
Comments
What EF provider are you using (the stacktrace seems to point to SqlServer?) and what version? Does the problem go away if you just switch the EF configuration to a single-table mapping? |
SqlServer 8.0.6 If I remove [EDIT] Even with expands like: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Assemblies affected
ASP.NET Core OData 8.2.5
Microsoft.EntityFrameworkCore 8.0.6
[EDIT] SqlServer 8.0.6
Describe the bug
In combination with EF and SplitToTable I get an error "System.InvalidOperationException: Sequence contains more than one element". The error is in EF, so I'm not 100% sure if it is an oData or EF problem. But I tried to reproduce the problem with a hand made linq EF query that returns equivalent results (like
dbContext.Tests.Include(t => t.ParentNavigation)
) that oData returns and everything works fine. I can't reproduce the bug without oData. So I hope I'm in the right place.error is:
Reproduce steps
db.Set<Test>().AsNoTracking();
asActionResult<IQueryable<Test>>
for GETData Model
EDM (CSDL) Model
Additional context
I also tried
/test?$expand=InverseParentNavigation
and everything works fineCreateTables.txt
The text was updated successfully, but these errors were encountered: