PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

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

 
 
Dhananjay
Guest
Posts: n/a
 
      18th Dec 2006
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

 
Reply With Quote
 
 
 
 
RobinS
Guest
Posts: n/a
 
      18th Dec 2006
First, don't post a C# question in a VB newsgroup.
Second, check out Rockford Lhatka's books.

Robin S.
---------------------------
"Dhananjay" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
raibeart
Guest
Posts: n/a
 
      18th Dec 2006
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:
> 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


 
Reply With Quote
 
raibeart
Guest
Posts: n/a
 
      18th Dec 2006
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:
> 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


 
Reply With Quote
 
Bruce W. Darby
Guest
Posts: n/a
 
      19th Dec 2006
Dhananjay,

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

http://msdn.microsoft.com/library/de...sslayer_vb.asp

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

"Dhananjay" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
raibeart
Guest
Posts: n/a
 
      19th Dec 2006
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/de...sslayer_vb.asp
>
> The tutorial is written for VB, but most of it should simply be syntax
> changes.
>
> "Dhananjay" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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
> >


 
Reply With Quote
 
Bruce W. Darby
Guest
Posts: n/a
 
      20th Dec 2006
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

"raibeart" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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/de...sslayer_vb.asp
>>
>> The tutorial is written for VB, but most of it should simply be syntax
>> changes.
>>
>> "Dhananjay" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> > 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
>> >

>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
business layer, data access layer , presentation layer for asp.net using C#.net Dhananjay Microsoft C# .NET 2 19th Dec 2006 09:23 AM
business layer, data access layer , presentation layer for asp.net using C#.net Dhananjay Microsoft ASP .NET 1 18th Dec 2006 11:35 PM
Data Access Layer and Business Logic Layer in ASP.NET 2.0 =?Utf-8?B?YXNhZA==?= Microsoft ADO .NET 1 31st Aug 2006 01:36 PM
How to distingusih Business Layer and Data Access Layer requirements pratham Microsoft C# .NET 4 31st Aug 2006 07:18 AM
Data Access Layer and Business Entity Layer =?Utf-8?B?UnlhbiBTaGF3?= Microsoft ADO .NET 0 24th Feb 2004 02:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:27 PM.