NHibernate : map to fields or properties?

后端 未结 7 1186
傲寒
傲寒 2021-01-02 00:55

When you create your mapping files, do you map your properties to fields or properties :



        
7条回答
  •  离开以前
    2021-01-02 01:41

    I map to properties because I use automatic properties.

    Except for collections (like sets. Those I map to fields (access="field.camelcase-underscore") because I don't have public properties exposing them, but methods.

提交回复
热议问题