PC Review Forums Newsgroups Microsoft DotNet Microsoft ADO .NET Is it really wise to use strongly-typed datasets?

Reply

Is it really wise to use strongly-typed datasets?

 
Thread Tools Rate Thread
Old 11-09-2006, 05:48 PM   #1
Earl
Guest
 
Posts: n/a
Default Is it really wise to use strongly-typed datasets?


I've been mulling this question since I started using .Net in 2003. Seems
like a lot of effort to rearrange code to get the data layer out of the UI
layer. It seems like a nice quick-and-dirty solution, but long term, is it
really the wise thing to use drag-drop dataadapters??


  Reply With Quote
Old 12-09-2006, 05:04 AM   #2
Cor Ligthert [MVP]
Guest
 
Posts: n/a
Default Re: Is it really wise to use strongly-typed datasets?

Earl,

As long as you drag them on a component instead of a form (UI) there is no
any problem in 2003. A pity is that the most samples are draging them on
forms to show how it works and that is than taken as how to do.

This concept is not any more in version 2005.

I hope this gives an idea,

Cor

"Earl" <brikshoe@newsgroups.nospam> schreef in bericht
news:uikQfIc1GHA.3372@TK2MSFTNGP04.phx.gbl...
> I've been mulling this question since I started using .Net in 2003. Seems
> like a lot of effort to rearrange code to get the data layer out of the UI
> layer. It seems like a nice quick-and-dirty solution, but long term, is it
> really the wise thing to use drag-drop dataadapters??
>



  Reply With Quote
Old 12-09-2006, 01:34 PM   #3
Earl
Guest
 
Posts: n/a
Default Re: Is it really wise to use strongly-typed datasets?

Cor,

Please show me what you are talking about.


"Cor Ligthert [MVP]" <notmyfirstname@planet.nl> wrote in message
news:ORUsRBi1GHA.4108@TK2MSFTNGP04.phx.gbl...
> Earl,
>
> As long as you drag them on a component instead of a form (UI) there is no
> any problem in 2003. A pity is that the most samples are draging them on
> forms to show how it works and that is than taken as how to do.
>
> This concept is not any more in version 2005.
>
> I hope this gives an idea,
>
> Cor
>
> "Earl" <brikshoe@newsgroups.nospam> schreef in bericht
> news:uikQfIc1GHA.3372@TK2MSFTNGP04.phx.gbl...
>> I've been mulling this question since I started using .Net in 2003. Seems
>> like a lot of effort to rearrange code to get the data layer out of the
>> UI layer. It seems like a nice quick-and-dirty solution, but long term,
>> is it really the wise thing to use drag-drop dataadapters??
>>

>
>



  Reply With Quote
Old 12-09-2006, 02:05 PM   #4
Cowboy \(Gregory A. Beamer\)
Guest
 
Posts: n/a
Default Re: Is it really wise to use strongly-typed datasets?

The drag and drop stuff paints you into a box. Whether that box is good or
bad depends on your application, your coding style and standards, etc.

In 2005, you have TableAdapters. They work very similar to many of the code
gen products out there. Unfortuantely, they do not automagically set up
multi-table DataSets to auto-update. It could be done, based on
dependencies, but you will have to control this ... for now. Useful in
Enterprise Architecture? Sure, why not?

As for getting the data layer out of the UI, I am not sure what you mean. If
you mean the "all in one" objects in .NET 2.0, I agree with you. Can them.
If, instead, you are setting up your layers and using drag and drop, there
is no problem. The DataSets are set up as components, which allows you to
add to UI. The TableAdapeter makes things easier in some respects and harder
in others. I am not sure I am completely shot in the butt with them, but you
can still create bindable components no matter how you are filling the
DataSets.

In short
1. There is nothing wrong with DataSets
2. THere is nothing wrong with drag and drop, but you should understand what
is going on underneath the hood
3. I personally detest the "all in one" data objects. Your mileage may vary.
:-)

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
"Earl" <brikshoe@newsgroups.nospam> wrote in message
news:uikQfIc1GHA.3372@TK2MSFTNGP04.phx.gbl...
> I've been mulling this question since I started using .Net in 2003. Seems
> like a lot of effort to rearrange code to get the data layer out of the UI
> layer. It seems like a nice quick-and-dirty solution, but long term, is it
> really the wise thing to use drag-drop dataadapters??
>



  Reply With Quote
