* DataRelation.cs (DataRelation): Added 2.0 profile constructor to
take parentTableNameSpace and childTableNameSpace as argument.
(FinishInit): Update parentTableNameSpace and childTableNameSpace,
when the string is not empty in 2.0 profile.
* DataRowCollection.cs: Implemented Count public property.
Added !NET_2_0 for List protected property, as it has been removed
in 2.0 prifle.
(IndexOf): Implemented new public method.
(CopyTo): Implemented new public override method.
(GetEnumerator): Implemented new public override method.
* DataTable.cs (Load): Throw ArgumentNullException, when reader
argument is null.
(WriteXmlSchema): Throw InvalidOperationException, when table name
is empty. When DataSet Namespace is set, append that with '_x003A_'
and table name.
* DataSet.cs (Load): Throw ArgumentNullException, when reader
argument is null.
* XmlSchemaWriter.cs (WriteSchema): Modified UseCurrentCulture to
UseCurrentLocale.
(WriteDataSetElement): Added minOccurs attribute.
(WriteConstraints): Check for tables length, if > 1 then add the
relations to XmlSchema.
svn path=/trunk/mcs/; revision=68563
* 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
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
Ankit Jain <[email protected]>
* DataColumn.cs: throw exception if the column is part of a
relationship, when chaning the data type. Added methods
"GetParentRelation ()" and "GetChildRelation ()" get the relation
which contains the current column
* DataRelation.cs: Added method "Contains (DataColumn)" to check
whether the relation contains the given column.
fixes nunit failure: DataRelationTest.InvalidConstraintException2.
svn path=/trunk/mcs/; revision=39990
Fix for bug #66838. This patch is submitted by "Ankit Jain"
<[email protected]> and refactored.
* DataRow.cs: Allows to set a parent row even if the row is in
detached state.
* DataRelation.cs: method "UpdateConstraints" is added to check
and create missing keys when adding a relation. This is refactored
approach from DataRelationCollection.Add method.
* DataRelationCollection.cs: AddCore methods of all relation types
are synchronized. A Check for existing constraints is
done. Relation is added to the list only if all checks are passed.
svn path=/trunk/mcs/; revision=39091
(EndEdit) : Check that we are not in middle of ChangeEvent.
(AcceptChanges) : Detach the row.
* DataRelation.cs : throw correct exception.
*UniqueConstraint.cs : throw correct exception.
svn path=/trunk/mcs/; revision=20217
* DbDataAdapter.cs (Fill): Fixed an Exception from being thrown.
* DataRelation.cs (constructor): When the name of the relation is
null, it should return an empty, not "Relation".
* DataRow.cs (AcceptChanges): Added special case for
RowState.Detached.
(CancelEdit): Set editing flag to false.
(IsNull): Check that the value is DBNull.
* DataRowCollection.cs (Add): There was no check that the table of
the collection is owned by a DataSet.
* DataSet.cs (OnMergeFailed): Added.
* UniqueConstraint.cs (AssertConstraint): There was no check that
values in the row are not null, where it is a primary key
column. Also check that the row has a proposed version, if not,
get the current version when we compare the rows.
svn path=/trunk/mcs/; revision=18452
* DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
* DataRelationCollection.cs: Implemented AddRange and Contains.
Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
Reimplemented most Add methods to eliminate duplicated checks.
Centralized RelationName generation procedure in GetNextDefaultRelationName.
svn path=/trunk/mcs/; revision=11945
* DataTableRelationCollection.cs: removed file
because its internally in file DataRelationCollection.cs
2003-02-18 Alan Tam <[email protected]>
* DataRelation.cs: Added storage required to hold the relations.
Checking of constraints are not implemented yet.
* DataRelationCollection.cs: Implemented DataSetRelationCollection
and DataTableRelationCollection, both as inner class of the abstract class
DataRelationCollection (like Microsoft although not documented in ECMA).
* DataRow.cs: Implemented GetChildRows in a extremely slow way.
Need to implement caching like Microsoft later.
* DataSet.cs: Uncomment DataRelation related members. Uncomment
code for Nested XML. Implemented WriteTable(XmlWriter, DataRow[],
XmlWriteMode) for use of Nested XML. Fixed a wrong modifier in
GetSerializationData.
* DataTable.cs: Uncomment DataRelation related members.
svn path=/trunk/mcs/; revision=11670
* 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