I have the following solution project structure:
Application.Core.Entities
Application.Xtend.CustomerName.Entities
In the Core project I have an entity Customer defiend. In the XTend project, I have an entity defined that subclasses Customer. The idea here is that customer X can extended our bases classes to add extra fields or what not.
I am attempting to map this relationship in NHibernate. Using Fluent NHibernate I was able to
generate this mapping. But NHib throws the following error:
NHibernate.MappingException: persistent class Application.Entites.xCustomer, Application.Core.Entites not found ---> System.TypeLoadException: Could not load type 'Application.Entites.xCustomer' from assembly 'Application.Core.Entites, Version=
1.0.0.0, Culture=neutral, PublicKeyToken=null'..
Which makes sense xCustomer is not defiend in the Core lib.
Is it possible to span different assemblies like this? Am I approaching the problem wrong?
--
"The explanation requiring the fewest assumptions is most likely to be correct."
- Occam's Razor
http://en.wikipedia.org/wiki/Occam's_Razor