开发者

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

开发者 https://www.devze.com 2022-12-19 03:59 出处:网络
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 shortcu

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)
);
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号