using fluent nhibernate, is there anyway to have a private property mapped

后端 未结 3 443
心在旅途
心在旅途 2021-01-06 23:53

i have a field that i want to map as it links to a column in the database but i don\'t want any external class to access this field directly from my code (its only used in p

3条回答
  •  攒了一身酷
    2021-01-07 00:10

    Yes it is possible. You can use the Reveal.Member static methods to map a private or hidden property

    Map(Reveal.Member("privateProperty"))
    

提交回复
热议问题