I have gone back and forth on how to best achieve what I am trying to do. I worked the plugin route but I think the complexity of my changes are causing issues. This and the fatc I am still not up to speed. I decided to accomplish what I am tryign to do by actually updating the nopcommerce core features. I understand that this will make upgrades harder so I will revisit the pluggin method after I have a working soltuion.
I am adding a new feature called "Conditions" it works just like manufacturers. Products link to it just like that. I have everything working in the public store and I have the admin piece working as far as when you edit a product you have a tab for adding Conditions. So I can link products to conditions. The last problem I have is that when I try and manage Conditions I get an error:
Trying to map Nop.Core.Domain.Catalog.Condition to Nop.Admin.Models.Catalog.ConditionModel.
Exception of type 'AutoMapper.AutoMapperMappingException' was thrown.
I get this in the MappingExtensions.cs file. I assume I have missed something. It is being called from the list.cshtml view.
Any pointers?