Skip to content

Instantly share code, notes, and snippets.

@paulbatum
Created January 13, 2010 23:19
Show Gist options
  • Save paulbatum/276673 to your computer and use it in GitHub Desktop.
Save paulbatum/276673 to your computer and use it in GitHub Desktop.
if (componentMapping != null)
{
mapping.CompositeElement = componentMapping.GetCompositeElementMapping();
mapping.Relationship = null; // HACK: bad design
}
// HACK: Index only on list and map - shouldn't have to do this!
if (indexMapping != null && mapping is IIndexedCollectionMapping)
((IIndexedCollectionMapping)mapping).Index = indexMapping;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment