Commit Graph
34 Commits
Author SHA1 Message Date
Konstantin Triger ae24c8a30c implemented specialized CopyTo() method
svn path=/trunk/mcs/; revision=63721
2006-08-14 13:56:09 +00:00
Senganal T 0c7a4a4190 2006-07-15 Senganal T <[email protected]>
* Test/System.Data/DataTableCollection.cs : Tests for IndexOf, Contains,
	Add, Remove methods
	* System.Data/DataTableCollection.cs :
		- Contain,IndexOf,Remove,Add,Indexer : support for table
		namespace. Remove redundant checks in Remove/Add.


svn path=/trunk/mcs/; revision=62636
2006-07-15 08:47:51 +00:00
Senganal T fb9f3f8b5b 2006-06-30 Senganal T <[email protected]>
* System.Data.dll.sources: 
		- Add to build : System.Data/SerializationFormat.cs,
		System.Data/DataSetDateTime.cs,	System.Data/DataTableNewRowEventArgs.cs
		System.Data/DataTableNewRowEventHandler.cs	
		- Remove from build : System.Data/ConflictOptions.cs,
		System.Data/DbMetaData.cs, System.Data/FillOptions.cs,
		System.Data/ResultSetSensitivity.cs, 
		System.Data/ResultSetOptions.cs,System.Data/UpdateOptions.cs
	* System.Data/SerializationFormat.cs, DataSetDateTime.cs, DataTableNewRowEventArgs.cs,
	DataTableNewRowEventHandler.cs : Added 
	* System.Data/SyntaxErrorException.cs EvaluateException.cs StrongTypingException.cs 
	IsolationLevel.cs ReadOnlyException.cs DataTableCollection.cs 
	DataRowState.cs MissingPrimaryKeyException.cs DeletedRowInaccessibleException.cs 
	DuplicateNameException.cs PropertyAttributes.cs StatementType.cs 
	VersionNotFoundException.cs FillErrorEventHandler.cs DataRowChangeEventHandler.cs 
	XmlWriteMode.cs InvalidExpressionException.cs StateChangeEventHandler.cs 
	DbType.cs DataColumnChangeEventHandler.cs KeyRestrictionBehavior.cs 
	ConnectionState.cs SchemaType.cs MergeFailedEventHandler.cs SqlDbType.cs 
	DataRowVersion.cs ForeignKeyConstraint.cs DBConcurrencyException.cs 
	OperationAbortedException.cs MissingSchemaAction.cs DataTableClearEventHandler.cs 
	DataRowView.cs DataRowAction.cs ConstraintCollection.cs DataTableReader.cs 
	LoadOption.cs InvalidConstraintException.cs InternalDataCollectionBase.cs 
	ParameterDirection.cs AcceptRejectRule.cs UpdateRowSource.cs XmlReadMode.cs 
	TypedDataSetGenerator.cs RowNotInTableException.cs TypeDataSetGeneratorException.cs
	InRowChangingEventException.cs  MissingMappingAction.cs NoNullAllowedException.cs 
	CommandBehavior.cs PropertyCollection.cs CommandType.cs 
	UpdateStatus.cs ConflictOption.cs DataViewRowState.cs  Rule.cs 
	DataColumnCollection.cs :
		2.0 api fixes.


svn path=/trunk/mcs/; revision=62152
2006-06-30 09:58:19 +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
Senganal T 2e0becc2fe 2006-03-05 Senganal T <[email protected]>
* Test/System.Data/DataSetTest2.cs
	* Test/System.Data/ConstraintCollectionTest2.cs
	* Test/System.Data/DataViewTest.cs
	* Test/System.Data/DataRelationTest.cs
 		Added testcases for BeginInit and EndInit methods
 	* System.Data/DataSet.cs :
 		- BeginInit (), EndInit () : Implemented methods
 		- InitInProgress : Added.
 	* System.Data/DataTable.cs
 		- EndInit () : Move the adding of columns and constraints
 		to FinishInit.
 		- FinishInit () : Added. Adds the Constraints and Columns
 		to the collection.
 		- InitInProgress : Added.
 	* System.Data/Constraint.cs
 		- FinishInit () : Added. Virtual method
 		- InitInProgress : Added. Virtual property
 	* System.Data/UniqueConstraint.cs
 	* System.Data/ForeignKeyConstraint.cs
 		- FinishInit () : Added.
 		- InitInProgress : Added.
 		- DataColsNotValidated : Removed.
 	* System.Data/ConstraintCollection.cs
 		- PostAddRange : Removed event
 		- PostEndEdit () : Renamed to PostAddRange
 		- Add () : Simplified the testing if constraint is initialized
 		- AddRange () : Simplified initializing the constraints
 	* System.Data/DataTableCollection.cs
 		- PostAddRange () : Added. Adds the tables to the collection
 	* System.Data/DataColumnColletion.cs
 		- PostEndInit () : Renamed to PostAddRange.Also, add column to
 		the collection only if not null.
 
 	Added/Implemented methods for design time support. Renamed some methods for consistency
 	in naming across classes for methods serving the same purpose. 


svn path=/trunk/mcs/; revision=57590
2006-03-05 09:35:39 +00:00
Chris Toshok a757477864 2006-02-17 Chris Toshok <[email protected]>
* ConstraintCollection.cs: in 2.0, class is not serializable and
	is sealed.  make all the "virtuals" #if !NET_2_0 as well.

	* Constraint.cs: not serializable in 2.0.

	* DataColumnCollection.cs: in 2.0, class is not serializable and
	is sealed.  make all the "virtuals" #if !NET_2_0 as well.

	* DataRelationCollection.cs: not serializable in 2.0.

	* DataRelation.cs: not serializable in 2.0.

	* DataRowBuilder.cs: class is sealed in 2.0.

	* DataRowCollection.cs: in 2.0, class is not serialized and is
	sealed.  Also, Add isn't virtual in 2.0 (as the class is sealed).

	* DataRow.cs: not serializable in 2.0.

	* DataSet.cs: remove some DataSysDescriptions from the 2.0 build,
	and s/GetDataReader/CreateDataReader.

	* DataTableCollection.cs: in 2.0, class is not serializable and is
	sealed.  make all the "virtuals" #if !NET_2_0 as well.

	* DataTableReader.cs: remove VisibleFieldCount property.

	* DataViewSettingCollection.cs: not serializable in 2.0.

	* DataViewSetting.cs: not serializable in 2.0.

	* ForeignKeyConstraint.cs: serializable in 2.0.

	* OperationAbortedException.cs: class is sealed and serializable.

	* PropertyCollection.cs: serializable in 2.0.

	* StatementCompletedEventArgs.cs: class is sealed.

	* UniqueConstraint.cs: not serializable in 2.0.


svn path=/trunk/mcs/; revision=56982
2006-02-17 16:46:03 +00:00
Senganal T a2a283996f 2006-02-03 Senganal T <[email protected]>
* Test/System.Data.SqlTypes/SqlStringTest.cs : Removed NotWorking attribute for testcases fixed
	* Test/System.Data/DataTableCollectionTest2.cs,EvaluateExceptionTest.cs,
	DataColumnTest.cs,DataRowViewTest.cs,DataRowCollectionTest2.cs,
	DataTableTest2.cs,DataTableTest.cs,DataColumnCollectionTest2.cs,
	DataColumnCollectionTest.cs,DataViewTest.cs,DataColumnTest2.cs
		- Removed 'NotWorking' attributes for the testcases fixed
		- Added few new testcases
	* System.Data.SqlTypes/SqlString.cs : 
		- GetUnicodeBytes()
		- GetNonUnicodeBytes() 
		- Constructor 
			Use Encoding class to convert between byte[] and string
	* Mono.Data.SqlExpressions/ColumnReference.cs : 
		- GetReferencedRow () 
		- GetReferencedRows() : Verify the column before getting the values.
		 	Validate the ColumnReference even when the table has no rows.
	* Mono.Data.SqlExpressions/Function.cs : Modified Eval()
		- A tmp fix to check for null. Expression.Eval needs to be modified all
		around to return DBNull.Value.
	* System.Data/DataTableCollection.cs : 
		- Remove () : Check for invalid TableName
		- Add () : Verify the table doesn't belong to another dataset
	* System.Data/DataView.cs :
		- CompleteLastAdded () : Do not raise ItemAdded Event as it is
			already raised in AddNew().
	* System.Data/DataColumn.cs :
		- Expression : Verify that the Column names in the expression are valid 
		- ResetCollectionInfo : Renamed to ResetColumnInfo
	* System.Data/DataRow.cs :
		- RejectChanges () : Reorganized the code to do the Right thing.
		- Item  : Dont check for detached and deleted rows as these are
			done elsewhere.
	* System.Data/DataRowCollection.cs :
		- Add () : Check for null value
	* System.Data/DataTable.cs :
		- PrimaryKey : Set AllowDBNull=false for all the key columns
		- ImportRow : Import the row only if it is not in Detached state. if in Deleted
			state, perform the validation when AcceptChanges/RejectChanges is called.
	* System.Data/DataColumnCollection.cs :
		- Add : Validate the column expression before adding it to the collection.
		- GetColumnDependency () : New. Get the dependencies on the column 
		- CanRemove : Move checks to GetColumnDependency
		- Clear () : Simplified code. Remove unncessary checks.Also, dont check Expression col.
		- IndexOf - Check argument.
		Overall , appropriate error msg's are thrown if Remove/Clear fails. Removed a few
		redundant checks performed and moved the common code to GetColumnDependency.

	Fixes failing testcases in System.Data.

