Best approach for building NHibernate DTO's

后端 未结 4 1841
夕颜
夕颜 2021-01-03 03:16

I\'m new to NHibernate (and ORMS) and trying to come to grips with the myriad of different options it presents. For reference, I\'m using Fluent NHibernate with seperate bus

4条回答
  •  执笔经年
    2021-01-03 03:49

    DTO's are meant to be "data transfer objects". That is, dumb objects used for passing values or collections of values around in your system. They shouldn't be responsible for persisting themselves, or even map 1-1 to domain objects in your domain layer.

提交回复
热议问题