I'm having a bit of an problem wrapping my head around the task at hand or more so the best way to do it that is.
Take a sample project:
- UI
- DATA (Assembly)
- SERVICE (Assemblies) built onto DATA
Do I put all mappings in the DATA assembly or should I separate them out into the SERVICE assemblies? Or should/can I get rid of the DATA assembly altogether?
This question stems from having an nHibernate static helper class in either the DATA assembly or a UTILITY assembly which is then referenced from the SERVICE assemblies etc.
Project Reference direction
UI > DATA / UTILITY
DATA / UTILITY < SERVICES
UI > SERVICES
Am I just making this over complicated or doing it wrong/right?
Note:
I mentioned Fluent as while I know you can use the config.xml to reference assemblies to map I'm not quite sure how to do that with Fluent without actually referencing project assemblies - which gets me caught in a circular reference loop.