PC Review


Reply
Thread Tools Rate Thread

Data Controls or Code

 
 
Steve Murphy
Guest
Posts: n/a
 
      26th Jan 2005
I'm fairly new to .NET, so bear with me if this question is naive. But do
most developers use the VS data controls for connections, adapters, and
datasets, or do you write all that code manually?

And if you use the controls, how do you wrap your connection and adapter
code so that you can easily switch between SQL Server, OLE DB, and ODBC?

I've been writing the code manually, and I'm comfortable with that, but I'm
wondering whether I'd be more productive using the Visual data controls.

Thanks,
Steve Murphy



 
Reply With Quote
 
 
 
 
William \(Bill\) Vaughn
Guest
Posts: n/a
 
      26th Jan 2005
There is no easy one-line answer for this question. While many developers
use the wizards and the code they generated, others (more than half) find
this code to be too simplistic for their specific requirements. In cases
where you need to write a front-end that can access several data sources, we
usually suggest creating a separate data access layer (tier) that handles
DBMS-specific operations and expose this class to the application. This way
you can (in theory) "simply" substitute another layer to access other DBMS
backends. I discuss this in depth in my books.

hth

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________

"Steve Murphy" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> I'm fairly new to .NET, so bear with me if this question is naive. But do
> most developers use the VS data controls for connections, adapters, and
> datasets, or do you write all that code manually?
>
> And if you use the controls, how do you wrap your connection and adapter
> code so that you can easily switch between SQL Server, OLE DB, and ODBC?
>
> I've been writing the code manually, and I'm comfortable with that, but
> I'm
> wondering whether I'd be more productive using the Visual data controls.
>
> Thanks,
> Steve Murphy
>
>
>



 
Reply With Quote
 
=?Utf-8?B?S3VydCBTY2hyb2VkZXI=?=
Guest
Posts: n/a
 
      26th Jan 2005
this is a very big issue for me. Which book do you recomend for what you just
described.
thankd you
kes

"William (Bill) Vaughn" wrote:

> There is no easy one-line answer for this question. While many developers
> use the wizards and the code they generated, others (more than half) find
> this code to be too simplistic for their specific requirements. In cases
> where you need to write a front-end that can access several data sources, we
> usually suggest creating a separate data access layer (tier) that handles
> DBMS-specific operations and expose this class to the application. This way
> you can (in theory) "simply" substitute another layer to access other DBMS
> backends. I discuss this in depth in my books.
>
> hth
>
> --
> ____________________________________
> William (Bill) Vaughn
> Author, Mentor, Consultant
> Microsoft MVP
> www.betav.com
> Please reply only to the newsgroup so that others can benefit.
> This posting is provided "AS IS" with no warranties, and confers no rights.
> __________________________________
>
> "Steve Murphy" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > I'm fairly new to .NET, so bear with me if this question is naive. But do
> > most developers use the VS data controls for connections, adapters, and
> > datasets, or do you write all that code manually?
> >
> > And if you use the controls, how do you wrap your connection and adapter
> > code so that you can easily switch between SQL Server, OLE DB, and ODBC?
> >
> > I've been writing the code manually, and I'm comfortable with that, but
> > I'm
> > wondering whether I'd be more productive using the Visual data controls.
> >
> > Thanks,
> > Steve Murphy
> >
> >
> >

>
>
>

 
Reply With Quote
 
Steve Murphy
Guest
Posts: n/a
 
      26th Jan 2005
> this is a very big issue for me. Which book do you recomend for what you
just
> described.
>
> > There is no easy one-line answer for this question. While many

developers
> > use the wizards and the code they generated, others (more than half)

find
> > this code to be too simplistic for their specific requirements. In cases
> > where you need to write a front-end that can access several data

sources, we
> > usually suggest creating a separate data access layer (tier) that

handles
> > DBMS-specific operations and expose this class to the application. This

way
> > you can (in theory) "simply" substitute another layer to access other

DBMS
> > backends. I discuss this in depth in my books.



I am also interested in your book. What is the title, and where is the best
place to get it?

Thanks,
Steve Murphy


 
Reply With Quote
 
William \(Bill\) Vaughn
Guest
Posts: n/a
 
      27th Jan 2005
See www.betav.com for details. Note there is a site there that looks up the
best price. http://www.bestwebbuys.com/books/sea...=1-893115-68-2

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________

"Steve Murphy" <(E-Mail Removed)> wrote in message
news:uat4st$(E-Mail Removed)...
>> this is a very big issue for me. Which book do you recomend for what you

> just
>> described.
>>
>> > There is no easy one-line answer for this question. While many

> developers
>> > use the wizards and the code they generated, others (more than half)

> find
>> > this code to be too simplistic for their specific requirements. In
>> > cases
>> > where you need to write a front-end that can access several data

> sources, we
>> > usually suggest creating a separate data access layer (tier) that

> handles
>> > DBMS-specific operations and expose this class to the application. This

> way
>> > you can (in theory) "simply" substitute another layer to access other

> DBMS
>> > backends. I discuss this in depth in my books.

>
>
> I am also interested in your book. What is the title, and where is the
> best
> place to get it?
>
> Thanks,
> Steve Murphy
>
>



 
Reply With Quote
 
Steve Murphy
Guest
Posts: n/a
 
      28th Jan 2005

"William (Bill) Vaughn" <(E-Mail Removed)> wrote:

> See www.betav.com for details. Note there is a site there that looks up

the
> best price. http://www.bestwebbuys.com/books/sea...=1-893115-68-2



Are the VB and C# books pretty much equivalent? Do they both cover layering
with the same depth?

Thanks,
Steve Murphy


 
Reply With Quote
 
William \(Bill\) Vaughn
Guest
Posts: n/a
 
      31st Jan 2005
The difference between the two books (if you ignore the language
differences) is in how ADO classic covered--it's not mentioned in the C#
book.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________

"Steve Murphy" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>
> "William (Bill) Vaughn" <(E-Mail Removed)> wrote:
>
>> See www.betav.com for details. Note there is a site there that looks up

> the
>> best price.
>> http://www.bestwebbuys.com/books/sea...=1-893115-68-2

>
>
> Are the VB and C# books pretty much equivalent? Do they both cover
> layering
> with the same depth?
>
> Thanks,
> Steve Murphy
>
>



 
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
Data and controls from dynamically added controls is rmoved on Submit David Hubbard Microsoft ASP .NET 2 17th Jan 2006 06:52 PM
mixing HTML controls with code behind controls Norm via DotNetMonster.com Microsoft ASP .NET 3 10th May 2005 03:39 PM
Code generated by the Data controls disappears dan Microsoft ADO .NET 3 23rd Aug 2004 04:56 PM
BUG: Text Box Controls Data Bound on Tab Controls Andrew McKendrick Microsoft VB .NET 7 1st Jul 2004 08:20 PM
How to use data controls to display data in data bound controls? yma Microsoft VB .NET 5 16th Dec 2003 09:09 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:19 AM.