Cannot use NHibernate Code Mapping for a private field

前端 未结 2 602
[愿得一人]
[愿得一人] 2021-01-27 23:36

What is the equivalent NHibernate Code Mapping for the following Fluent NHibernate code:

Map(x => x.Orders).Access.CamelCaseField(Prefix.Underscore);
<         


        
2条回答
  •  深忆病人
    2021-01-28 00:23

    You can just use a naming strategy:

    cfg.SetNamingStrategy(myStrategy);
    

    Where myStrategy is an implementation of INamingStrategy. See my blog post at https://weblogs.asp.net/ricardoperes/nhibernate-conventions

提交回复
热议问题