Persist DataTable Primary key

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Isn't the primary key setting on a DataTable get persisted when I write it to
disk (using DataSet.WriteXml(...))?

If not, is there a work-around for this or do I set it everytime I load data
back into memory from the persisted XML file?

(C#, .NET Framework 2.0)

Thanks
PB.
 
I am writing the schema too with the "XmlWriteMode.WriteSchema" param. It
works for me.
 

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