Underscore Convention

2 views
Skip to first unread message

mt

unread,
Nov 8, 2009, 5:42:49 PM11/8/09
to Fluent NHibernate
Hello,

I have been quite impressed with Fluent Nhibernate since I started
implementing it a few days ago. Seems very clean and well
architected. However, I have been unable to figure out how to easily
create a convention that would allow my tables and column names to
have underscores (i.e. PropertyName to property_name). I saw in
another post someone posted an example class
PascalToUnderscorePropertyConvention however it uses a class
Inflector.Net.Inflector.Underscore which I cant seem to find
anywhere. Is there a certain namespace that I should import in order
to use this class? Or is there a standard way of doing it since it
seems like it would be fairly common?

thanks

Paul Batum

unread,
Nov 8, 2009, 6:19:07 PM11/8/09
to fluent-n...@googlegroups.com
Inflector is a seperate library. You should be able to download it from this page:
http://andrewpeters.net/inflectornet/

mt

unread,
Nov 8, 2009, 7:56:52 PM11/8/09
to Fluent NHibernate
Thanks! that solved my problem.
Reply all
Reply to author
Forward
0 new messages