Re: DAL or BLL? How to implement objects
- From: "sloan" <sloan@xxxxxxxxx>
- Date: Tue, 3 Oct 2006 10:16:09 -0400
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/BOAGag.asp
Find the heading labeled
Deploying Business Entities
(about 2/3's the way down)
by defining custom entity classes in a common assembly to be deployed on
multiple tiers.
There needs to be an assembly that lives outside of the tiers.
This is where you'd but your Company object.
Also see my blog at:
http://sholliday.spaces.live.com/?_c11_blogpart_blogpart=blogview&_c=blogpart&partqs=amonth%3d5%26ayear%3d2006
I have a downloadable example. I chose the #1 (in the "Deploying Business
Entities" section)
The entire microsoft article (above url) is good to read.
"Nemisis" <darrens2005@xxxxxxxxxxx> wrote in message
news:1159882383.069972.30460@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi everyone,
i am creating my own DAL and BLL, and i am not using typed datasets.
My problem is that in my DAL i have a Save method whos signiture looks
something like:
Save(ID as integer, name as string, .......
Within my BLL, i call then same method (the business layer version)
something like this
Save (pCompany as company)
The latter of the two seems better to me as u dont have to write out
all the variables, and a problem could occur if someone passed in a
value of the wrong type.
I think it would be alot better to have both the DAL and BLL signiture
look like
Save (pCompany as company)
If i wanted to do this, were would i store the business objects? The
DAL?? The BLL?? Or do i even create a separate class library that
both the DAL and BLL must reference??
Also, if i do this, i will have to change my DAL to return objects,
instead of returning DataRows, DataTables and DataSets, like it does
at the moment, is this right? i am not merging the two by accident am
i??
I do not want to using any of the microsoft code that you can download,
but if someone could please let me know about the above, i would be
very greatful.
Cheers
.
- Follow-Ups:
- Re: DAL or BLL? How to implement objects
- From: Mikeon
- Re: DAL or BLL? How to implement objects
- From: Nemisis
- Re: DAL or BLL? How to implement objects
- From: Nemisis
- Re: DAL or BLL? How to implement objects
- References:
- DAL or BLL? How to implement objects
- From: Nemisis
- DAL or BLL? How to implement objects
- Prev by Date: RSS Feeds
- Next by Date: Re: C# vs VB.Net
- Previous by thread: Re: DAL or BLL? How to implement objects
- Next by thread: Re: DAL or BLL? How to implement objects
- Index(es):