Indexers with Typed DataSets

  • Thread starter Thread starter ArunPrakash
  • Start date Start date
A

ArunPrakash

Hi,
I have a typed DataSet which has only one table say ActionDetails.
It has a a primary key AccessNo of type string. I would like to add an
indexer which accepts a string for the AccessNo and returns the
corresponding row. Is there a way we can make xsd.exe automatically
do this for us? I have tried specifying the AccessNo as unique key. I
want xsd.exe to do this coz, if i write an indexer, and then do some
changes to the xsd file, the indexer i wrote is getting overwritten.

Any suggestions?

Thanks & Regards,
Arun Prakash. B
 
Hi,

No, there isn't a way.
However you could create code (using some sort of custom generator) by
yourself.
I am not saying that it is easy but it is feasible.
Take a look at CodeSmith
http://www.ericjsmith.net/codesmith/
I think it has a template that generate strong typed dataset code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top