Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set default access to field.camelcase-underscore using Fluent NHibernate?

would like to set this convention up globally if possible.

like image 410
Jon Erickson Avatar asked Feb 03 '10 01:02

Jon Erickson


1 Answers

You need a convention, of which there are some shortcuts for the common scenarios. Specifically, there's a DefaultAccess shortcut, with a CamelCaseField(prefix) method.

.Conventions.Add(
  DefaultAccess.CamelCaseField(CamelCasePrefix.Underscore)
);
like image 190
James Gregory Avatar answered Nov 15 '22 11:11

James Gregory