Enableing each NHibernate.Cfg.Configuration to have its own CollectionTypeFactoryClass

Description

Discussed in this thread: http://groups.google.com/group/nhusers/browse_thread/thread/80b78c62ebdbc2ed

When attaching a custom CollectionTypeFactoryClass to a configuration object, that CollectionTypeFactory becomes used with all configuration objects.
On the other hand, if one uses a default CollectionTypeFactoryClass first, and then tries to use another in a different configuration, one gets an 'collection factory in use - can't change it' exception.

This is evident from the test case.

Environment

None

Attachments

8

Activity

Alex Hummel 
July 26, 2011 at 12:54 PM

Instead of Shared.uNhAddIns.WPF.Collections.WpfCollectionTypeFactory one can use just the uNhAddIns.WPF.Collections.WpfCollectionTypeFactory, it is the same.

Details

Assignee

Reporter

Components

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created July 26, 2011 at 12:09 PM
Updated July 26, 2011 at 1:13 PM
Who's Looking?