If you’re making a module with a record class and you start seeing errors saying that there is no persister for the part record class you’re working on then you have probably made this simple mistake.
Once recently I started writing a quick module and thought to myself, I don’t need all of these extra namespaces, everything can just go in the general module namespace.
I set about coding and everything seemed to be going well but then I see this error:
No Persister for: SomePartRecord
You might also see this error if you accidentally made your record class in the root folder of the module and then dragged it over to the
The problem is that for Autofac to work it requires two criteria for it to be able to find your model:
- Ensure that the models (
ContentItemPartRecord) are in the
- Ensure that the
namespacewrapped around those classes ends in
If you fix these two items then you will also fix the
No Persister for: SomePartRecord error.