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.
 
Back
Top