svn path=/trunk/mcs/; revision=56531
2006-02-03 16:50:15 +00:00
Sureshkumar T 88fba070be In System.Data.Common:
2005-07-22  Sureshkumar T  <[email protected]>

	* DataColumnMappingCollection.cs: updated attributes & attribute
	descriptions to match with masterinfos.

In System.Data.SqlClient:
2005-07-22  Sureshkumar T  <[email protected]>

	* SqlCommandBuilder.cs, SqlParameterCollection.cs,
	SqlConnection.cs, SqlParameter.cs:
	- updated attributes & attribute descriptions to match with
	masterinfos.

In System.Data:
	* DataViewSettingCollection.cs, DataTableCollection.cs,
	DataSet.cs, DataView.cs, DataColumn.cs, ForeignKeyConstraint.cs,
	DataRelationCollection.cs, UniqueConstraint.cs, DataTable.cs,
	DataColumnCollection.cs, DataRelation.cs, DataSet.cs:
	- updated attributes & attribute descriptions to match with
	masterinfos.

In System.Data.Odbc:
	* OdbcParameter.cs: updated attributes & attribute descriptions to
	match with masterinfos.


svn path=/trunk/mcs/; revision=47554
2005-07-22 10:57:02 +00:00
Boris Kirzner ac27105c70 Drop of Mainsoft.System.Data
svn path=/branches/Mainsoft.System.Data/mcs/; revision=43604
2005-04-26 17:13:44 +00:00
Atsushi Eno eb5f1184dc 2005-02-02 Atsushi Enomoto <[email protected]>
* DataTableCollection.cs : (RemoveAt) just use IndexOutOfRangeException.


svn path=/trunk/mcs/; revision=39968
2005-02-02 08:52:58 +00:00
Atsushi Eno 2949e66c28 2004-06-20 Atsushi Enomoto <[email protected]>
* DataTableCollection.cs : reset the table's DataSet to null when
	  removing a table from this collection.
	* DataTable.cs : When Namespace is not specified explicitly, its
	  Namespace property reflects DataSet's Namespace if exist.
	  This fixes bug #60469.

svn path=/trunk/mcs/; revision=29975
2004-06-20 17:35:14 +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
Umadevi S ce8fd78890 2004-05-27 Umadevi S <[email protected]>
* DataTableCollection.cs - fixed nunit test errors

svn path=/trunk/mcs/; revision=28223
2004-05-27 05:31:53 +00:00
Umadevi S 746ac6edd1 2004-04-30 Umadevi S <[email protected]>
* DataColumnCollection.cs : Fixed nunit test errors, removed TODOs
        * DataTableCollection.cs  : Tested and removed TODO
        * TypedDataSetGeneratorException.cs : Fixed a couple of TODOs

svn path=/trunk/mcs/; revision=26407
2004-04-30 10:49:11 +00:00
Martin Baulig dfedf08d98 2004-04-22 Martin Baulig <[email protected]>
Renamed the `NET_1_2' conditional to `NET_2_0' in all files.

svn path=/trunk/mcs/; revision=25877
2004-04-23 02:24:02 +00:00
Gonzalo Paniagua Javier 6047aba012 2004-04-06 Gonzalo Paniagua Javier <[email protected]>
* System.Data/Constraint.cs:
	* System.Data/DataColumnCollection.cs:
	* System.Data/DataRelationCollection.cs:
	* System.Data/DataRowCollection.cs:
	* System.Data/DataTableCollection.cs:
	* System.Data/InternalDataCollectionBase.cs:
	* System.Data/Node.cs: CLS compliance for System.Data. Patch by Gert
	Driesen. Fixes bug #56557.

	* Assembly/AssemblyInfo.cs:
	* System.Data.OleDb/OleDbPermissionAttribute.cs: missing bits from
	Gert's patch.

