This project has moved and is read-only. For the latest updates, please go here.
1
Vote

Fails with multiple EDMX files

description

In a number of places in the code, it is assumed that there is only one collection.

Some examples:
  • .GetItemCollection(DataSpace.CSSpace)[0] (in MapperBase)
  • readOnlyCollection[0] (in DbMappings)
So, when my project has multiple EDMX files, the mapping fails, as it only looks into the first EDMX file.

file attachments

comments

glen wrote Nov 26, 2015 at 6:17 PM

As find code like:
  • MetadataWorkspace.GetItems(DataSpace.CSSpace).First()

wrote Nov 26, 2015 at 6:37 PM

glen wrote Nov 26, 2015 at 6:37 PM

I've fixed this enough for my purposes. The files changed are attached, and I'll upload them as a patch.

glen wrote Nov 26, 2015 at 6:40 PM

If anyone else wants this, you can download the changed files here: https://efmappingapi.codeplex.com/SourceControl/list/patches