PC Review


Reply
Thread Tools Rate Thread

Cast weakly typed DataSet to a strongly typed dataset???

 
 
Guest
Posts: n/a
 
      18th Sep 2003

We have an object factory that returns weakly typed
datasets (just plain ol' DataSet's). I need to cast it, or
transform it, or map it to a strongly typed dataset.

There's an old adage I heard from a Microsoft developer a
long time ago: If it's taking more than 10 lines of code,
then you are doing it wrong.

Is there an *easy* way to do this in a *generic* way? I
have been experimenting with serveral techniques and
unless I write a very detailed routine for each conversion
from a DataSet to a strongly typed dataset (an XSD file in
our project) I can't figure it out. I have about 750 of
these routinues to write which is why I need a generic
approach.

Much thanks to the dot NET guru who can solve this dilemma!

Lars

email: (E-Mail Removed)


 
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
more about strongly typed DataSet and untyped dataset Tony Johansson Microsoft C# .NET 0 4th Oct 2010 12:17 PM
How to generate a strongly typed dataset from untyped dataset? =?Utf-8?B?UGV0ZXI=?= Microsoft VB .NET 0 24th Aug 2007 07:08 AM
Unable to cast object of type 'System.Data.DataSet' to Typed DataSet Optimus Microsoft VB .NET 1 31st Jan 2006 06:26 AM
Re: Casting from Generic DataSet to strongly Typed DataSet Sahil Malik Microsoft ADO .NET 0 7th Mar 2005 07:38 PM
Convert regular DataSet to strongly typed DataSet moondaddy Microsoft ADO .NET 3 20th Apr 2004 08:37 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:35 AM.