svn path=/trunk/mcs/; revision=25103
2004-04-06 18:25:51 +00:00
Eran Domb 54a339e689 * DataColumnCollection.cs (this[string name]) : Use IndexOf to find the column.
(Add) : Find if the new column name is the same as the one found in IndexOf.
	(IndexOf) : New method.
	(Contains) : Use new IndexOf.
	(IndexOf) : Use new IndexOf.

	* DataRelationCollection.cs (DataRelationCollection.AddCore) : Add The Relation to the collection.
	(DataSetRelationCollection.AddCore) : First add the UniqueConstraint.

	* DataRow.cs (this[int columnIndex, DataRowVersion version]) : Change exceptions.
	(Delete) : Detach row if the RowState was Added.
	(GetChildRows) : Get the array form the ChildTable.
	(GetParentRows) : Get the array from the ParenTable.

	* DataRowCollection.cs (Remove) : Check if row state is Detached to avoid exception.

	* DataSet.cs (IXmlSerializable.ReadXml) : Do not call MoveToContent and ReadEndElement - the XmlSerializationReader does it.

	* DataTable.cs (PrimaryKey) : Fix bugs.
	(Compute) : First call Select. Then create ExpressionAggregate to aggregate the Select result.

	* DataTableCollection.cs (Add) : Fix a bug.

	* ForeignKeyConstraint.cs (_validateColumns) : Throw correct exception.

	* MergeManager.cs (AdjustSchema) : Fix a bug.

svn path=/trunk/mcs/; revision=20666
2003-12-01 13:55:13 +00:00
Tim Coleman cb0f49304c 2003-11-26 Tim Coleman <[email protected]>
* ConflictOptions.cs DataAdapterException.cs DataTableReader.cs
        * DbMetaData.cs FillOptions.cs IDataReader2.cs IDataRecord2.cs
        * IDataUpdatableRecord.cs IDbAsyncCommand.cs IDbAsyncConnection.cs
        * IDbExecutionContext.cs IGetTypedData.cs ISetTypedData.cs
        * LoadOption.cs OperationAbortedException.cs ResultSetOptions.cs
        * ResultSetSensitivity.cs StatementCompletedEventArgs.cs
        * StatementCompletedEventHandler.cs UpdateOptions.cs:
                New classes added for NET_1_2
        * DBConcurrencyException.cs DataRelation.cs DataSet.cs DataTable.cs
        * DataTableCollection.cs DataView.cs ForeignKeyConstraint.cs:
                Modifications to add new NET_1_2 functions

svn path=/trunk/mcs/; revision=20458
2003-11-26 06:16:56 +00:00
Eran Domb c22d01324e *** empty log message ***
svn path=/trunk/mcs/; revision=19295
2003-10-22 06:48:25 +00:00
Duncan Mak d101df5ef4 Patches from Eran Domb <[email protected]>.
* DbDataAdapter.cs (Fill): Patch from Eran Domb, <[email protected]>.
Fixes a possible NullReferenceException, more details here:

* DataColumn.cs (Unique): Implemented.

* DataTable.cs:
* ConstraintCollection.cs:
* ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
an Exception thrown. Details:
http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html

* DataRowCollection.cs (Add): There is no checking that there is
no violation of the unique constrains.

* UniqueConstraint.cs (AssertConstraint): There is no checking on
all columns in the constraint.

svn path=/trunk/mcs/; revision=18298
2003-09-25 17:33:15 +00:00
Aleksey Demakov 6701757fca *** empty log message ***
svn path=/trunk/mcs/; revision=12244
2003-03-06 02:22:49 +00:00
Alan Tam 6f09056d0d 2003-02-18 Alan Tam <[email protected]>
* DataRow.cs: Implemented GetParentRow and GetParentRows.
	* DataSet.cs: Added stub for HasChanges, InferXmlSchema,
		      OnPropertyChanging, OnRemoveRelation, OnRemoveTable,
		      RaisePropertyChanging.
	* DataTable.cs: Implemented NewRowArray.
	* DataTablePropertyDescriptor: Fixed a modifier.
	* InternalDataCollectionBase.cs: Fixed modifiers. Implemented SyncRoot.
	* PropertyCollection.cs: Minor fix.
	* ConstraintCollection.cs DataColumn.cs DataColumnCollection.cs
	* DataRelation.cs DataRelationCollection.cs DataRow.cs
	* DataRowCollection.cs DataRowState.cs DataSet.cs DataTable.cs
	* DataTableCollection.cs DataTablePropertyDescriptor.cs DataView.cs
	* DataViewManager.cs DataViewRowState.cs DataViewSettingCollection.cs
	* ForeignKeyConstraint.cs InternalDataCollectionBase.cs
	* PropertyCollection.cs UniqueConstraint.cs

