Commit Graph
27 Commits
Author SHA1 Message Date
Marek Safar 02e9af391d Warnings cleanup
svn path=/trunk/mcs/; revision=111855
2008-08-28 19:08:55 +00:00
Nagappan Alagappan 83c2b9c184 2006-11-28 Nagappan A <[email protected]>
* XmlDataDocument.cs (StringToObject): Modify
	XmlConvert.ToDateTime to use XmlDateTimeSerializationMode, as the
	default ToDataTime method id obsolete.


svn path=/trunk/mcs/; revision=68579
2006-11-28 13:21:58 +00:00
Senganal T 483fc3041b 2006-04-19 Senganal T <[email protected]>
* 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
2006-04-19 08:04:44 +00:00
Sachin Kumar ec81df777c Add license and copyright to all source files in System.Data
svn path=/trunk/mcs/; revision=29688
2004-06-16 13:52:11 +00:00
Atsushi Eno fbd34f4d08 2004-06-06 Atsushi Enomoto <[email protected]>
* 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
2004-06-06 20:08:18 +00:00
Atsushi Eno 111d31e19d 2004-05-17 Atsushi Enomoto <[email protected]>
* 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
2004-05-17 17:41:20 +00:00
Atsushi Eno 3231b47e35 2004-05-13 Atsushi Enomoto <[email protected]>
* XmlDataDocument.cs : Removed row-element mapping. Just use new
	  DataRow.DataElement property. Added/removed some comments.

svn path=/trunk/mcs/; revision=27251
2004-05-13 09:14:46 +00:00
Atsushi Eno c62a359a03 2004-05-12 Atsushi Enomoto <[email protected]>
* 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
2004-05-12 20:09:51 +00:00
Atsushi Eno 6b5e609d91 2004-04-13 Atsushi Enomoto <[email protected]>
* 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
2004-04-13 00:59:41 +00:00
Roopa Wilson efbe4b6865 2004-04-02 Roopa Wilson ([email protected])
* 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
2004-04-02 05:54:59 +00:00
Atsushi Eno d4e180ee69 2004-03-18 Atsushi Enomoto <[email protected]>
* XmlDataDocument.cs : Fixed incorrect cast in OnDataTableRowAdded().
	  This fixes bug #54505.

svn path=/trunk/mcs/; revision=24279
2004-03-18 18:03:07 +00:00
Duncan Mak 8ce905380e * DataAdapter.cs (CloneInternals): Mark with ObsoleteAttribute for
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
2003-07-31 23:24:36 +00:00
Alan Tam 86c5cbad8e 2003-03-12 Alan Tam <[email protected]>
* XmlDataDocument.cs: Still need to print tag for the DataSet if there
        is no data at all.

svn path=/trunk/mcs/; revision=12458
2003-03-12 14:04:39 +00:00
Ville Palo 81918784ee 2003-01-27 Ville Palo <[email protected]>
* ChangeLog: Added this file.
	* XmlDataDocument.cs: Some little fixes.

svn path=/trunk/mcs/; revision=10957
2003-01-27 19:01:47 +00:00
Ville Palo 4838dd1e7d 2003-01-13 Ville Palo <[email protected]>
* System.Xml/XmlDataDocument.cs: lots of bugfixes and more implemented
	methods.

svn path=/trunk/mcs/; revision=10469
2003-01-13 17:59:08 +00:00
Ville Palo 2366f340fd 2002-12-16 Ville Palo <[email protected]>
* System.Xml/XmlDataDocument.cs: Now rollback works. It means all
	types of transactions works, i guess ;)

svn path=/trunk/mcs/; revision=9704
2002-12-16 18:40:07 +00:00
Ville Palo 78ef9ef5dc Fixed ms warning issue
svn path=/trunk/mcs/; revision=9643
2002-12-14 17:51:29 +00:00
Ville Palo 2a37c57394 2002-12-14 Ville Palo <[email protected]>
* System.Xml/XmlDataDocument.cs: Adding row via XmlDataDocument to
	DataSet's datatable is now possible.

svn path=/trunk/mcs/; revision=9638
2002-12-14 17:11:20 +00:00
Ville Palo bd8a904eca 2002-12-11 Ville Palo <[email protected]>
* System.Xml/XmlDataDocument.cs: Implemented GetRowFromElement() and
	GetElementFromRowElement () -methods. Somefixed and little clean up.

svn path=/trunk/mcs/; revision=9563
2002-12-11 15:25:21 +00:00
Ville Palo 6af8eb114e 2002-12-04 Ville Palo <[email protected]>
* System.Xml/XmlDataDocument.cs: Now this works in both ways,
	DataSet <--> XmlDataDocument.cs at some level at least.

svn path=/trunk/mcs/; revision=9380
2002-12-04 18:40:45 +00:00
Ville Palo 4a5b2db435 2002-12-02 Ville Palo <[email protected]>
* System.Xml/XmlDataDocument.cs : some fixes and some imlemented
	methods.

