We are currently in the process of moving from Self-Servicing templates across to Adapter templates (to allow us to enforce a truer MVC design pattern). We are trying to establish the best way to configure LLBLGen so the code generates into the namespaces and projects as we would like...
Here is what we are attempting to achieve:
Business Layer
Ideally, we would like the Database Generic code to generate into a project with the name (and namespace, and physical directory) "Business". As the name suggests, this would contain all the business logic for the application.
By having the Database Generic code and the Business Logic share the same project, it allows the entities to be extended with custom Business layer objects, as well as the Business layer objects being able to use the entities. (This would not be possible unless the projects were shared - as circular project references are not allowed).
DataAccess Layer
We would like the Database Specific layer to generate into its own folder (and project, and namespace) so as to cleanly separate it from the business layer. The business layer can then reference this, so that it can access the database Adapter code as needed.
Question
Is there any way to configure LLBL to generate as above – or is there a good reason that it shouldn’t? Looking it the current options available, it seems that it is only possible to generate the database specific and the database generic code into subdirectories of the same folder (and have the same root namespace). This may be a workable solution, but we would like to try to avoid it, as it would result in the Database Specific code being part of the Business namespace, which conceptually I don’t think it should be.
Any advice appreciated