Mostly. I haven't read it fully, but I prefer S#arp Architecture idea of SaveOrUpdate (mapped from NHibernate) for entities, it's more convenient thant Add/Remove. But it may be just personal preference. In any case you can look at S#arp for already implemented repositories over NHibernate/FluentNHiberate.
发布评论
评论(1)
大多。我还没有完全阅读它,但我更喜欢 S#arp Architecture SaveOrUpdate 的想法(从 NHibernate 映射)实体,它比添加/删除更方便。但这可能只是个人喜好。在任何情况下,您都可以查看 S#arp,了解已经通过 NHibernate/FluentNHiberate 实现的存储库。
Mostly. I haven't read it fully, but I prefer S#arp Architecture idea of SaveOrUpdate (mapped from NHibernate) for entities, it's more convenient thant Add/Remove. But it may be just personal preference. In any case you can look at S#arp for already implemented repositories over NHibernate/FluentNHiberate.