How to set default access to field.camelcase-underscore using Fluent NHibernate?
would like to set this convention up global开发者_JS百科ly if possible.
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)
);
精彩评论