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

Error Include multiple properties #1625

Closed
kidchenko opened this issue Feb 15, 2015 · 16 comments
Closed

Error Include multiple properties #1625

kidchenko opened this issue Feb 15, 2015 · 16 comments
Assignees
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-bug
Milestone

Comments

@kidchenko
Copy link

when using the Include method to eager loading of an entity everything works perfectly, but when using the Include in two properties an error occurs.

@divega
Copy link
Contributor

divega commented Feb 15, 2015

@Kiide What version are you using? Can you provide a repro? Model and query can help. A project would be ideal.

@kidchenko
Copy link
Author

image

image

image

@kidchenko
Copy link
Author

I have a class model Produto (Product) that have multiple associations but the entity framework can not load the associations, then I force loading using Include method.

@kidchenko kidchenko changed the title Error Include multiple propertis Error Include multiple properties Feb 15, 2015
@divega
Copy link
Contributor

divega commented Feb 15, 2015

@Kiide Thanks. Looks like something that has since then been fixed. @maumar what do you think?

@maumar
Copy link
Contributor

maumar commented Feb 15, 2015

This should already be fixed in latest bits

@maumar
Copy link
Contributor

maumar commented Feb 15, 2015

This might actually be a different issue. I will take a closer look tomorrow

@kidchenko
Copy link
Author

oh, ok great guys! But in this situation, is there anything I can do? I need to load all the associations of my body, I can do a SQL query?

@maumar
Copy link
Contributor

maumar commented Feb 16, 2015

I would try our nightly build first, this might unblock you right away, we made a lot of fixes around include area recently

@Boglen
Copy link

Boglen commented Feb 16, 2015

You can try use beta2 from master repo, or beta4 last builds from dev repo

@kidchenko
Copy link
Author

Hi guys, give me some days, i will try beta2, beta3 and beta4 and post feedback here!

@maumar
Copy link
Contributor

maumar commented Mar 23, 2015

@Kiide any update on this?

@kidchenko
Copy link
Author

In the docs

  • There is currently no loading of related data (eager, lazy, or explicit loading). To load related data you need to issue a separate LINQ query.

@kidchenko
Copy link
Author

In my tests

image

but

image

and

image

EF not load all properties.

In before beta3, if i using .
Include(x => x.OtherActor).Include(x => x.OtherDirector).Include(x => x.OtherDirector).

not work.

@kidchenko
Copy link
Author

I has using vNext and EF7 in production, but i change EF7 to NHibernate momentarily...

@maumar
Copy link
Contributor

maumar commented Mar 31, 2015

Can you also post screenshots or paste contents of your ApplicationContext as well as entities Actor, Director, Movie? Thanks!

@maumar
Copy link
Contributor

maumar commented Jul 9, 2015

didn't hear back, closing. Also we did some improvements around include, so the original issue may be already solved. Feel free to reopen if you still see the problem in the latest bits.

@maumar maumar closed this as completed Jul 9, 2015
@rowanmiller rowanmiller modified the milestones: 7.0.0, 7.0.0-beta6 Jul 15, 2015
@ajcvickers ajcvickers added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Oct 15, 2022
@ajcvickers ajcvickers modified the milestones: 1.0.0-beta6, 1.0.0 Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-bug
Projects
None yet
Development

No branches or pull requests

6 participants