Hi again,
The problem was that the RepositoryBase class was not being registered in MEF. Please remember that to export a type in MEF you need to:
As a side note, this registration is not required when the project is loaded as a module by Prism, as it automatically registers the assembly to be inspected by MEF.
I hope this helps,
Damian Cherubini
http://blogs.southworks.net/dcherubini
The problem was that the RepositoryBase class was not being registered in MEF. Please remember that to export a type in MEF you need to:
- Add the Export attribute to the type you want to export,
-
And register the assembly containing the type so that MEF inspects it for any classes that need to be exported.
this.AggregateCatalog.Catalogs.Add(new AssemblyCatalog(typeof(Repository.RepositoryBase).Assembly));
I hope this helps,
Damian Cherubini
http://blogs.southworks.net/dcherubini