Old 12-09-2006, 05:18 PM   #5
Cor Ligthert [MVP]
Guest
 
Posts: n/a
Default Re: Is it really wise to use strongly-typed datasets?

Earl,

I hope you have 2005 than you can try this one.

http://www.vb-tips.com/dbpages.aspx...82-b1ed16424252


If you have 2003 than reply

Cor


"Earl" <brikshoe@newsgroups.nospam> schreef in bericht
news:%23nj8Nfm1GHA.1040@TK2MSFTNGP06.phx.gbl...
> Cor,
>
> Please show me what you are talking about.
>
>
> "Cor Ligthert [MVP]" <notmyfirstname@planet.nl> wrote in message
> news:ORUsRBi1GHA.4108@TK2MSFTNGP04.phx.gbl...
>> Earl,
>>
>> As long as you drag them on a component instead of a form (UI) there is
>> no any problem in 2003. A pity is that the most samples are draging them
>> on forms to show how it works and that is than taken as how to do.
>>
>> This concept is not any more in version 2005.
>>
>> I hope this gives an idea,
>>
>> Cor
>>
>> "Earl" <brikshoe@newsgroups.nospam> schreef in bericht
>> news:uikQfIc1GHA.3372@TK2MSFTNGP04.phx.gbl...
>>> I've been mulling this question since I started using .Net in 2003.
>>> Seems like a lot of effort to rearrange code to get the data layer out
>>> of the UI layer. It seems like a nice quick-and-dirty solution, but long
>>> term, is it really the wise thing to use drag-drop dataadapters??
>>>

>>
>>

>
>



  Reply With Quote
Old 12-09-2006, 09:23 PM   #6
Earl
Guest
 
Posts: n/a
Default Re: Is it really wise to use strongly-typed datasets?

That's really the sort of drag-drop thing I'm trying to get away from. Do
you know of an example that does this with a component vs. a form?

"Cor Ligthert [MVP]" <notmyfirstname@planet.nl> wrote in message
news:uhuZzbo1GHA.3656@TK2MSFTNGP04.phx.gbl...
> Earl,
>
> I hope you have 2005 than you can try this one.
>
> http://www.vb-tips.com/dbpages.aspx...82-b1ed16424252
>
>
> If you have 2003 than reply
>
> Cor
>
>
> "Earl" <brikshoe@newsgroups.nospam> schreef in bericht
> news:%23nj8Nfm1GHA.1040@TK2MSFTNGP06.phx.gbl...
>> Cor,
>>
>> Please show me what you are talking about.
>>
>>
>> "Cor Ligthert [MVP]" <notmyfirstname@planet.nl> wrote in message
>> news:ORUsRBi1GHA.4108@TK2MSFTNGP04.phx.gbl...
>>> Earl,
>>>
>>> As long as you drag them on a component instead of a form (UI) there is
>>> no any problem in 2003. A pity is that the most samples are draging them
>>> on forms to show how it works and that is than taken as how to do.
>>>
>>> This concept is not any more in version 2005.
>>>
>>> I hope this gives an idea,
>>>
>>> Cor
>>>
>>> "Earl" <brikshoe@newsgroups.nospam> schreef in bericht
>>> news:uikQfIc1GHA.3372@TK2MSFTNGP04.phx.gbl...
>>>> I've been mulling this question since I started using .Net in 2003.
>>>> Seems like a lot of effort to rearrange code to get the data layer out
>>>> of the UI layer. It seems like a nice quick-and-dirty solution, but
>>>> long term, is it really the wise thing to use drag-drop dataadapters??
>>>>
>>>
>>>

>>
>>

>
>



  Reply With Quote
Old 12-09-2006, 09:36 PM   #7
Marina Levit [MVP]
Guest
 
Posts: n/a
Default Re: Is it really wise to use strongly-typed datasets?

What would the difference be? Does it matter if the example shows drag and
dropping onto a form vs. a component? In the end, you are still drag and
dropping these objects and using the wizard - exact same thing.

