Hello all!
First let start off with an appology for this being a total newbie issue. i am fairly new at the whole OOP thing as well so please take it easy on me as i still dont have a lot of the jargon down pat.
i have been forced into writing classic VB code (and VBA) and classic ASP using VBScript for the whole of my programming life due to me coming in on a massive ongoing project that was started this way. i have always been a fan of the OO style of programming and have pushed for this way to be taken up for future projects. the time is finally here where i was given the task to deveop a whole new approach for all future products (as well as re-writing our existing ones using the new framework i develop). i quickly realized that LLBLGen Pro was the answer to at least our DAL, which up until this point has been almost completly defined using SPROCS.(which of course contain most of the BL as well).
Anyway, now that the backgroud stuff is out of the way, let me try to get my question out in a semi-coherent manner.
The Facts:
.NET 2.0
VB
ASP .NET
LLBLGen Pro 2
Adapter Template (whatever shipped w/ LLBLGen)
First i am having a problem in the area of BLL seperation. i have read numerous threads and this seems to be a quite common painpoint for many a developer. i still am having a time wrapping my head around it all.
what i need is to develop a robust data solution for our database. obviously LLBLGen does a great job at this. i am just trying to figure out how to build upon it in a good solid way. this will be the backbone for quite a few different applications that all have the database in common. i could of course create several different LLBLgen projects but that would defeat the purpose of using it to begin with.
i have already decided that i think the Adapter approach is the way to go as that seems to decouple the persitance from the "business objects". what i have a problem with is, where do i implment my code? it is stated in the docs to use partial classes for .NET 2.0 is there an automated way to do this or do i have to do it by hand?
what i need to end up with is a common (to all apps that interface it) interface (dont know it thats the correct term) that my applications all share to access the data.
from what i have read it sounds like a perfect example of the Manager Templates, but then again i have only heard them referenced and no actual tak of what they do. i have seen where to get them but cannot find anythihng on how to use them. Maybe someone could point me in the right direction with these.
the application i am building does quite a bit of searches which will require the proper predicate expressions. i am hoping to have a layer that will alow me to have methods like customer.getCustomersByLastName(szLastName) that will return a collection of customer entities.
i have no problem with all layers being LLBLGen "aware" as some others have mentioned. i nfact i think it would be a wate of time to create different object entities when they are so eleganlty created for you. i just need a way to encapsulate the business logic and expand on what is provided.
I thank you all in advance, i look forward to hearing any comments you have.