Home All Groups Group Topic Archive Search About

business layer, data access layer , presentation layer for asp.net using C#.net

Author
18 Dec 2006 4:02 PM
Dhananjay
hello everyone
i have got a problem i want to design business layer, data access layer
, presentation layer for asp.net using C#.net , can anyone help me to
solve this problem. i want some resources to complete this. i am trying
very hard. Do you have any idea about website or any links where i can
find some examples based on this concept.can you plz provide me , its
urgent
i want this solution with an example, if u have plz provide me.

Thanks in advance
Dhananjay

Author
18 Dec 2006 4:55 PM
RobinS
First, don't post a C# question in a VB newsgroup.
Second, check out Rockford Lhatka's books.

Robin S.
---------------------------
Show quoteHide quote
"Dhananjay" <dhananjay***@yahoo.co.in> wrote in message
news:1166457759.182775.67700@80g2000cwy.googlegroups.com...
> hello everyone
> i have got a problem i want to design business layer, data access
> layer
> , presentation layer for asp.net using C#.net , can anyone help me to
> solve this problem. i want some resources to complete this. i am
> trying
> very hard. Do you have any idea about website or any links where i can
> find some examples based on this concept.can you plz provide me , its
> urgent
> i want this solution with an example, if u have plz provide me.
>
> Thanks in advance
> Dhananjay
>
Author
18 Dec 2006 11:45 PM
raibeart
Regardless of VB or C#, did you bother trying GOOGLE?  Sounds like the
problem is someone told you to do something that you have no idea what
it even means.

Try Model View Presenter, Model View Controller,  asp.net Facade
pattern

The book suggestion is also valid as it is written for both VB and C#.
You just select your poison when you buy it.  But it is Business
Objects, not data objects.

What are you defining a business and data layer as?  From my
experience, 95% of people that talk about it, know the buzz words, but
do not know what they mean or how to do them.  And, creating strongly
typed datasets in VS is not a data layer, just to give you a hint.

I have written what I consider a real data layer and business layer in
both VB and C#.  I have yet to find a good model of any of the 3 I told
you about above that was presented to do anything other than display
data.  So I have to say, I lack what most would consider a "real"
presentation layer that is independent of the form/view.

I am working through the Business Objects for VB book currently to see
if I can get past that problem.

Oh, another source, is the microsoft patterns and practices web site.
If you download and use the enterprise library, you will have 1/3 of
the data layer done for you.

Good luck.  You are going to need it.

Dhananjay wrote:
Show quoteHide quote
> hello everyone
> i have got a problem i want to design business layer, data access layer
> , presentation layer for asp.net using C#.net , can anyone help me to
> solve this problem. i want some resources to complete this. i am trying
> very hard. Do you have any idea about website or any links where i can
> find some examples based on this concept.can you plz provide me , its
> urgent
> i want this solution with an example, if u have plz provide me.
>
> Thanks in advance
> Dhananjay
Author
18 Dec 2006 11:46 PM
raibeart
Regardless of VB or C#, did you bother trying GOOGLE?  Sounds like the
problem is someone told you to do something that you have no idea what
it even means.

Try Model View Presenter, Model View Controller,  asp.net Facade
pattern

The book suggestion is also valid as it is written for both VB and C#.
You just select your poison when you buy it.  But it is Business
Objects, not data objects.

What are you defining a business and data layer as?  From my
experience, 95% of people that talk about it, know the buzz words, but
do not know what they mean or how to do them.  And, creating strongly
typed datasets in VS is not a data layer, just to give you a hint.

I have written what I consider a real data layer and business layer in
both VB and C#.  I have yet to find a good model of any of the 3 I told
you about above that was presented to do anything other than display
data.  So I have to say, I lack what most would consider a "real"
presentation layer that is independent of the form/view.

I am working through the Business Objects for VB book currently to see
if I can get past that problem.

Oh, another source, is the microsoft patterns and practices web site.
If you download and use the enterprise library, you will have 1/3 of
the data layer done for you.

Good luck.  You are going to need it.
Dhananjay wrote:
Show quoteHide quote
> hello everyone
> i have got a problem i want to design business layer, data access layer
> , presentation layer for asp.net using C#.net , can anyone help me to
> solve this problem. i want some resources to complete this. i am trying
> very hard. Do you have any idea about website or any links where i can
> find some examples based on this concept.can you plz provide me , its
> urgent
> i want this solution with an example, if u have plz provide me.
>
> Thanks in advance
> Dhananjay
Author
19 Dec 2006 6:08 AM
Bruce W. Darby
Dhananjay,

Take a look here. There is a complete set of tutorials discussing your
issue.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspnettut/html/aspnet_tutorial01_dataaccesslayer_vb.asp

The tutorial is written for VB, but most of it should simply be syntax
changes.

Show quoteHide quote
"Dhananjay" <dhananjay***@yahoo.co.in> wrote in message
news:1166457759.182775.67700@80g2000cwy.googlegroups.com...
> hello everyone
> i have got a problem i want to design business layer, data access layer
> , presentation layer for asp.net using C#.net , can anyone help me to
> solve this problem. i want some resources to complete this. i am trying
> very hard. Do you have any idea about website or any links where i can
> find some examples based on this concept.can you plz provide me , its
> urgent
> i want this solution with an example, if u have plz provide me.
>
> Thanks in advance
> Dhananjay
>
Author
19 Dec 2006 2:20 PM
raibeart
Bruce,

