Nhibernate Generics Update

time to read 1 min | 144 words

I've updated NHibernate Generics (based on Dragos' suggestion) to add support for different accessors. You can now use the following types to select which naming strategy it will use to get your fields.

  • NHibernate.Generics.GenericAccessor+CamelCase, NHibernate.Generics
  • NHibernate.Generics.GenericAccessor+CamelCaseUnderscore, NHibernate.Generics
  • NHibernate.Generics.GenericAccessor+PascalCaseUnderscore, NHibernate.Generics
  • NHibernate.Generics.GenericAccessor+PascalCaseMUnderscore, NHibernate.Generics
  • NHibernate.Generics.GenericAccessor+LowerCase, NHibernate.Generics
  • NHibernate.Generics.GenericAccessor+LowerCaseUnderscore, NHibernate.Generics

The old accessor (NHibernate.Generics.GenericAccessor, NHibernate.Generics) still works, of course, and default to CamelCaseUnderscore naming strategy.