G
Guest
I'd appreciate some help from any architectural gurus out there.I'm creating a web app with 3 tiers,
A presentation layer which is an aspnet application.
A business object layer which is a group of custom classes thatmap to my database entities, items of each type, for example'clientitem' and collection classes that are collections ofitems, for example 'clientcollection'.
A data access layer that uses a component class connected to asql database and uses commands, adapters and datasets to returnmy data to the business object layer.
I've referenced the bol in my aspnet app and get some quiteuseful abstraction from the database using this method, myaspnet app is completely ignorant of any information regardingthe database, field names, anything really.
I've referenced my dal app in my bol app and what I am finding isthat I am now required to tie the business object layer to thedatabase layer, field names etc, I could use field positionnumbers/ordingals but I find this unreliable, confusing andpossibly troublesome, I don't want to tie my bol to my dal, howcan I avoid this? Or am I just dreaming, I realise the rubberhas got to touch the road somewhere, the only thing I can thinkof is referencing back to my bol app from my dal app(this wouldallow me to return native bol app entities) but that sort ofnegates having seperate apps for them in the first place.
Basically I'm returning datasets or results as parameters fromthe dal to the bol, then map them into the bol apps entities,how would you guys achive this with some level ofabstraction....?
regards,
JCC.
User submitted from AEWNET (http://www.aewnet.com/)
A presentation layer which is an aspnet application.
A business object layer which is a group of custom classes thatmap to my database entities, items of each type, for example'clientitem' and collection classes that are collections ofitems, for example 'clientcollection'.
A data access layer that uses a component class connected to asql database and uses commands, adapters and datasets to returnmy data to the business object layer.
I've referenced the bol in my aspnet app and get some quiteuseful abstraction from the database using this method, myaspnet app is completely ignorant of any information regardingthe database, field names, anything really.
I've referenced my dal app in my bol app and what I am finding isthat I am now required to tie the business object layer to thedatabase layer, field names etc, I could use field positionnumbers/ordingals but I find this unreliable, confusing andpossibly troublesome, I don't want to tie my bol to my dal, howcan I avoid this? Or am I just dreaming, I realise the rubberhas got to touch the road somewhere, the only thing I can thinkof is referencing back to my bol app from my dal app(this wouldallow me to return native bol app entities) but that sort ofnegates having seperate apps for them in the first place.
Basically I'm returning datasets or results as parameters fromthe dal to the bol, then map them into the bol apps entities,how would you guys achive this with some level ofabstraction....?
regards,
JCC.
User submitted from AEWNET (http://www.aewnet.com/)