ef-enum-to-lookup icon indicating copy to clipboard operation
ef-enum-to-lookup copied to clipboard

Error getting schema mappings for entity type - 2 Fragments found

Open tboby opened this issue 9 years ago • 1 comments

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?

tboby avatar Jan 19 '16 12:01 tboby

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 avatar Jan 30 '16 17:01 timabell