Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1.28 KB

README.md

File metadata and controls

33 lines (26 loc) · 1.28 KB

CiccioSoft.NhbCollections

Nuget

Summary

This library adds support for IBindingList and INotifyCollectionChanged to NHibernate bag, set and list.

How To

to add IBindingList to NHibernate bag, set and list:

NHibernate.Cfg.Configuration configuration = new NHibernate.Cfg.Configuration();
...
configuration.SetProperty(NHibernate.Cfg.Environment.CollectionTypeFactoryClass,
  "CiccioSoft.NhbCollections.CollectionBindingTypeFactory, CiccioSoft.NhbCollections");

to add INotifyCollectionChanged to NHibernate bag, set and list:

NHibernate.Cfg.Configuration configuration = new NHibernate.Cfg.Configuration();
...
configuration.SetProperty(NHibernate.Cfg.Environment.CollectionTypeFactoryClass,
  "CiccioSoft.NhbCollections.CollectionObservableTypeFactory, CiccioSoft.NhbCollections");

to add IBindingList and INotifyCollectionChanged to NHibernate bag, set and list:

NHibernate.Cfg.Configuration configuration = new NHibernate.Cfg.Configuration();
...
configuration.SetProperty(NHibernate.Cfg.Environment.CollectionTypeFactoryClass, 
  "CiccioSoft.NhbCollections.CollectionCiccioTypeFactory, CiccioSoft.NhbCollections");