2006-03-22 Senganal T <tsenganal@novell.com>
authorSenganal T <senga@mono-cvs.ximian.com>
Wed, 22 Mar 2006 14:40:41 +0000 (14:40 -0000)
committerSenganal T <senga@mono-cvs.ximian.com>
Wed, 22 Mar 2006 14:40:41 +0000 (14:40 -0000)
commita4f28e24b6cfa58cebdb51b7514d7bdd1eb3a79c
treeff5dfd8c4ddeb02145c35d6e949d594909f49355
parent67597881bd4731b3f1c848fc9f8f13e63e7d2c0f
2006-03-22  Senganal T <tsenganal@novell.com>

* Test/System.Data/DataColumnTest2.cs :
* Test/System.Data/ConstraintCollectionTest2.cs :
- Ensure Constraints are correctly added/removed when Unique
property is modified.
- Ensure PrimaryKeyConstraint cannot be removed using Remove ()
- Ensure DataColumn's Unique Propery is modifed when adding/removing constraint
* System.Data/DataTable.cs :
- PrimaryKey : Set the IsPrimaryKey attribute before Removing from collection.
- RemoveUniqueConstraints : Removed. dead code.
* System.Data/DataColumn.cs :
- Unique :
- If adding/removing constraint fails, retain Unique value
- Remove redundant code
* System.Data/UniqueConstraint.cs :
- SetIsPrimaryKey : Added. Sets the value of IsPrimaryKey.
- RemoveFromConstraintCollectionCleanup : If constraint is on a single column, then
set Unique for that column to false.
- CanRemoveFromCollection : Do not remove constraint, if its a PrimaryKey

svn path=/trunk/mcs/; revision=58301
mcs/class/System.Data/System.Data/ChangeLog
mcs/class/System.Data/System.Data/DataColumn.cs
mcs/class/System.Data/System.Data/DataTable.cs
mcs/class/System.Data/System.Data/UniqueConstraint.cs
mcs/class/System.Data/Test/System.Data/ChangeLog
mcs/class/System.Data/Test/System.Data/ConstraintCollectionTest2.cs
mcs/class/System.Data/Test/System.Data/DataColumnTest2.cs