svn path=/trunk/mcs/; revision=9353
2002-12-02 17:31:07 +00:00
Gonzalo Paniagua Javier 11d23e0d3e Fixes the build on windows. Someone should check if this is correct.
svn path=/trunk/mcs/; revision=9346
2002-12-02 15:40:19 +00:00
Ville Palo fb50c1dc2a System.Data/AcceptRejectRule.cs
System.Data/CommandBehavior.cs
System.Data/CommandType.cs
System.Data/ConnectionState.cs
System.Data/Constraint.cs
System.Data/ConstraintCollection.cs
System.Data/ConstraintException.cs
System.Data/DataCategoryAttribute.cs
System.Data/DataColumn.cs
System.Data/DataColumnChangeEventArgs.cs
System.Data/DataColumnChangeEventHandler.cs
System.Data/DataColumnCollection.cs
System.Data/DataColumnPropertyDescriptor.cs
System.Data/DataException.cs
System.Data/DataRelation.cs
System.Data/DataRelationCollection.cs
System.Data/DataRow.cs
System.Data/DataRowAction.cs
System.Data/DataRowBuilder.cs
System.Data/DataRowChangeEventArgs.cs
System.Data/DataRowChangeEventHandler.cs
System.Data/DataRowCollection.cs
System.Data/DataRowState.cs
System.Data/DataRowVersion.cs
System.Data/DataRowView.cs
System.Data/DataSet.cs
System.Data/DataSysDescriptionAttribute.cs
System.Data/DataTable.cs
System.Data/DataTableCollection.cs
System.Data/DataView.cs
System.Data/DataViewManager.cs
System.Data/DataViewRowState.cs
System.Data/DataViewSetting.cs
System.Data/DataViewSettingCollection.cs
System.Data/DBConcurrencyException.cs
System.Data/DbType.cs
System.Data/DeletedRowInaccessibleException.cs
System.Data/DuplicateNameException.cs
System.Data/EvaluateException.cs
System.Data/FillErrorEventArgs.cs
System.Data/FillErrorEventHandler.cs
System.Data/ForeignKeyConstraint.cs
System.Data/IColumnMapping.cs
System.Data/IColumnMappingCollection.cs
System.Data/IDataAdapter.cs
System.Data/IDataParameter.cs
System.Data/IDataParameterCollection.cs
System.Data/IDataReader.cs
System.Data/IDataRecord.cs
System.Data/IDbCommand.cs
System.Data/IDbConnection.cs
System.Data/IDbDataAdapter.cs
System.Data/IDbDataParameter.cs
System.Data/IDbTransaction.cs
System.Data/InRowChangingEventException.cs
System.Data/InternalDataCollectionBase.cs
System.Data/InvalidConstraintException.cs
System.Data/InvalidExpressionException.cs
System.Data/IsolationLevel.cs
System.Data/ITableMapping.cs
System.Data/ITableMappingCollection.cs
System.Data/Locale.cs
System.Data/MappingType.cs
System.Data/MergeFailedEventArgs.cs
System.Data/MergeFailedEventHandler.cs
System.Data/MissingMappingAction.cs
System.Data/MissingPrimaryKeyException.cs
System.Data/MissingSchemaAction.cs
System.Data/NoNullAllowedException.cs
System.Data/ParameterDirection.cs
System.Data/PropertyAttributes.cs
System.Data/PropertyCollection.cs
System.Data/ReadOnlyException.cs
System.Data/ResDescriptionAttribute.cs
System.Data/RowNotInTableException.cs
System.Data/Rule.cs
System.Data/SchemaType.cs
System.Data/SqlDbType.cs
System.Data/StateChangeEventArgs.cs
System.Data/StateChangeEventHandler.cs
System.Data/StatementType.cs
System.Data/StrongTypingException.cs
System.Data/SyntaxErrorException.cs
System.Data/TODOAttribute.cs
System.Data/TypeDataSetGeneratorException.cs
System.Data/UniqueConstraint.cs
System.Data/UpdateRowSource.cs
System.Data/UpdateStatus.cs
System.Data/VersionNotFoundException.cs
System.Data/XmlReadMode.cs
System.Data/XmlWriteMode.cs
System.Data/XmlConstants.cs
System.Data.Common/DataAdapter.cs
System.Data.Common/DataColumnMapping.cs
System.Data.Common/DataColumnMappingCollection.cs
System.Data.Common/DataTableMapping.cs
System.Data.Common/DataTableMappingCollection.cs
System.Data.Common/DbDataAdapter.cs
System.Data.Common/DbDataPermission.cs
System.Data.Common/DbDataPermissionAttribute.cs
System.Data.Common/DbDataRecord.cs
System.Data.Common/DbEnumerator.cs
System.Data.Common/FieldNameLookup.cs
System.Data.Common/RowUpdatedEventArgs.cs
System.Data.Common/RowUpdatingEventArgs.cs
System.Data.Common/SchemaInfo.cs
System.Data.OleDb/libgda.cs
System.Data.OleDb/OleDbCommand.cs
System.Data.OleDb/OleDbCommandBuilder.cs
System.Data.OleDb/OleDbConnection.cs
System.Data.OleDb/OleDbDataAdapter.cs
System.Data.OleDb/OleDbDataReader.cs
System.Data.OleDb/OleDbError.cs
System.Data.OleDb/OleDbErrorCollection.cs
System.Data.OleDb/OleDbException.cs
System.Data.OleDb/OleDbInfoMessageEventArgs.cs
System.Data.OleDb/OleDbInfoMessageEventHandler.cs
System.Data.OleDb/OleDbLiteral.cs
System.Data.OleDb/OleDbParameter.cs
System.Data.OleDb/OleDbParameterCollection.cs
System.Data.OleDb/OleDbPermission.cs
System.Data.OleDb/OleDbPermissionAttribute.cs
System.Data.OleDb/OleDbRowUpdatedEventArgs.cs
System.Data.OleDb/OleDbRowUpdatedEventHandler.cs
System.Data.OleDb/OleDbRowUpdatingEventArgs.cs
System.Data.OleDb/OleDbRowUpdatingEventHandler.cs
System.Data.OleDb/OleDbSchemaGuid.cs
System.Data.OleDb/OleDbTransaction.cs
System.Data.OleDb/OleDbType.cs
System.Data.SqlTypes/INullable.cs
System.Data.SqlTypes/SqlBinary.cs
System.Data.SqlTypes/SqlBoolean.cs
System.Data.SqlTypes/SqlByte.cs
System.Data.SqlTypes/SqlCompareOptions.cs
System.Data.SqlTypes/SqlDateTime.cs
System.Data.SqlTypes/SqlDecimal.cs
System.Data.SqlTypes/SqlDouble.cs
System.Data.SqlTypes/SqlGuid.cs
System.Data.SqlTypes/SqlInt16.cs
System.Data.SqlTypes/SqlInt32.cs
System.Data.SqlTypes/SqlInt64.cs
System.Data.SqlTypes/SqlMoney.cs
System.Data.SqlTypes/SqlNullValueException.cs
System.Data.SqlTypes/SqlSingle.cs
System.Data.SqlTypes/SqlString.cs
System.Data.SqlTypes/SqlTruncateException.cs
System.Data.SqlTypes/SqlTypeException.cs
System.Data.Odbc/OdbcColumn.cs
System.Data.Odbc/OdbcCommand.cs
System.Data.Odbc/OdbcConnection.cs
System.Data.Odbc/OdbcDataReader.cs
System.Data.Odbc/OdbcError.cs
System.Data.Odbc/OdbcErrorCollection.cs
System.Data.Odbc/OdbcException.cs
System.Data.Odbc/OdbcParameter.cs
System.Data.Odbc/OdbcParameterCollection.cs
System.Data.Odbc/OdbcTransaction.cs
System.Data.Odbc/OdbcType.cs
System.Data.Odbc/libodbc.cs
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
System.Data.SqlClient/SqlClientPermission.cs
System.Data.SqlClient/SqlClientPermissionAttribute.cs
System.Data.SqlClient/SqlCommand.cs
System.Data.SqlClient/SqlCommandBuilder.cs
System.Data.SqlClient/SqlConnection.cs
System.Data.SqlClient/SqlConnectionPool.cs
System.Data.SqlClient/SqlDataAdapter.cs
System.Data.SqlClient/SqlDataReader.cs
System.Data.SqlClient/SqlError.cs
System.Data.SqlClient/SqlErrorCollection.cs
System.Data.SqlClient/SqlException.cs
System.Data.SqlClient/SqlInfoMessageEventArgs.cs
System.Data.SqlClient/SqlInfoMessageEventHandler.cs
System.Data.SqlClient/SqlParameter.cs
System.Data.SqlClient/SqlParameterCollection.cs
System.Data.SqlClient/SqlParameterConverter.cs
System.Data.SqlClient/SqlRowUpdatedEventArgs.cs
System.Data.SqlClient/SqlRowUpdatedEventHandler.cs
System.Data.SqlClient/SqlRowUpdatingEventArgs.cs
System.Data.SqlClient/SqlRowUpdatingEventHandler.cs
System.Data.SqlClient/SqlTransaction.cs
System.Data.SqlClient/SqlXmlTextReader.cs
System.Xml/XmlDataDocument.cs

svn path=/trunk/mcs/; revision=9309
2002-12-01 08:37:59 +00:00
Daniel Morgan 31cb0d7741 2002-11-30 Daniel Morgan <[email protected]>
* 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
2002-11-30 11:06:15 +00:00
Ville Palo 95980a7066 Bug again, sorry :-(
svn path=/trunk/mcs/; revision=9273
2002-11-30 09:28:06 +00:00
Ville Palo ab06077927 2002-11-29 Ville Palo <[email protected]>
* System.Xml/XmlDataDocument.cs: Started to implement.

svn path=/trunk/mcs/; revision=9267
2002-11-29 21:06:20 +00:00
Daniel Morgan 0ad0d8d73d 2002-05-18 Daniel Morgan <[email protected]>
* 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
2002-05-19 00:00:13 +00:00