Orchard 提示 No persister for: SomePartRecord

Orchard版本:Orchard-1.10.3

No persister for:没有持久化的意思

产生原因:

Orchard 在使用 Autofac 进行依赖注入时,对程序集进行扫描,而扫描的几个文件夹名称固定。

解决方案:

Ensure that the models (ContentItemPart and ContentItemPartRecord) are in the .Models folder
Ensure that the namespace wrapped around those classes ends in .Models

解决方案连接 :https://articles.runtings.co.uk/2015/10/orchard-cms-quick-tipno-persister-for.html

原文地址:https://www.cnblogs.com/challengesoflife/p/11655269.html