* 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
* DataTable.cs : Included code to copy extended properties in CopyProperties() method
* DataTable.cs : CaseSensitive and Locale properties cannot be changedif the table belongs to a data relation
* DataTable.cs : Prefix property should not contain any specialcharacters
* DataTable.cs : Added code to BeginLoadData and EndLoadData methods tohandle tables not belonging to any data set
* DataTable.cs : Implemented an private property EnforceConstraints to enforceconstraints in EndLoadData when table is not part of any dataset
* DataTable.cs : Removed TODO tags for Clone (), Copy (), EndLoadData() and GetChanges ()
* DataTable.cs : Clear method should throw a NotSupportedException when the table is part of a DataSet bound to a XmlDataDocument
* DataSet.cs : Clear method should throw a NotSupportedException when DataSet is bound to a XmlDataDocument
* XmlDataDocument.cs : Included code to indicate to the DataSet that it is bound to this particular XmlDataDocument
* DataTableTest.cs: Included tests for the changes made in DatTable.cs
svn path=/trunk/mcs/; revision=24958
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
* System.Xml/XmlDataDocument.cs: Now this works in both ways,
DataSet <--> XmlDataDocument.cs at some level at least.
svn path=/trunk/mcs/; revision=9380
* System.Data.Odbc/OdbcDataReader.cs: implemented GetValues() method
needed by OdbcDataAdapter
* System.Data.Odbc/OdbcDataAdapter.cs
* System.Data.Odbc/OdbcRowUpdatedEventArgs.cs
* System.Data.Odbc/OdbcRowUpdatedEventHandler.cs
* System.Data.Odbc/OdbcRowUpdatingEventArgs.cs
* System.Data.Odbc/OdbcRowUpdatingEventHandler.cs: added files for an
ODBC Data Adapter
* list: added new files to linux build
in namespace System.Data.Odbc for the ODBC Data Adapter
* System.Xml/XmlDataDocument.cs: commented method
protected internal override XPathNavigator CreateNavigator(XmlNode node)
because it would not compile on .NET Framework. Added
a FIXME comment there
svn path=/trunk/mcs/; revision=9274
* System.Xml: added directory for classes with namespace
System.Xml to go into the System.Data.dll assembly
* System.Xml/XmlDataDocument: added file
for stubbed concrete class XmlDataDocument which
inherits from XmlDocument. Its purpose is to provide
a W3C XML DOM Document for relational data and interacting
with a DataSet
svn path=/trunk/mcs/; revision=4754