* Index.cs (empty): New empty array constant.
(Reset): Initialize '_array' to 'empty'.
(RebuildIndex): Don't allocate array if it will be empty.
(FindAllIndexes): Use 'empty' instead of 'new int [0]'.
svn path=/trunk/mcs/; revision=119008
* Index.cs: Remove use of Array and Size properties by taking
advantage of the invariant that _array is never null.
(EnsureArray): Remove.
(Array): Remove.
svn path=/trunk/mcs/; revision=119007
exception message for invalid DateTimeMode value to match MS. Code
formatting.
* DbDataPermissionAttribute.cs: In KeyRestrictionBehavior, reuse
ExceptionHelper.CheckEnumValue.
* ExceptionHelper.cs: Use same exception message for both 1.0 and 2.0.
* Index.cs: Fixed compiler warnings. Code formatting.
* SqlCommand.cs: Use ExceptionHelper.CheckEnumValue for enum checks.
* OleDbCommand.cs: Use ExceptionHelper.CheckEnumValue for enum checks.
* DBDataPermissionAttributeTest.cs: Improved test for invalid
KeyRestrictionBehavior. Fixed line endings.
* DataColumnTest.cs: No longer derive from deprecated Assertion class.
Code formatting. Added test for DateTimeMode.
svn path=/trunk/mcs/; revision=87866
* Test/System.Data/DataViewTest2.cs :
- Tests for ToTable overloads
- Test for Equals method
- Tests to check for the Sort, RowFilter values when
DataView is created and when Table is set.
* Test/System.Data/DataViewTest_IBindingList.cs :
- Ensure tests do not depend on the order of
execution.
* Test/System.Data/DataViewTest_IBindingListView.cs : New
- Tests for IBindingListView interface methods
* System.Data.Common/Index.cs :
- GetAllRows : Added. Returns all the rows in the current
index.
- GetDistinctRows :Added. Returns all the distinct rows (based
in Key Columns) in the index.
* System.Data.dll.sources:
- Added to build :
Test/System.Data/DataViewTest_IBindingListView.cs
* System.Data/DataView.cs :
- ToTable : Implemented all the overloads
- Equals : Implemented
- IBindingListView : Implemented the interface
svn path=/trunk/mcs/; revision=62669
* Test/System.Data/DataRowCollectionTest2.cs :
* Test/System.Data/DataTableTest2.cs :
- Fixed NotWorking tests.
* System.Data.Common/Index.cs :
- Update () : Add the new record in the correct position
* System.Data/DataRow.cs :
- RejectChanges () : Add the row to index, if it was in deleted state and
Update the index if in Modified State.
- AcceptChanges () : Do not update the Indexes.
- EndEdit () : Update the indexes even if BeginLoadData has been called
on the table. Ideally, indexes should not be maintained during DataLoad,
but this needs to handled in multiple places correctly. For now, just maintain
the index to ensure correct operation.
svn path=/trunk/mcs/; revision=57725