Automap to a list

Vadim's Avatar

Vadim

18 Oct, 2010 12:12 PM via web

Hey.

I posted this question in the Help and Guidance section and it got no response, thought that i might get one here...

I'm using the automap feature but want my collections to be indexed collections (lists) and not bags.
As far as I can infer from the source, CollectionStep uses AutoCollectionCreator which in turn can only create sets or bags.

I looked for a convention to modify this behavior but didn't find one. I also tried to create my own custom CollectionStep and insert it instead of the usual one but that didn't work as well because the map method is not virtual.

Am I missing something?

Thanks,
Vadim.

  1. Support Staff 2 Posted by Paul Batum on 24 Oct, 2010 07:43 AM

    Paul Batum's Avatar

    You aren't really missing anything. Unfortunately we don't support this scenario. The best you can do without modifying the source is to explicitly use IAutomappingOverrides to map your collections.

    Many people have asked for the ability to control collection types with conventions and this is the solution that probably makes the most sense. Unfortunately because of the structure of our code base, this is not a trivial change. That said, we do have an intention to support this... eventually.

Reply to this discussion

Preview Comments are parsed with Markdown. Help with syntax

Attached Files

    You can attach files up to 10MB

    What is 4 times four?