Source

NHibernate.Envers.SetForNet4 /

Filename Size Date modified Message
NHibernate.Envers.SetForNet4
NHibernate.Envers.SetForNet4Test
lib
402 B
400 B
1.7 KB
755 B
This lib makes NH Envers support NHibernate.SetForNet4.

To use this lib...

1: Copy/paste the files in NHiberate.Envers.SetForNet4 to your infrastructure layer
or
1: Build NHibernate.Envers.SetForNet4. Make sure correct NHibernate and NHibernate.Envers assemblies are referenced. Put this assembly to your bin folder.

2: You need configure both NH Core and NH Envers. Something like...
//for nh core
configuration.Properties[Environment.CollectionTypeFactoryClass] 
				= typeof(Net4CollectionTypeFactory).AssemblyQualifiedName;
//for nh envers
configuration.Properties[ConfigurationKey.CollectionMapperFactory] 
				= typeof(CollectionProxyMapperFactoryForNet4).AssemblyQualifiedName;



Supports NHibernate.Envers 1.0 CR 2 and later.