* XmlDataDocument.cs (StringToObject): Modify
XmlConvert.ToDateTime to use XmlDateTimeSerializationMode, as the
default ToDataTime method id obsolete.
svn path=/trunk/mcs/; revision=68579
* Test/System.Xml/XmlDataDocumentTest2.cs : Test if DataSet schema with whitespace
characters are saved and loaded correctly, Test if null values are
correctly saved and loaded, Test if creating a row in Dataset is
reflected in the document.
* Test/System.Data/DataSetTest2.cs : Test if ConstraintName with whitespace is saved
correctly.
* System.Xml/XmlDataDocument.cs :
- Use encoded names for DataSet schema.
- StringToElement : Return 'null' if the value is empty string
or null.
- OnDataTableRowAdded : Add the row elements to the tablenode if
they are not already added.
* System.Data/XmlHelper.cs : A helper class for encoding/decoding schema names.
Caches the Schema names to minimize encoding/decoding operations and
duplicate strings created.
* System.Data/XmlSchemaWriter :
- Use XmlHelper for encoding/decoding schema names.
- Encode ConstraintNames when writing as xml.
* System.Data/DataSet.cs
* System.Data/XmlDataReader.cs
* System.Data/XmlDataInferenceLoader.cs
* System.Data/XmlSchemaDataImporter.cs
- Use XmlHelper for encoding/decoding schema names.
* System.Data/DataTableCollections : Minor code refactor.
* System.Data/DataRow.cs : Create XmlElement only if required.
svn path=/trunk/mcs/; revision=59624
* XmlDataDocument.cs :
- It was not handling SimpleContent. This fixes bug #56951.
- It was not converting values into DataType of the DataColumn.
svn path=/trunk/mcs/; revision=28931
* XmlDataDocument.cs :
Removed MonoTODO from implemented members and private members.
Updated OnNodeRemoved(), OnDataRowDeleted() and OnDataTableRollback()
to match with current implementation.
svn path=/trunk/mcs/; revision=27529
* XmlDataDocument.cs : Removed row-element mapping. Just use new
DataRow.DataElement property. Added/removed some comments.
svn path=/trunk/mcs/; revision=27251
* XmlDataDocument.cs : Radical design change.
- GetElementFromRow() must return "detached" element, even if it is
not added to table's Rows.
- Introduced XmlDataElement class to map element (this class itself)
and DataRow _always_ . It is impossible to map *all* DataRows
to/from elements only in XmlDataDocument API, since DataRow can
be created separate from it (i.e. by table.NewRow()).
- Removed unreliable GetElementsByTagName() dependency from most
of the code, since users might create elements that has the same
name of any tables (that is possible especially unmapped elements).
- Adding/Removing delegates on every event action is unnecessary.
Use just flags.
- For Load(), just using base.Load() will do most of the job.
- Attributes and SimpleContents are not handled properly.
"Removed" and "Rollback" events are still TODO.
svn path=/trunk/mcs/; revision=27194
* XmlDataDocument.cs:
Load() should not read xml multiple time nor expect BaseURI (and it
indicates the resource location is readable).
Simplified event handling logic, and fixed missing event removal.
Quick hack to avoid new XmlDataDocument(DataSet ds).Load ().
Enabled CreateNavigator() that was commented out.
svn path=/trunk/mcs/; revision=25376
NET_1_1.
* DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
* XmlDataDocument.cs (BaseURI):
(InnerXml):
(IsReadOnly):
(this):
(LocalName):
(Name):
(OwnerDocument):
(WriteContentTo):
(WriteTo): Removed, these do not need to be redefined, as
they are inherited from XmlDocument already.
svn path=/trunk/mcs/; revision=16966