svn path=/trunk/mcs/; revision=11694
2003-02-18 15:09:50 +00:00
Ville Palo c116a126b9 2003-01-18 Ville Palo <[email protected]>
* DataTableCollection.cs: Now names new DataTable if it doesn't
	already have a name.

svn path=/trunk/mcs/; revision=10663
2003-01-18 14:52:58 +00:00
Ville Palo 5bf8673afe 2003-01-13 Ville Palo <[email protected]>
* DataRowCollection.cs: Added IndexOutOfRangeException
	* DataTableCollection.cs: Added OnCollectionChanging and
	OnCollectionChanged events.
	* DataSet.cs: Many fixes. Implemented Clone () and Copy () -methods
	* DataTable.cs: Implemented Copy () and Clone () methods.
	* XmlDataLoader.cs: some fixes.
	* XmlSchemaMapper.cs: comments.

svn path=/trunk/mcs/; revision=10470
2003-01-13 18:02:06 +00:00
Ville Palo 6826d9c01b Ups, there was a litle bug
svn path=/trunk/mcs/; revision=9265
2002-11-29 20:20:34 +00:00
Ville Palo d8591b3ef4 2002-11-29 Ville Palo <[email protected]>
* DataSystem.Data.DataTableCollection.cs:
	Removed HashTable. There could be situations where DataTable
	is added to collection before it hava TableName. So using
	HashTable is impossible.

svn path=/trunk/mcs/; revision=9264
2002-11-29 20:13:54 +00:00
Tim Coleman ee1c3a6682 2002-11-11 Tim Coleman <[email protected]>
* System.Data/ResDescriptionAttribute.cs:
        * list
                New internal class added
        * System.Data/Constraint.cs:
        * System.Data/ConstraintCollection.cs:
        * System.Data/DBConcurrencyException.cs:
        * System.Data/DataColumn.cs:
        * System.Data/DataColumnCollection.cs:
        * System.Data/DataRelation.cs:
        * System.Data/DataRelationCollection.cs:
        * System.Data/DataRow.cs:
        * System.Data/DataRowBuilder.cs:
        * System.Data/DataRowBuilder.cs:
        * System.Data/DataRowCollection.cs:
        * System.Data/DataSet.cs:
        * System.Data/DataTable.cs:
        * System.Data/DataTableCollection.cs:
        * System.Data/DataView.cs:
        * System.Data/DataViewManager.cs:
        * System.Data/DataViewSetting.cs:
        * System.Data/DataViewSettingCollection.cs:
        * System.Data/ForeignKeyConstraint.cs:
        * System.Data/ForeignKeyConstraint.cs:
        * System.Data/InternalDataCollectionBase.cs:
        * System.Data/MergeFailedEventArgs.cs:
        * System.Data/StrongTypingException.cs:
        * System.Data/TypeDataSetGeneratorException.cs:
        * System.Data/UniqueConstraint.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/DbEnumerator.cs:
        * System.Data.SqlClient/SqlCommand.cs:
        * System.Data.SqlClient/SqlCommandBuilder.cs:
        * System.Data.SqlClient/SqlConnection.cs:
        * System.Data.SqlClient/SqlDataAdapter.cs:
        * System.Data.SqlClient/SqlParameter.cs:
                Add missing attributes, methods, properties based on information
                from System.Data class status page on go-mono.com.

svn path=/trunk/mcs/; revision=8927
2002-11-12 01:41:04 +00:00
Gonzalo Paniagua Javier cd0a46ebec 2002-10-07 Gonzalo Paniagua Javier <[email protected]>
* System.Data/ConstraintCollection.cs:
	* System.Data/DataColumnCollection.cs:
	* System.Data/DataRowCollection.cs:
	* System.Data/DataTableCollection.cs:
	* System.Data/InternalDataCollectionBase.cs: made List internal to fix
	the build with csc. It must be a mcs bug. I will try to get a test case.

