* System.Data/DataTableReader.cs: Implemented most of the TODO.
* Test/System.Data/DataTableReaderTest.cs: Added Tests for DataTableReader class.
* System.Data.Common/DbDataReader.cs: Added static method to construct the schema
table with default schema. Could be reused in many places.
* System.Data_test.dll.sources: Added DataTableReaderTest.cs
svn path=/trunk/mcs/; revision=43650
2005-04-22 Sureshkumar T <[email protected]>
* DataTableLoadRowTest.cs: Added. A test case for testing
LoadDataRow method of DataTable. This tests for various
possiblities of row state and loadoption.
In System.Data.Common:
2005-04-22 Sureshkumar T <[email protected]>
* DbDataAdapter.cs: Moved FillTable and BuildSchema as static
methods as they are not operating on the current instance. This
could be reused to fill any table from a data reader.
* RecordCache.cs: While disposing records, make sure that the
record is not already disposed. i.e. to make sure later the same
record is not reused. Implemented a static method to compare two
version of records in a container.
In .:
2005-04-22 Sureshkumar T <[email protected]>
* System.Data_test.dll.sources: Added DataTableLoadRowTest.cs.
In System.Data:
2005-04-22 Sureshkumar T <[email protected]>
* LoadOption.cs: Changed the enums. Keeping old values for
migration.
* DataTable.cs: Implemented methods Load and its overloads. Also
implemented LoadDataRow.
* DataRowCollection.cs: Added a variation of the Find method to
return a row even if it is of state Deleted. This is required for
DataTable.LoadDataRow method.
* DataRow.cs: Implemented internal helper method Load for loading
values from an object array and given an LoadOption (2.0 feature).
* DataRowAction.cs: Added few more enums for .net 2.0. Sorted
alphabetically.
svn path=/trunk/mcs/; revision=43440
2005-04-18 Sureshkumar T <[email protected]>
* DataAdapter.cs: Implemenetd OnFillError handler.
* DbDataAdapter.cs: BuildSchema (): the table to be filled might
contain few additional columns as well. so mapping length should
be columns' length + fields' length.
In System.Data:
2005-04-18 Sureshkumar T <[email protected]>
* DataRow.cs: if there are no mapping fields, fill with default
value.
svn path=/trunk/mcs/; revision=43192
* DbDataAdapter.cs: For Update, disable ReadOnly constraint
temporarily before updating the row. Info from Ingo Bauersachs.
SkipAllRemainingRows should also skip current row (msdn).
svn path=/trunk/mcs/; revision=42186
* DbDataAdapter.cs: Update (): update the rows based on the
UpdateRowSource property. Process further based on the
RowUpdatedEvent handler argument's Status property.
Fixes bug #73587. Thanks to [email protected] (Ingo Bauersachs) for
bug report and patch.
svn path=/trunk/mcs/; revision=42094
2005-03-01 Sureshkumar T <[email protected]>
* ConnectionStringsSectionHandler.cs: Added. configuration section
handler for section "connectionStrings". This handler is a ad hoc
solution till the new configuration API is available in mono.
In .:
2005-03-01 Sureshkumar T <[email protected]>
* System.Data.dll.sources: Added System.Data.Common/
ConnectionStringsSectionHandler.cs.
* app_test_2.0.config: Changed the configuration handler for
seciton "connectionStrings".
In Test/System.Data.Common:
* ConnectionStringsSectionTest.cs : removed console.writeline-s.
svn path=/trunk/mcs/; revision=41307
* DbDataAdapter.cs (Update ()) :
- Check for one return result set and map the values back to
datatable.
- Check for output & return value parameters and update the value
back to mapped column
- check for recordsAffected only after closing the reader.
svn path=/trunk/mcs/; revision=40120
* DbDataPermissionAttribute.cs, PermissionHelper.cs :
fixed some incompatible type of exception between 2.0 and 1.x.
* DataContainer.cs :
Wrap exceptions thrown by SetValue() within ArgumentException.
* SqlClientPermissionTest.cs, SqlClientPermissionAttributeTest.cs:
Fixed some incompatible type of exception between 2.0 and 1.1.
* OleDbPermissionTest.cs, OleDbPermissionAttributeTest.cs:
Fixed some incompatible type of exception between 2.0 and 1.1.
* OdbcPermissionTest.cs, OdbcPermissionAttributeTest.cs:
Fixed some incompatible type of exception between 2.0 and 1.1.
* DBDataPermissionTest.cs, DBDataPermissionAttributeTest.cs:
Fixed some incompatible type of exception between 2.0 and 1.1.
svn path=/trunk/mcs/; revision=38945
* DbDataAdapter.cs (BuildSchema): Add the primary key schema iff
MissingSchemaAction is set to AddWithKey. Also, Add auto increment
value from the source table. fixes bug #67757 and #69110.
svn path=/trunk/mcs/; revision=37567
Changes in Base class implementaitons for Provider Factory
Implementation.
In System.Data.Common:
* DbProviderSupportedClasses.cs: Added correct enum values.
* DbConnection.cs: Missing virtual method EnlistTransaction Added.
* DbCommand.cs: Implemented ProviderFactory base factory methods.
In System.Data.ProviderBase:
* DbParameterCollectionBase.cs: Class name changed according to
the documentation
* DbDataReaderBase.cs: Added internal constructor to satisfy
SqlDataReader, which takes command object.
* DbConnectionBase.cs: Added additional methods overriding
DbConnection
svn path=/trunk/mcs/; revision=36458
2004-11-22 Sureshkumar T <[email protected]>
* DbConnectionStringBuilder.cs: Class for helping creation of db
connection strings added.
In Test/System.Data.Common:
2004-11-22 Sureshkumar T <[email protected]>
* DbConnectionStringBuilderTest.cs: Test cases for
DbConnectionStringBuilder class. These are independant tests.
svn path=/trunk/mcs/; revision=36382
* DbDataPermission.cs: Implemented Intersect, IsSubsetOf and Union.
Implementation isn't complete as the restrictions seems to change the
expected results (breaking some rules like x.IsSubsetOf (x) == false).
Better (real-world) tests cases are required.
* PermissionHelper.cs: Fixed small differences between System.Data.dll
validations wrt to mscorlib.dll (XML and PermissionState).
svn path=/trunk/mcs/; revision=33902
* DbConnectionOptions.cs: New class for Fx 2.0. Partial implementation
to support new methods in DBDataPermission.
* DbConnectionString.cs: Updated class to split from/inherit
DbConnectionOptions class.
* DbDataPermission.cs: Implemented Add, Clear, Copy, ToXml methods and
completed constructors.
* DbDataPermissionAttribute.cs: Completed/fixed class.
* PermissionHelper.cs: Helper methods to create permission classes.
svn path=/trunk/mcs/; revision=33828
* DbDataAdapter.cs: Fix for out of memory exceptions when trying to fill a dataset with a query which doesn't return a resultset like insert, delete or update.
svn path=/trunk/mcs/; revision=33127
* DataContainer.cs :CheckedforNull before calling the relavant setmethods in each of the
SetItemForDataRecord method for the DateTimeClass
(patch submitted by Aleksey Demakov)
svn path=/trunk/mcs/; revision=30829
* DataContainer.cs - CheckedforNull before calling the relavant setmethods in each of the
SetItemForDataRecord method for all the classes.
svn path=/trunk/mcs/; revision=29866
- Store and retreival of null and DBNull values reviewed.
- Added GetInt64 to support AutoIncrement of DataColumn.
- Added missing CopyValue method to BitDataContainer.
- Added FillValues method to propagate single value to whole container.
svn path=/trunk/mcs/; revision=29753