"Earl" <brikshoe@newsgroups.nospam> wrote in message
news:e7QiPlq1GHA.772@TK2MSFTNGP05.phx.gbl...
> That's really the sort of drag-drop thing I'm trying to get away from. Do
> you know of an example that does this with a component vs. a form?
>
> "Cor Ligthert [MVP]" <notmyfirstname@planet.nl> wrote in message
> news:uhuZzbo1GHA.3656@TK2MSFTNGP04.phx.gbl...
>> Earl,
>>
>> I hope you have 2005 than you can try this one.
>>
>> http://www.vb-tips.com/dbpages.aspx...82-b1ed16424252
>>
>>
>> If you have 2003 than reply
>>
>> Cor
>>
>>
>> "Earl" <brikshoe@newsgroups.nospam> schreef in bericht
>> news:%23nj8Nfm1GHA.1040@TK2MSFTNGP06.phx.gbl...
>>> Cor,
>>>
>>> Please show me what you are talking about.
>>>
>>>
>>> "Cor Ligthert [MVP]" <notmyfirstname@planet.nl> wrote in message
>>> news:ORUsRBi1GHA.4108@TK2MSFTNGP04.phx.gbl...
>>>> Earl,
>>>>
>>>> As long as you drag them on a component instead of a form (UI) there is
>>>> no any problem in 2003. A pity is that the most samples are draging
>>>> them on forms to show how it works and that is than taken as how to do.
>>>>
>>>> This concept is not any more in version 2005.
>>>>
>>>> I hope this gives an idea,
>>>>
>>>> Cor
>>>>
>>>> "Earl" <brikshoe@newsgroups.nospam> schreef in bericht
>>>> news:uikQfIc1GHA.3372@TK2MSFTNGP04.phx.gbl...
>>>>> I've been mulling this question since I started using .Net in 2003.
>>>>> Seems like a lot of effort to rearrange code to get the data layer out
>>>>> of the UI layer. It seems like a nice quick-and-dirty solution, but
>>>>> long term, is it really the wise thing to use drag-drop dataadapters??
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



  Reply With Quote
Old 13-09-2006, 02:26 AM   #8
Cor Ligthert [MVP]
Guest
 
Posts: n/a
Default Re: Is it really wise to use strongly-typed datasets?

Earl,

Exactly as Marina says, however the advantage is that you can use the
created component class in all your forms as a kind of data acces layer.

Cor

"Earl" <brikshoe@newsgroups.nospam> schreef in bericht
news:e7QiPlq1GHA.772@TK2MSFTNGP05.phx.gbl...
> That's really the sort of drag-drop thing I'm trying to get away from. Do
> you know of an example that does this with a component vs. a form?
>
> "Cor Ligthert [MVP]" <notmyfirstname@planet.nl> wrote in message
> news:uhuZzbo1GHA.3656@TK2MSFTNGP04.phx.gbl...
>> Earl,
>>
>> I hope you have 2005 than you can try this one.
>>
>> http://www.vb-tips.com/dbpages.aspx...82-b1ed16424252
>>
>>
>> If you have 2003 than reply
>>
>> Cor
>>
>>
>> "Earl" <brikshoe@newsgroups.nospam> schreef in bericht
>> news:%23nj8Nfm1GHA.1040@TK2MSFTNGP06.phx.gbl...
>>> Cor,
>>>
>>> Please show me what you are talking about.
>>>
>>>
>>> "Cor Ligthert [MVP]" <notmyfirstname@planet.nl> wrote in message
>>> news:ORUsRBi1GHA.4108@TK2MSFTNGP04.phx.gbl...
>>>> Earl,
>>>>
>>>> As long as you drag them on a component instead of a form (UI) there is
>>>> no any problem in 2003. A pity is that the most samples are draging
>>>> them on forms to show how it works and that is than taken as how to do.
>>>>
>>>> This concept is not any more in version 2005.
>>>>
>>>> I hope this gives an idea,
>>>>
>>>> Cor
>>>>
>>>> "Earl" <brikshoe@newsgroups.nospam> schreef in bericht
>>>> news:uikQfIc1GHA.3372@TK2MSFTNGP04.phx.gbl...
>>>>> I've been mulling this question since I started using .Net in 2003.
>>>>> Seems like a lot of effort to rearrange code to get the data layer out
>>>>> of the UI layer. It seems like a nice quick-and-dirty solution, but
>>>>> long term, is it really the wise thing to use drag-drop dataadapters??
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off