Rich domain model with behaviours and ORM

前端 未结 4 1308
孤城傲影
孤城傲影 2021-02-02 13:54

After watching NDC12 presentation \"Crafting Wicked Domain Models\" from Jimmy Bogard (http://ndcoslo.oktaset.com/Agenda), I was wandering how to persist that kind of domain mod

4条回答
  •  难免孤独
    2021-02-02 14:15

    For AssignedOffers : if you look at the code you'll see that AssignedOffers returns value from a field. NHibernate can populate that field like this: Map(x => x.AssignedOffers).Access.Field().

    Agree with using CQS.

提交回复
热议问题