What you did not bother to tell the poor guy is that it is using
stronly typed datasets.

If he does that and the location of the data changes, he gets to
recreate his entire "data layer."

That is just one of the reasons that I do not consider strongly typed
dataset as a REAL data layer.
You should not have to recreate the entire thing if the location of you
data source changes.

So why not do it correctly the first time instead of doing it over and
over again?

Do stored procedures in the SQL database for CRUD (CREATE, READ,
UPDATE, DELETE).  (I am assuming that he is using a real database at
this point.)

Use the enterprise library to get the methods you need to execute the
stored procedures and get the data into either a dataset or datareader.

Write a class that encapsulates this functionality that the business
layer can call WITHOUT knowing anything about the database.

Now, you have a real data layer and not a hack job.  Now you also see
why I consider the enterprise library to only be 1/3 of the data layer.

Robert

P.S.

There are also video presentations of what you gave to him, and more,
on the Microsoft site with code examples in both VB and C#.



Bruce W. Darby wrote:
Show quoteHide quote
> Dhananjay,
>
> Take a look here. There is a complete set of tutorials discussing your
> issue.
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspnettut/html/aspnet_tutorial01_dataaccesslayer_vb.asp
>
> The tutorial is written for VB, but most of it should simply be syntax
> changes.
>
> "Dhananjay" <dhananjay***@yahoo.co.in> wrote in message
> news:1166457759.182775.67700@80g2000cwy.googlegroups.com...
> > hello everyone
> > i have got a problem i want to design business layer, data access layer
> > , presentation layer for asp.net using C#.net , can anyone help me to
> > solve this problem. i want some resources to complete this. i am trying
> > very hard. Do you have any idea about website or any links where i can
> > find some examples based on this concept.can you plz provide me , its
> > urgent
> > i want this solution with an example, if u have plz provide me.
> >
> > Thanks in advance
> > Dhananjay
> >
Author
20 Dec 2006 2:16 AM
Bruce W. Darby
Raibeart,

Allow me to preface my following comments with the information that I am a
totally fledgling hobbyist programmer at the moment. I am attempting to
learn this language on my own and have yet to advance my programming
capabilities to the point where I would recognize a 'strongly typed'
anything other than to assume it's something in BOLD TEXT. hehehe

My apologies for not being more forthcoming with any other information, but
he had asked for a nudge in the proper direction and I remembered those
tutorials from when I first installed the software and noting them on the
News portion of the start page.

Secondly, I thank you for the information that you have given me. Should I
advance to the point where I can use the information you have provided, I
shall be that much further along than I am at this point. And he should be
able to see your warnings to me at this same time, so he has garnered double
the information.

Bruce

Show quoteHide quote
"raibeart" <raibe***@gmail.com> wrote in message
news:1166538033.355601.318530@48g2000cwx.googlegroups.com...
> Bruce,
>
> What you did not bother to tell the poor guy is that it is using
> stronly typed datasets.
>
> If he does that and the location of the data changes, he gets to
> recreate his entire "data layer."
>
> That is just one of the reasons that I do not consider strongly typed
> dataset as a REAL data layer.
> You should not have to recreate the entire thing if the location of you
> data source changes.
>
> So why not do it correctly the first time instead of doing it over and
> over again?
>
> Do stored procedures in the SQL database for CRUD (CREATE, READ,
> UPDATE, DELETE).  (I am assuming that he is using a real database at
> this point.)
>
> Use the enterprise library to get the methods you need to execute the
> stored procedures and get the data into either a dataset or datareader.
>
> Write a class that encapsulates this functionality that the business
> layer can call WITHOUT knowing anything about the database.
>
> Now, you have a real data layer and not a hack job.  Now you also see
> why I consider the enterprise library to only be 1/3 of the data layer.
>
> Robert
>
> P.S.
>
> There are also video presentations of what you gave to him, and more,
> on the Microsoft site with code examples in both VB and C#.
>
>
>
> Bruce W. Darby wrote:
>> Dhananjay,
>>
>> Take a look here. There is a complete set of tutorials discussing your
>> issue.
>>
>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspnettut/html/aspnet_tutorial01_dataaccesslayer_vb.asp
>>
>> The tutorial is written for VB, but most of it should simply be syntax
>> changes.
>>
>> "Dhananjay" <dhananjay***@yahoo.co.in> wrote in message
>> news:1166457759.182775.67700@80g2000cwy.googlegroups.com...
>> > hello everyone
>> > i have got a problem i want to design business layer, data access layer
>> > , presentation layer for asp.net using C#.net , can anyone help me to
>> > solve this problem. i want some resources to complete this. i am trying
>> > very hard. Do you have any idea about website or any links where i can
>> > find some examples based on this concept.can you plz provide me , its
>> > urgent
>> > i want this solution with an example, if u have plz provide me.
>> >
>> > Thanks in advance
>> > Dhananjay
>> >
>