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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guest's Avatar

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


    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: Lars.Knox@imc.w ellsfargo.com


Working...