S
Stanley
Hello all,
I have a bit of a dilema with building a site in VB.NET. Well it really
isn't with VB but instead with my architecture. When building my site I
have all of the controls and such in the ASPX pages which all inherit
from my BasePage class. This allows for my entire site to have the same
layout and I need only to add different controls for each page and not
worry about the layout. That part is not a problem and I believe my
solution works really well.
My problem lies more with the idea of getting data, updating data and
such. I have a data access layer that takes in things like SProc names
and parameters to do all the actual work. I also have my custom
collections that implement IList so that I can work with my collections
as specific objects.
But where do I put the code to make my collections and my DAL to talk
to each other? Should I create a seperate BLL set of classes? Should I
change my DAL to work specifically for this app? Or should the code be
in my custom classes? This has always bothered me as to where it really
should be. I have tried multiple version and never seem to come up with
a concrete answer.
I am not sure my site really needs something as full blown as Rocky
Lhotka(http://www.lhotka.net/ArticleIndex.aspx?area=CSLA .NET) has
come up with but should I do it that way anyway?
I am open to any ideas and any examples would be great. Not really
looking for source code just the pros and cons to each type of
situation. Thanks.
-Stanley
BasePage.vb
|
|
Default.aspx
|
|
Default.aspx.vb
|
|
[whatevercollection].vb
|
|
??????????? BLL?
|
|
dal.vb
I have a bit of a dilema with building a site in VB.NET. Well it really
isn't with VB but instead with my architecture. When building my site I
have all of the controls and such in the ASPX pages which all inherit
from my BasePage class. This allows for my entire site to have the same
layout and I need only to add different controls for each page and not
worry about the layout. That part is not a problem and I believe my
solution works really well.
My problem lies more with the idea of getting data, updating data and
such. I have a data access layer that takes in things like SProc names
and parameters to do all the actual work. I also have my custom
collections that implement IList so that I can work with my collections
as specific objects.
But where do I put the code to make my collections and my DAL to talk
to each other? Should I create a seperate BLL set of classes? Should I
change my DAL to work specifically for this app? Or should the code be
in my custom classes? This has always bothered me as to where it really
should be. I have tried multiple version and never seem to come up with
a concrete answer.
I am not sure my site really needs something as full blown as Rocky
Lhotka(http://www.lhotka.net/ArticleIndex.aspx?area=CSLA .NET) has
come up with but should I do it that way anyway?
I am open to any ideas and any examples would be great. Not really
looking for source code just the pros and cons to each type of
situation. Thanks.
-Stanley
BasePage.vb
|
|
Default.aspx
|
|
Default.aspx.vb
|
|
[whatevercollection].vb
|
|
??????????? BLL?
|
|
dal.vb