svn path=/trunk/mcs/; revision=8050
2002-10-07 18:08:22 +00:00
Tim Coleman 4a45db8615 2002-05-17 Tim Coleman <[email protected]>
* System.Data.Common/DbDataAdapter.cs:
                - More implementation of Fill methods
                - Get rid of isDirty flag, because we can just check
                        if the table exists
                - Do *not* remove DataTables before Filling them
                - Implicitly open the connection before doing a Fill
                        if it does not exist.
        * System.Data.SqlClient/SqlDataAdapter.cs:
                - Minor fixup
        * System.Data/DataTableCollection.cs:
                - Add DataSet to internal, undocumented constructor
                - When a table is created, set its DataSet property
                - Default table name for creation is "Table1" (see .NET)
                - Inherit the ArrayList list from InternalDataCollecitonBase
                        and maintain a hashtable between table names and
                        DataTables
        * System.Data/DataTable.cs:
                - Add internal dataSet field.  This is used by
                        DataTableCollection when the DataTable is constructed.
        * System.Data/DataSet.cs:
                - Pass a reference to the DataSet when constructing the
                        DataTableCollection.

svn path=/trunk/mcs/; revision=4722
2002-05-17 16:38:00 +00:00
Tim Coleman f594cc033d 2002-05-13 Tim Coleman
* System.Data/DataTableCollection.cs:
                Fix an issue when adding a DataTable and size == 0.
                Now explicitly checks if size > 0 before doing Array.Copy ()
        * System.Data.Common/DbDataAdapter.cs:
                Move closer to a working implementation.
                Make the IDbCommand fields protected so that they can
                be inherited.
        * System.Data.SqlClient/SqlDataAdapter.cs:
                This should inherit the IDbCommands instead of having its
                own.  An explicit cast is used to force conversion between
                IDbCommand and SqlCommand

svn path=/trunk/mcs/; revision=4588
2002-05-13 14:30:06 +00:00
Rodrigo Moya e509f318eb 2002-04-28 Rodrigo Moya <[email protected]>
* System.Data/DataSet.cs:
	* System.Data/DataTableCollection.cs:
	* System.Data/DataView.cs: compilation fixes on Linux.

svn path=/trunk/mcs/; revision=4104
2002-04-28 12:12:06 +00:00
Daniel Morgan 2744f2972e 2002-04-28 Daniel Morgan <[email protected]>
* System.Data/DataRelation.cs
	* System.Data/ForeignKeyConstraint.cs
	* System.Data/UniqueConstraint.cs: added more stubs

	* System.Data/DataTableRelationCollection.cs: added back to cvs
	and modified for compile errors.  DataRelationCollection is an
	abstract class and there must be a class that implements for
	DataTable/DataSet.  DataTableRelationCollection was changed
	to an internal class.

	* System.Data.build: modified - new files added
	also wanted to include files/classes in the build
	so we can get a compilable forward read only result set.
	It compiles now using csc/nant with warnings, but this
	is a start for adding functionality for the result set.
	Classes associated with/and DataSet are still excluded.

	* TODO: modified - updated to do list for System.Data

	* System.Data/Constraint.cs
	* System.Data/ConstraintCollection.cs
	* System.Data/DataRelationCollection.cs
	* System.Data/DataRow.cs
	* System.Data/DataRowChangeEventArgs.cs
	* System.Data/DataRowCollection.cs
	* System.Data/DataTable.cs
	* System.Data/DataTableCollection.cs
	* System.Data/InternalDataCollectionBase.cs
	* System.Data/PropertyCollection.cs: modified -
	changes to compile SqlDataReader/DataTable and
	dependencies

	* System.Data/IDbCommand.cs
	* System.Data.SqlClient/SqlCommand.cs: modified -
	un-commented overloaded methods ExecuteReader
	which returns a SqlDataReader

svn path=/trunk/mcs/; revision=4098
2002-04-28 03:59:01 +00:00
Rodrigo Moya ecafe67718 2002-04-28 Rodrigo Moya <[email protected]>
* System.Data/DataTableCollection.cs: more implementation.
	(Count): added 'override' keyword, as pointer out by Martin.

	* System.Data.Common/DataColumnMappingCollection.cs (Add, AddRange):
	only call Array.Copy when there is really stuff to be copied.
	(CopyTo): don't create the temporary array, it's not needed.

	* System.Data.build: excluded newly added file from build.

svn path=/trunk/mcs/; revision=4084
2002-04-27 10:14:23 +00:00
Rodrigo Moya f6618bf3cf 2002-04-27 Rodrigo Moya <[email protected]>
* System.Data/DataTableRelationCollection.cs: removed, it's not
	on MS SDK documentation.

	* System.Data/DataTableCollection.cs: new class.

svn path=/trunk/mcs/; revision=4082
2002-04-27 08:47:16 +00:00