Commit Graph
15 Commits
Author SHA1 Message Date
Raja R Harinath b24f84250b Some more style nits
* DataContainer.cs (*.ZeroOut): Rename from the somewhat unclear
'SetDefaultValue'.
(IsNull): Use a more idiomatic form of the short-circuit.
(*.SetValue): Convert to one-liners.

svn path=/trunk/mcs/; revision=112367
2008-09-05 09:19:39 +00:00
Raja R Harinath 6540940241 Reduce massive code duplication
* System.Data.Common/DataContainer.cs (DataContainer): Rename from
AbstractDataContainer.
Introduce new 'protected abstract' members to encapsulate
type-specific handling, and move all common code here.
(DataContainer.Create): Rename from CreateInstance.
* System.Data/DataColumn.cs: Update to changes in DataCollection.

(Since a majority of the lines are changed, I decided to dos2unix the file
too)

svn path=/trunk/mcs/; revision=110002
2008-08-08 17:47:58 +00:00
Konstantin Triger e1123c3b45 use Invariant culture for string manipulations
svn path=/trunk/mcs/; revision=75441
2007-04-05 13:53:23 +00:00
Konstantin Triger acf2a89915 removed extra type validation for object container
svn path=/trunk/mcs/; revision=52124
2005-10-24 12:11:37 +00:00
Boris Kirzner df3384d411 Do not convert value if container type is System.Object.
svn path=/trunk/mcs/; revision=49634
2005-09-07 14:01:31 +00:00
Konstantin Triger c32144fac2 fix value fetch logic
svn path=/trunk/mcs/; revision=44978
2005-05-25 07:58:40 +00:00
Boris Kirzner 13b3fc466d Drop of Mainsoft.System.Data
svn path=/branches/Mainsoft.System.Data/mcs/; revision=43606
2005-04-26 17:20:55 +00:00
Atsushi Eno acd4da0ec6 2005-01-14 Atsushi Enomoto <[email protected]>
* 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
2005-01-14 17:03:07 +00:00
Umadevi S 58c4a474da 2004-07-07 Umadevi S <[email protected]>
* 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
2004-07-07 09:39:02 +00:00
Umadevi S 41e1f3ce9f 2004-06-18 Umadevi S <[email protected]>
* DataContainer.cs - CheckedforNull before calling the relavant setmethods in each of the
                SetItemForDataRecord method for all the classes.

svn path=/trunk/mcs/; revision=29866
2004-06-18 10:33:17 +00:00
Boris Kirzner 08f68bf0c9 * Datacontainer.cs :
- 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
2004-06-17 08:35:21 +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
Boris Kirzner d424220532 * DataContainer.cs : Bug fixes in BitDataContainer.get_Item and StringDataContainer.SetValue .
svn path=/trunk/mcs/; revision=28244
2004-05-27 10:36:17 +00:00
Boris Kirzner b0ca597d50 * Datacontainer.cs : CompareValues reviewed. set_Item and get_Item of null and DBNull values in case of DataContainers for primitive types reviewed. Added check for null values when reading from IDataRecord.
svn path=/trunk/mcs/; revision=27765
2004-05-20 17:35:22 +00:00
Boris Kirzner 033e708f3c * RecordCache.cs - added. Each instance of record cache belongs to specific table and manages pool of records ( indexes into data containers) to be used by data rows.
* DataContainer.cs - added. Provides implementation for data containers that holds data in arrays of primitives or objects. Each data container belongs to specific DataColumn.
* DbDataAdapter.cs - changes to complete data storage redesign. Bug fix in FillTable ( to fetch exact number of records required ).

svn path=/trunk/mcs/; revision=27655
2004-05-19 09:46:00 +00:00