I just recently started a new personal project, with a goal of having it able to scale from the start.
I got a suggestion for the structure, to create something like this:
<solution>
|-- project.client.sql.queries
|-- project.admin.sql.queries
|-- project.client.business.logic
|-- project.admin.business.logic
|-- project.client.web.ui (include references of the business logic + sql queries projects )
|-- project.admin.web.ui
This way, I would have everything structured and easy to follow for future expansion. My problem resides in the fact that I want to use only SQL express to start, and maybe move on to SQL server later when necessary.
So if I add the .mdf file into the app_code of the client side and create a .dbml (the linq structure file) how can I use linq into the sql querie ? I don't have access to the ConfigurationManager of the web.ui project. Do I have to include a reference into the sql queries project just as I did for the web.ui ? Othewise linq doesn't seem to work properly.
I'm looking mostly for the best practices, since I've been told that code behind should not include any business logic or sql queries - they should have their own class libraries.