What exactly is “persistence ignorance”?

后端 未结 8 2140
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-01 05:01

Persistence ignorance is typically defined as the ability to persist & retrieve standard .NET objects (or POCOs if you really insist on giving them a name). And a seemin

8条回答
  •  执念已碎
    2020-12-01 06:04

    While there may be certain minor constraints that any given persistence-ignorance framework requires, persistence-ignorance nevertheless remains in place.

    While a class in your domain model (transparently persisted with NHibernate) must have a no-arguments constructor so that it can be constructed "dynamically," it is not required to have a certain base class dictated by the framework nor is it required to have or override certain framework-specified methods.

提交回复
热议问题