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 getting schema mappings for entity type - 2 Fragments found #43

Open
tboby opened this issue Jan 19, 2016 · 1 comment
Open

Error getting schema mappings for entity type - 2 Fragments found #43

tboby opened this issue Jan 19, 2016 · 1 comment
Milestone

Comments

@tboby
Copy link

tboby commented Jan 19, 2016

I'm getting Error getting schema mappings for entity type with an internal exception 2 Fragments found.. Debugging the code it seems like that is literally the issue, although I don't understand the implications. The class referenced doesn't use any enums but does however use two separate calls of
Entity.Map( m => { m.ToTable(" ") } to split the properties across two tables.

Removing the fragments exception and taking fragments.FirstOrDefault() seems to generate the correct lookup SQL, but I assume it would break any enums on my fragmented class?

@timabell
Copy link
Owner

Not one I've seen before, but edmx is a hideous beast with many undocumented layers of doom within so can't say I'm surprised.

Happy to consider pull requests. Make sure you TDD the new code and include the test.

Make sure the PR is on the right branch, master is for v2, and there's a maintenance branch for the v1.x releases

Thanks for filing the issue.

@timabell timabell changed the title 2 Fragments found Error getting schema mappings for entity type - 2 Fragments found Jan 30, 2016
@timabell timabell added this to the v1 milestone Jan 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants