PC Review


Reply
Thread Tools Rate Thread

Code reuse and DataSet generation from XML schema

 
 
Vagif Abilov
Guest
Posts: n/a
 
      1st Jan 2006
Hello,

I have several strongly typed DataSet classes that encapsulate the same
table. My challenge is that I can't reuse the wrapper code for this table
generated by Visual Studio, because although wrapper classes represent
identical structures, they have different identities.

If I have two strongly typed DataSets (DataSet1 and DataSet2) and both of
them wrap a table MyTable, VisualStudio duplicate the code in .cs files,
i.e. I get DataSet1.MyTableRow class and DataSet2.MyTableRow, so it is not
possible to have a common method DoSomethingWithMyTableRow(MyTableRow row) -
I have two different identities for MyTable row structures.

Does anyone know an approach for code reuse in such cases?

Thanks in advance

Vagif Abilov
Oslo Norway


 
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
DataSet Xml Generation Does Not Honor Format of Supplied Schema =?Utf-8?B?R2FycmVr?= Microsoft ADO .NET 0 24th Apr 2006 05:14 PM
Updating typed dataset schema from code when a column is deleted =?Utf-8?B?amVyZW15bTEyMzQ=?= Microsoft ADO .NET 0 24th May 2005 03:22 PM
code generation for a property of type DataSet Ralf Hoeppner Microsoft C# .NET 1 27th Oct 2004 02:09 PM
code generation for a property of type DataSet Ralf Hoeppner Microsoft Dot NET Framework 1 27th Oct 2004 02:09 PM
ANN: Strong typed dataset schema generation template Miha Markic Microsoft ADO .NET 0 7th Jan 2004 04:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:21 AM.