1 2008-06-28 Zoltan Varga <vargaz@gmail.com>
3 * DataTable.cs (NewRowArray): Avoid using reflection if possible.
5 2008-06-19 Atsushi Enomoto <atsushi@ximian.com>
7 * DataRelation.cs : keep createConstraints flag for cloning in
8 DataSet.Merge(). Use different flag for initialization instead.
9 * MergeManager.cs : When cloning DataRelation, createConstraints
10 flag should depend on the source.
11 * XmlSchemaDataImporter.cs : create constraints when creating
14 2008-06-18 Atsushi Enomoto <atsushi@ximian.com>
16 * DataSet.cs : when InferSchema mode, ReadXml() should do "merging
18 * XmlDataInferenceLoader.cs : fixed primary key processing in
19 merging inference mode. Reuse existing one, instead of rejecting
22 2008-06-17 Atsushi Enomoto <atsushi@ximian.com>
24 * XmlSchemaWriter.cs, DataSet.cs, XmlTableWriter.cs, DataTable.cs,
25 XmlDataInferenceLoader.cs, XmlSchemaDataImporter.cs:
26 fix xsd output on msdata:Locale and msdata.UseCurrentCulture.
27 Output explicit Locale only when it is explicitly specified.
28 On the other hand, ReadXml/ReadXmlSchema fills Locale as en-US
30 Some code unification in DataTable.WriteXmlSchema() overloads.
32 2008-06-16 Atsushi Enomoto <atsushi@ximian.com>
34 * DataColumn.cs : replaced Activator.CreateInstance() with
35 returning explicit Null member for each SqlXxx type.
37 2008-06-13 Atsushi Enomoto <atsushi@ximian.com>
40 DefaultValue can be non-DBNull. For SqlXxx type, it becomes
41 SqlXxx.Null. Also, changing DataType may change DefaultValue
42 to be consistent with the new type (say, having int DefaultValue
43 for new string DataType is wrong).
46 This should be fixed to take non-DBNull default value into
49 2008-06-12 Atsushi Enomoto <atsushi@ximian.com>
51 * DataSet.cs, DataTable.cs, XmlSchemaDataImporter.cs : constraints
52 on missing tables are ignored when reading a DataTable schema.
53 Fixes part of DataTableTest.ReadXmlSchema() test.
55 2008-05-30 Marek Habersack <mhabersack@novell.com>
57 * Constraint.cs: do not use synthetized event accessors (to avoid
60 2008-05-29 Marek Habersack <mhabersack@novell.com>
62 * DataColumn.cs: do not use synthetic methods for events - this
63 avoids unnecessary locking, especially for internal events.
65 2008-04-21 Gert Driesen <drieseng@users.sourceforge.net>
67 * DataRowView.cs: Modified argument names to match MS. Use
68 String.Empty instead of "". Code formatting.
70 2008-04-16 Veerapuram Varadhan <vvaradhan@novell.com>
72 * XmlDataInferenceLoader.cs (ReadXml): Make sure the name of
73 reference key column(s) in child tables are unique.
75 * XmlSchemaWriter.cs (WriteSchema, WriteDataSetElement,
76 WriteTableType, WriteChildRelations): Handle the scenario wherein
77 we have a relation and only one table. This can occur when we
78 have an XML with same parent/child table names.
80 2008-03-31 Veerapuram Varadhan <vvaradhan@novell.com>
82 * DataView.cs: Reverting rev#98474 changes - as it broke quite a
85 2008-03-23 Gert Driesen <drieseng@users.sourceforge.net>
87 * DataSet.cs: Corcompare fix.
88 * IDataRecord.cs: Corcompare fix.
90 2008-03-22 Gert Driesen <drieseng@users.sourceforge.net>
92 * DataViewSettingCollection.cs: Corcompare fixes and code formatting.
93 * SyntaxErrorException.cs: Corcompare fixes and code formatting.
94 * EvaluateException.cs: Corcompare fixes and code formatting.
95 * StrongTypingException.cs: Coecompare fixes and code formatting.
96 * ReadOnlyException.cs: Corcompare fixes and code formatting.
97 * DataTableCollection.cs: Corcompare fixes and code formatting.
98 * MissingPrimaryKeyException.cs: Corcompare fixes and code formatting.
99 * DeletedRowInaccesibleException.cs: Corcompare fixes and code
101 * DataSet.cs: Corcompare fixes and code formatting.
102 * DuplicateNameException.cs: Corcompare fixes and code formatting.
103 * DataView.cs: Corcompare fixes and code formatting.
104 * VersionNotFoundException.cs: Corcompare fixes and code formatting.
105 * MergeFailedEventArgs.cs: Corcomare fixes and code formatting.
106 * InvalidExpressionException.cs: Corcompare fixes and code formatting.
107 * DBConcurrencyException.cs: Corcompare fixes and code formatting.
108 * DataRowView.cs: Corcompare fixes and code formatting.
109 * DataViewManager.cs: Corcompare fixes and code formatting.
110 * ConstraintException.cs: Corcompare fixes and code formatting.
111 * InvalidConstraintException.cs: Corcompare fixes and code formatting.
112 * IDataRecord.cs: Corcompare fixes.
113 * RowNotInTableException.cs: Corcompare fixes and code formatting.
114 * TypeDataSetGeneratorException.cs: Corcompare fixes and code
116 * InRowChangingEventException.cs: Corcompare fixes and code formatting.
117 * NoNullAllowedException.cs: Corcompare fixes and code formatting.
118 * DataException.cs: Corcompare fixes and code formatting.
120 2008-03-17 Veerapuram Varadhan <vvaradhan@novell.com>
122 ** Fixes part1 of #357947
123 * DataView.cs: (OnRowDeleted): Don't call update, instead delete the row
124 directly from Index. Peformance fix submitted by Hubert FONGARNAND
125 <informatique.internet@fiducial.fr>.
127 2008-02-04 Arina Itkes <arinai@mainsoft.com>
129 * DataTable.cs: Fix for IXmlSerializable.ReadXml.
131 2008-01-28 Arina Itkes <arinai@mainsoft.com>
133 * DataTable.cs: Fix for IXmlSerializable.WriteXml.
135 2007-10-21 Gert Driesen <drieseng@users.sourceforge.net>
137 * DataColumn.cs: Fixed ParamName of ArgumentNullException. Modified
138 exception message for invalid DateTimeMode value to match MS. Code
141 2007-10-19 Nagappan <anagappan@novell.com>
143 * DataRelation.cs: Removed bogus TODO.
145 2007-09-27 Nagappan A <anagappan@novell.com>
147 * DataRelationCollection.cs: Added LAME spec comment as there is no
148 relevant event. Removed MonoTODO too.
150 2007-09-26 Nagappan A <anagappan@novell.com>
152 * DataView.cs (ToTable): Added params keyword.
154 * DataTable.cs: Added XmlSchemaProvider attribute.
156 2007-09-25 Konstantin Triger <kostat@mainsoft.com>
158 * DataSet.cs: correct WriteAttributeString while writing xml with
159 XmlWriteMode.WriteSchema.
161 2007-09-25 Nagappan A <anagappan@novell.com>
163 * DataTable.cs: Code alignment.
165 2007-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
167 * DataColumnCollection.cs: refactoring, fixed columnNameCount comparer
168 to remove culture sensitive ToLower() calls
170 2007-07-22 Nagappan A <anagappan@novell.com>
172 * DataRow.cs: Added internal set property for Table in 2.0
175 * DataColumn.cs: Added internal set property for Table in 2.0
178 2007-07-01 Gert Driesen <drieseng@users.sourceforge.net>
180 * DataRowCollection.cs: Only override Count on 2.0 profile.
181 * RelatedDataView.cs: Fixed line endings.
182 * XmlDataInferenceLoader.cs: Fixed line endings.
184 2007-06-30 Gert Driesen <drieseng@users.sourceforge.net>
186 * DataTableCollection.cs: CopyTo is 2.0 only. Removed extra tabs,
187 and changed spaces to tabs.
189 2007-06-06 Nagappan A <anagappan@novell.com>
191 * DataTable.cs (Select): Removed ununsed variable.
193 2007-05-30 Nagappan A <anagappan@novell.com>
195 * DataColumnCollection.cs (CopyTo): Method specific to 2.0
198 * DataRowCollection.cs (Count): Property is overridden in 2.0
201 * TypedDataSetGenerator.cs: Class is obsolete in 2.0 profile.
203 * DataRelationCollection.cs (CopyTo): Method specific to 2.0
206 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
208 * CustomDataClassGenerator.cs: Misc fixes in order to emit correct VB code.
209 CreateDataSetDefaultCtor: we're creating a delegate, not an object, so use a DelegateCreateExpression.
210 CreateDataSetSchemaChanged: we're comparing value types, use the correct equality operator.
211 CreateTableGetEnumerator: explicity state that the method is an implementation of IEnumerable.GetEnumerator.
212 CreateTableEventStarter: we're invoking a delegate, so use a DelegateInvokeExpression.
213 Several changes to not generate members with names that only differ by case.
215 2007-05-18 Chris Toshok <toshok@ximian.com>
217 * DataColumnCollection.cs (Add ()): handle the default name case
219 (Add (string)): same - let Add(DataColumn) handle the default name
221 (Add (DataColumn)): in the 1.1 case, we need to add the column's
222 PropertyChanged handler *before* possibly setting the column name
223 to the default so we emit the right events (Changed/Added). In
224 the 2.0 case, we add the event handler after the name is set, and
225 therefore only emit the Added event.
227 2007-05-07 Adar Wesley <adarw@mainsoft.com>
229 * ConstraintCollection.cs: added CopyTo method with strongly typed Constraint[]
232 * DataTable.cs: added implementation of IXmlSerializable. Added missing
233 method ReadXmlSerializable.
235 2007-04-19 Chris Toshok <toshok@ximian.com>
237 * DataColumnCollection.cs (Add): the Element in our
238 CollectionChangedEventArgs should be the column, not the
239 collection. Also, add an event handler for the column's
240 PropertyChanged event so we can propagate metadata changes.
241 (Remove): Analogous change to the CollectionChangedEventArgs as in
242 Add. Also, unhook the column's PropertyChanged event.
243 (OnCollectionmetaDataChanged): emit our new event.
244 (ColumnPropertyChanged): called when the column's ColumnName
245 property changes. Emit the proper CollectionChangeEvent.
247 * DataView.cs (ColumnCollectionChanged): fix up the comment about
248 CollectionChangeAction.Refresh, and make explicit what generates
250 (RegisterEventHandlers): hook up
251 DataColumnCollectoin.CollectionMetaDataChanged.
252 (RegisterEventHandlers): unhook
253 DataColumnCollectoin.CollectionMetaDataChanged.
255 2007-02-23 Nagappan A <anagappan@novell.com>
257 * DataRow.cs (Item): Checks whether this DataRow exist in the
258 DataRowCollection, then compute the expression. Fixes bug #
261 * DataRowCollection.cs (IndexOf): Modified as internal method for
264 * XmlDataReader.cs (StringToObject): DataTables containing
265 System.Type throw exception on deserializing. Fixes bug # 80596.
267 * XmlDataLoader.cs (StringToObject): DataTables containing
268 System.Type throw exception on deserializing. Fixes bug # 80596.
270 2007-02-20 Konstantin Triger <kostat@mainsoft.com>
272 * XmlSchemaDataImporter.cs: ensure the tables are created in document order.
274 2007-02-19 Konstantin Triger <kostat@mainsoft.com>
276 * XmlDataReader.cs, XmlDataInferenceLoader.cs, XmlDiffLoader.cs:
277 ignore attributes from "http://www.w3.org/XML/1998/namespace".
278 * XmlConstants.cs: add constant for "http://www.w3.org/XML/1998/namespace".
279 * XmlDataInferenceLoader.cs: track the added elements index to fix the
280 added column ordinal.
282 2006-12-11 Chris Toshok <toshok@ximian.com>
284 * DataView.cs: GetItemProperties should return an empty collection
285 if we have no data table. Presently we NRE.
287 2006-12-08 Nagappan A <anagappan@novell.com>
289 * DataTable.cs (ReadXml): Removed if condition, as it should not
290 check the exception string.
292 2006-12-07 Chris Toshok <toshok@ximian.com>
294 * DataView.cs: add CollectionChangeEventHandler's on the
295 ChildRelations and ParentRelations collections, and emit
296 ListChanged events with PropertyDescriptor.Added/Deleted/Changed
299 2006-12-07 Nagappan A <anagappan@novell.com>
301 * DataTable.cs (ReadXml): Integrated the implementation of
302 ReadXml, patch provided by deepak_2603@yahoo.com.
304 2006-12-05 Nagappan A <anagappan@novell.com>
306 * DataTable.cs (WriteXmlSchema): Using XmlTextWriter instead of
307 XmlWriter, solved the File Sharing IO Exception.
309 2006-11-28 Hubert FONGARNAND, FrAcdAcric Mestayer <informatique.internet@fiducial.fr>
311 * DataColumnCollection.cs : Improved Column searching when not
312 using exact column name (case sensitivity). Fixes bug # 80075.
314 2006-11-28 Nagappan A <anagappan@novell.com>
316 * XmlSchemaDataImporter.cs: Fixed 2.0 profile compilation
317 warnings. Using AttributeSchemaType instead of AttributeType and
318 ElementSchemaType instead of ElementType.
320 * TypedDataSetGenerator.cs: Modified the profile check from
321 !NET_1_1 to !NET_1_0, as this class is obsolete from 1.1 profile.
323 * DataRelationCollection.cs (Item): Modified the property Item as
324 abstract and implemented it in DataSetRelationCollection and
325 DataTableRelationCollection classes.
327 * DataRowView.cs: Remove bogus MonoTODOs.
329 * ForeignKeyConstraint.cs (ForeignKeyConstraint): Implemented
330 2.0 profile's missing constructor.
332 * XmlDataLoader.cs (StringToObject): Modify XmlConvert.ToDateTime
333 to use XmlDateTimeSerializationMode, as the default ToDataTime
336 * XmlDataReader.cs (StringToObject): Modify XmlConvert.ToDateTime
337 to use XmlDateTimeSerializationMode, as the default ToDataTime
340 * DataView.cs (IsInitialized): Added browsable attribute.
342 * DataViewSettingCollection.cs (CopyTo): Implemented missing 2.0
345 * DataRelation.cs (DataRelation): Added 2.0 profile constructor to
346 take parentTableNameSpace and childTableNameSpace as argument.
347 (FinishInit): Update parentTableNameSpace and childTableNameSpace,
348 when the string is not empty in 2.0 profile.
350 * DataRowCollection.cs: Implemented Count public property.
351 Added !NET_2_0 for List protected property, as it has been removed
353 (IndexOf): Implemented new public method.
354 (CopyTo): Implemented new public override method.
355 (GetEnumerator): Implemented new public override method.
357 * DataTable.cs (Load): Throw ArgumentNullException, when reader
359 (WriteXmlSchema): Throw InvalidOperationException, when table name
360 is empty. When DataSet Namespace is set, append that with '_x003A_'
362 (IsInitialized): Added browsable attribute.
364 * DataSet.cs (Load): Throw ArgumentNullException, when reader
366 (IsInitialized): Added browsable attribute.
367 (WriteObjectXml): Modify XmlConvert.ToDateTime to use
368 XmlDateTimeSerializationMode, as the default ToDataTime method id
371 * XmlSchemaWriter.cs (WriteSchema): Modified UseCurrentCulture to
373 (WriteDataSetElement): Added minOccurs attribute.
374 (WriteConstraints): Check for tables length, if > 1 then add the
375 relations to XmlSchema.
377 2006-11-21 Nagappan A <anagappan@novell.com>
379 * DataView.cs: Added public event Initialized.
380 (IsInitialized): Implemented public function to check whether a
381 dataview is initialized or not.
383 * DataSet.cs: Added ISupportInitializeNotification for .NET 2.0
385 (RemotingFormat): Set the default value attribute as
386 SerializationFormat.Xml.
387 (IsInitialized): Implemented public function to check whether a
388 table is initialized or not.
389 (CreateDataReader): Added params keyword in argument.
390 (Load): Implemented all Load overloaded functions.
391 (GetObjectData): Modified to public for .NET 2.0 implementation.
392 (IsBinarySerialized): Implemented the public API to check whether
393 the given stream is binary serialized or not.
394 * DataTable.cs: Added ISupportInitializeNotification for .NET 2.0
397 2006-11-15 Nagappan A <anagappan@novell.com>
399 * DataTable.cs (RemotingFormat): Set the default value attribute
400 as SerializationFormat.Xml.
401 (OnTableNewRow, NewRowAdded): Implemented new function to raise an
402 event when a new row is added to the table.
403 (DataTableInitialized, OnTableInitialized): Implemented new
404 function to raise an event when a table is initialized.
405 (IsInitialized): Implemented public function to check whether a
406 table is initialized or not.
407 (OnTableClearing): Raise an event before the table is cleared.
408 (GetObjectData): Modified to public for .NET 2.0 implementation.
409 (Load): Implemented missing API to call the registered delegate
410 function on load exception.
411 (WriteXmlSchema): Implemented overloaded function to write the
412 hierarchy with XML Schema.
414 2006-11-15 Konstantin Triger <kostat@mainsoft.com>
416 * DataTable.cs: Fixed LoadDataRow scenarios.
417 * DataRowCollection.cs: Added override for AddInternal taking DataRowAction parameter.
419 2006-11-14 Konstantin Triger <kostat@mainsoft.com>
421 * DataColumn.cs: consider row version wen checking row.IsNull().
423 2006-10-18 Nagappan A <anagappan@novell.com>
425 * ForeignKeyConstraint.cs (_validateColumns): Parent and child
426 columns can't be the same column - Exception, bug # 79689
428 2006-10-13 Nagappan A <anagappan@novell.com>
430 * DataTable.cs (DeserializeConstraints): Fine tuned the
431 serialization and deserialization of constraints.
433 * DataRelationCollection.cs (Contains): Fixes bug
434 #79233. DuplicateNameException when two relations for different
435 DataTables in DataSet are defined
437 2006-10-06 Patrick Earl <mono@patearl.net>
439 * DataTable.cs, XmlTableWriter.cs, XmlSchemaWriter.cs, DataSet.cs:
440 Implemented DataTable.WriteXml
442 2006-09-26 Nagappan A <anagappan@novell.com>
444 * DataTable.cs, DataSet.cs, DataColumn.cs, Constraint.cs,
445 DataRow.cs: Implementation of Binary Serialization /
448 * DataTable.cs (RowsExist): Check rows based on version.
450 * DataRow.cs: Raise exception same as MS.NET. Thanks to
451 Hubert FONGARNAND <informatique.internet@fiducial.fr> for
452 providing this patch.
454 2006-09-07 Vladimir Krasnov <vladimirk@mainsoft.com>
456 * DataSet.cs: added 2.0 stubs to solve typed dataset porting issues
458 2006-08-30 Nagappan A <anagappan@novell.com>
460 * DataRow.cs (EndEdit): DataRow.EndEdit emits RowChanged too
461 often. Fixes bug # 78885.
463 2006-08-14 Konstantin Triger <kostat@mainsoft.com>
465 * DataTableCollection.cs, DataRelationCollection.cs, DataRowCollection.cs,
466 DataColumnCollection.cs: implemented specialized CopyTo() method.
468 2006-07-26 Nagappan A <anagappan@novell.com>
470 * DataTable.cs (GetIndex): Fixes memory explode on
471 DataTable.Select - Bug # 77691.
473 2006-07-25 Nagappan A <anagappan@novell.com>
475 * DataView.cs (OnRowCollectionChanged): On DataTable.Clear,
476 setting rowCache to empty DataRowView. Fixes bug # 78610.
478 * DataTable.cs (AcceptChanges): Raises Reset event. Fixes bug #
481 2006-07-20 Senganal T <tsenganal@novell.com>
484 - Merge : moved the columntypecheck to AdjustSchema,
485 Remove the unncessary calls to Table.ResetIndexes.
486 - AdjustSchema : check for columntypes
487 Thanks to Deepak Kr Valechha for the patch
489 2006-07-17 Senganal T <tsenganal@novell.com>
492 - ToTable : Implemented all the overloads
493 - Equals : Implemented
494 - IBindingListView : Implemented the interface
496 2006-07-15 Senganal T <tsenganal@novell.com>
498 * DataTableCollection.cs :
499 - Contain,IndexOf,Remove,Add,Indexer : support for table
500 namespace. Remove redundant checks in Remove/Add.
502 2006-07-14 Senganal T <tsenganal@novell.com>
505 - SetOrdinal : Implemented
506 - Ordinal : added internal set
507 * DataColumnCollection.cs :
508 - Add : Set the column ordinals
509 - MoveColumn : Changes the position of column in the
512 2006-07-14 Senganal T <tsenganal@novell.com>
515 - Merge - Implement the merge methods
516 - Clone - Ensure column's DateTimeMode property is also copied
518 - DateTimeMode : Implemement
519 - DataTypeMatches : Added. In 2.0 profile, test DateTime
520 property when verifying column types.
522 - ctr : For DateTime columns, check DateTimeMode property
523 * ForeignKeyConstraint.cs :
524 - _validateColumns : For DateTime columns, check DateTimeMode
527 - Merge : Added. Overload to merge two tables
528 - ResolveColumns : Change the method to use a table instead of
530 - Renamed AdjustSchema to AdjustSchemaRelations
532 2006-07-13 Senganal T <tsenganal@novell.com>
535 - WriteTables : Remove some commented out code
536 - WriteTable : Fix the logic to skip the table data when the
537 table has a nested relation.
540 2006-07-12 Senganal T <tsenganal@novell.com>
542 * ConstraintCollection.cs :
543 - Remove (string): If constraint name is not found, throw exception
544 - Remove (Constraint): Set the ConstraintCollection of the removed
546 Thanks to Deepak Kr Velachha for reporting the bug.
548 2006-07-12 Senganal T <tsenganal@novell.com>
551 - LoadColumnChildren : If schema name is missing, skip the
553 Thanks to Deepak Kr Velachha for identifying the bug.
555 2006-07-11 Senganal T <tsenganal@novell.com>
557 * XmlSchemaWriter.cs :
558 - WriteTableType : If Relation.Nested is true, then nest the
559 table schemas. Correct the xml to add the table element within
560 the <Sequence> element.
561 - WriteChildRelations : Correct the Xml element name and
562 attributes. Close the attribute correctly.
564 * XmlSchemaDataImporter.cs :
565 - GenerateRelationship : When creating the relations, if
566 ParentColumn exists but Corr ChildCol is null, create a child
567 Column with the same name and type as the parent column.
568 - Renamed DataSetDefinesPrimaryKey to DataSetDefinesKey
569 - DataSetDefinesKey : if either xsd:key or xsd:keyref is
570 defined for the dataset, do not manually create the relations.
571 - AddParentKeyColumn : if Columnname already exists, use
572 colname_0 instead of throwing an exception.
573 - FillDataColumnRepeatedSimpleElement : Do not set the Unique
574 value as it creates a constraint by default. The unique value
575 is automatically set when pk is set.
576 - CreateChildColumns : Added. Creates a ChildColumn duplicating
577 ParentColumn properties.
579 2006-06-30 Senganal T <tsenganal@novell.com>
582 - SetAdded, SetModified : new methods in 2.0
584 2006-06-30 Senganal T <tsenganal@novell.com>
585 * SerializationFormat.cs, DataSetDateTime.cs, DataTableNewRowEventArgs.cs,
586 DataTableNewRowEventHandler.cs : Added
587 * SyntaxErrorException.cs EvaluateException.cs StrongTypingException.cs
588 IsolationLevel.cs ReadOnlyException.cs DataTableCollection.cs
589 DataRowState.cs MissingPrimaryKeyException.cs DeletedRowInaccessibleException.cs
590 DuplicateNameException.cs PropertyAttributes.cs StatementType.cs
591 VersionNotFoundException.cs FillErrorEventHandler.cs DataRowChangeEventHandler.cs
592 XmlWriteMode.cs InvalidExpressionException.cs StateChangeEventHandler.cs
593 DbType.cs DataColumnChangeEventHandler.cs KeyRestrictionBehavior.cs
594 ConnectionState.cs SchemaType.cs MergeFailedEventHandler.cs SqlDbType.cs
595 DataRowVersion.cs ForeignKeyConstraint.cs DBConcurrencyException.cs
596 OperationAbortedException.cs MissingSchemaAction.cs DataTableClearEventHandler.cs
597 DataRowView.cs DataRowAction.cs ConstraintCollection.cs DataTableReader.cs
598 LoadOption.cs InvalidConstraintException.cs InternalDataCollectionBase.cs
599 ParameterDirection.cs AcceptRejectRule.cs UpdateRowSource.cs XmlReadMode.cs
600 TypedDataSetGenerator.cs RowNotInTableException.cs TypeDataSetGeneratorException.cs
601 InRowChangingEventException.cs MissingMappingAction.cs NoNullAllowedException.cs
602 CommandBehavior.cs PropertyCollection.cs CommandType.cs
603 UpdateStatus.cs ConflictOption.cs DataViewRowState.cs Rule.cs
604 DataColumnCollection.cs :
607 2006-06-27 Senganal T <tsenganal@novell.com>
609 * DataSet.cs, DataTable.cs : implement CreateDataReader methods
610 * InternalDataCollectionBase.cs
611 - ToArray () : helper method
612 * DataTableReader.cs :
613 - GetSchemaTable : set the schema info correctly
614 - GetProvider*, GetChars, GetBytes, GetValues :
615 Implemented the methods
616 - GetName : return the name of corresponding schema.
617 - ValidateSchemaIntact, OnColumnCollectionChanged,
619 Listen and raise expception if schema changes
621 2006-06-21 Chris Toshok <toshok@ximian.com>
623 * DataView.cs: update the index after we successfully add the new
624 row. This keeps the dataview's row view count in sync with the
627 2006-06-20 Chris Toshok <toshok@ximian.com>
629 * DataView.cs: the PropertyDescriptorCollection returned by
630 ITyepdList.GetItemProperties should include the child relations of
631 our table, in order to match MS's behavior.
633 * DataViewManager.cs: ICollection.Count property is always 1.
635 2006-06-15 Senganal T <tsenganal@novell.com>
638 - Select : If Sort String is not provided, sort the result
639 DataRows in Ascending Order of the Columns used in the filter
641 2006-06-15 Senganal T <tsenganal@novell.com>
644 - InternalEnforceConstraints : Check if any null constraints
645 are violated. Throw ConstraintException only after all the errors
648 - EnforceConstraints : Move away the logic to check for
649 NullConstraintViolation.
650 - AssertNotNullConstraint : Checks for Null Constraint
652 - EndLoadData : Do not throw any exceptions here. All the
653 errors have to be found and RowErrors set before throwing the
656 - ImportRecrod : Check the values of the row for any null
658 - SetColumnError : If the error for column is already set,
659 do not add a new error but edit the existing error.
660 - CheckValue : Set the NullConstraintViolation flag if either
661 table is being loaded or if EnforceConstraints is set to
663 * Constraint.cs : Do not throw exception when EnforceConstraints is
664 set to false or table is being loaded.
665 * UniqueConstraint.cs : Correct the error message. Set ColumnErrors
666 along with the RowError.
668 2006-05-31 Gert Driesen <drieseng@users.sourceforge.net>
670 * DataTable.cs: Renamed initInProgress to fInitInProgress. BeginInit
671 and EndInit must only be virtual in 2.0 profile. Set eol-style to CRLF.
673 2006-05-31 Senganal T <tsenganal@novell.com>
675 * XmlDataInferenceLoader.cs :
676 - InferTableElement : Repeated element should result in a single
678 Patch from Deepak Kr Velachha
680 2006-04-21 Senganal T <tsenganal@novell.com>
682 * DataRowCollection.cs :
683 - Find : If search on the table using PrimaryKey fails and if
684 index is not being maintained (during table load), search the
686 - Find (int) : Removed. Deadcode.
688 - Not necessary to delete each row from the Index.
689 Just reset the Indexes after cleaning up the row
691 - Simplify dependency check for child tables
694 - Do not use DataRowCollection.Find to search for
695 existing records as this wud check even newly loaded rows.
697 - Do not add new records to Index. Update Index only
698 if an existing record is modified. New records will be
699 taken care by EndLoadData.
701 2006-04-19 Senganal T <tsenganal@novell.com>
703 * XmlHelper.cs : A helper class for encoding/decoding schema names.
704 Caches the Schema names to minimize encoding/decoding operations and
705 duplicate strings created.
707 - Use XmlHelper for encoding/decoding schema names.
708 - Encode ConstraintNames when writing as xml.
711 * XmlDataInferenceLoader.cs
712 * XmlSchemaDataImporter.cs
713 - Use XmlHelper for encoding/decoding schema names.
714 * DataTableCollections : Minor code refactor.
715 * DataRow.cs : Create XmlElement only if required.
717 2006-04-07 Senganal T <tsenganal@novell.com>
720 - InternalEnforceConstraints() : Reset Indexes of all tables
721 before validating constraints. Fixes #78010
723 2006-03-04 Boris Kirzner <borisk@mainsoft.com>
724 * TypeDataSetGeneratorException.cs: fix .Net Soap serialization compatibility.
726 2006-03-25 Senganal T <tsenganal@novell.com>
729 - RejectChanges : When row is in Deleted state, add the row back to
730 Indexes and Validate the row.
733 2006-03-23 Senganal T <tsenganal@novell.com>
736 - LoadDataRow : Add the row to the indexes, when loading a new row.
738 2006-03-22 Senganal T <tsenganal@novell.com>
741 - PrimaryKey : Set the IsPrimaryKey attribute before Removing from collection.
742 - RemoveUniqueConstraints : Removed. dead code.
745 - If adding/removing constraint fails, retain Unique value
746 - Remove redundant code
747 * UniqueConstraint.cs :
748 - SetIsPrimaryKey : Added. Sets the value of IsPrimaryKey.
749 - RemoveFromConstraintCollectionCleanup : If constraint is on a single column, then
750 set Unique for that column to false.
751 - CanRemoveFromCollection : Do not remove constraint, if its a PrimaryKey
753 2006-03-20 Senganal T <tsenganal@novell.com>
756 - CopyRelations () : When copying the relation, do not add constraints
757 automatically for the relation.
758 - OnMergeFailed () : If merge fails and no handler is set for the MergeFailedEvent,
759 then throw DataException
760 * ConstraintCollection.cs :
761 - Add () : Check if a constraint already exists on the Columns that are being
763 - IndexOf () : Do not check for equivalent constraints, check for the exact instance.
764 * MergeManager.cs ():
766 - Handle the MissingSchemaAction.Error case,
767 - Do not create constraints when mergin the DataRelation
768 - Follow the semantics for schema merge/validation when constraints are already present
769 in the target DataSet.
770 - AdjustPrimaryKeys () :
772 - Verify Order of Columns in the PrimaryKey when merging.
773 - ResolveColumns : Changed the arument to DataSet. Simplifies code elsewhere.
774 - CompareColumnArrays, CompareColumnArrays : Helper funtions.
776 2006-03-09 Senganal T <tsenganal@novell.com>
779 - RejectChanges () : Add the row to index, if it was in deleted state and
780 Update the index if in Modified State.
781 - AcceptChanges () : Do not update the Indexes.
782 - EndEdit () : Update the indexes even if BeginLoadData has been called
783 on the table. Ideally, indexes should not be maintained during DataLoad,
784 but this needs to handled in multiple places correctly. For now, just maintain
785 the index to ensure correct operation.
787 2006-03-05 Senganal T <tsenganal@novell.com>
790 - BeginInit (), EndInit () : Implemented methods
791 - InitInProgress : Added.
793 - EndInit () : Move the adding of columns and constraints
795 - FinishInit () : Added. Adds the Constraints and Columns
797 - InitInProgress : Added.
799 - FinishInit () : Added. Virtual method
800 - InitInProgress : Added. Virtual property
801 * UniqueConstraint.cs
802 * ForeignKeyConstraint.cs
803 - FinishInit () : Added.
804 - InitInProgress : Added.
805 - DataColsNotValidated : Removed.
806 * ConstraintCollection.cs
807 - PostAddRange : Removed event
808 - PostEndEdit () : Renamed to PostAddRange
809 - Add () : Simplified the testing if constraint is initialized
810 - AddRange () : Simplified initializing the constraints
811 * DataTableCollection.cs
812 - PostAddRange () : Added. Adds the tables to the collection
813 * DataColumnColletion.cs
814 - PostEndInit () : Renamed to PostAddRange.Also, add column to
815 the collection only if not null.
817 Added/Implemented methods for design time support. Renamed some methods for consistency
818 in naming across classes for methods serving the same purpose.
820 2006-02-24 Senganal T <tsenganal@novell.com>
822 * UniqueConstraint.cs :
823 - ChildConstraint : Added. Simplifies verifying if constraints are
825 - CanRemoveFromCollection : Fixed the check to verify if constraints is
826 linked to a ForeignKeyConstraint. Fixes #77630
827 * ForeignKeyConstraint.cs :
828 - _validateRemoveParentConstraint : Removed. Not used anymore
829 - ParentConstraint : Added. Simplifies verifying if constraints are
831 2006-02-22 Senganal T <tsenganal@novell.com>
834 - RejectChanges : Do not remove Row from Indexes when state is Deleted.
835 - CheckChildRows : When checking for the ChildRows, use the current value
836 and not the original value.
838 2006-02-18 Atsushi Enomoto <atsushi@ximian.com>
840 * CustomDataClassGenerator.cs : Patch by Marek Habersack. xsd now
841 outputs AutoIncrement, AutoIncrementSeed, AutoIncrementStep and
842 ReadOnly properties. This fixes bug #77576.
844 2006-02-17 Chris Toshok <toshok@ximian.com>
846 * System.Data/DataSet.cs, System.Data/DataView.cs,
847 System.Data/ForeignKeyConstraint.cs,
848 System.Data/DataViewManager.cs, System.Data/DataRow.cs,
849 System.Data/DataSysDescriptionAttribute.cs,
850 System.Data/UniqueConstraint.cs, System.Data/DataTable.cs,
851 System.Data/DataRelation.cs: lots of attribute work, removing
852 DataSysDescription atributes (and marking the class obsolete) for
855 2006-02-17 Chris Toshok <toshok@ximian.com>
857 * DataAdapterException.cs: remove this file.
859 2006-02-17 Chris Toshok <toshok@ximian.com>
861 * DataTableReader.cs: Switch to the (bool) form of Dispose to
862 override, as the no-arg form isn't virtual.
864 * Constraint.cs: #ifdef out more DataSysDescriptions.
866 * ConstraintException.cs: add ..ctor (string, Exception) for 2.0.
868 2006-02-17 Chris Toshok <toshok@ximian.com>
870 * DataColumn.cs: #ifdef all the DataSysDescriptions !NET_2_0.
872 * AdapterMappingException.cs: nuke this file.
874 * IDbAsyncConnection.cs, IDbAsyncCommand.cs, IGetTypedData.cs,
875 ISetTypedData.cs, IDataReader2.cs, IDataSources.cs,
876 IDbExecutionContext.cs, IDataRecord2.cs, IDataUpdatableRecord.cs:
877 remove these 2.0 files.
879 2006-02-17 Chris Toshok <toshok@ximian.com>
881 * ConstraintCollection.cs: in 2.0, class is not serializable and
882 is sealed. make all the "virtuals" #if !NET_2_0 as well.
884 * Constraint.cs: not serializable in 2.0.
886 * DataColumnCollection.cs: in 2.0, class is not serializable and
887 is sealed. make all the "virtuals" #if !NET_2_0 as well.
889 * DataRelationCollection.cs: not serializable in 2.0.
891 * DataRelation.cs: not serializable in 2.0.
893 * DataRowBuilder.cs: class is sealed in 2.0.
895 * DataRowCollection.cs: in 2.0, class is not serialized and is
896 sealed. Also, Add isn't virtual in 2.0 (as the class is sealed).
898 * DataRow.cs: not serializable in 2.0.
900 * DataSet.cs: remove some DataSysDescriptions from the 2.0 build,
901 and s/GetDataReader/CreateDataReader.
903 * DataTableCollection.cs: in 2.0, class is not serializable and is
904 sealed. make all the "virtuals" #if !NET_2_0 as well.
906 * DataTableReader.cs: remove VisibleFieldCount property.
908 * DataViewSettingCollection.cs: not serializable in 2.0.
910 * DataViewSetting.cs: not serializable in 2.0.
912 * ForeignKeyConstraint.cs: serializable in 2.0.
914 * OperationAbortedException.cs: class is sealed and serializable.
916 * PropertyCollection.cs: serializable in 2.0.
918 * StatementCompletedEventArgs.cs: class is sealed.
920 * UniqueConstraint.cs: not serializable in 2.0.
922 2006-02-16 Senganal T <tsenganal@novell.com>
925 WriteDataSetElement : Add an annotation element if exists.
926 WriteDataRelationAnnotation : New. Write a DataRelation as an annotation.
927 WriteConstraints : Write ForeignKeyConstraint even when not associated with
928 a DataRelation and add a "ConstraintOnly=true" attribute for such constraints.
929 * XmlConstants.cs : Add a new constant - ConstraintOnly
930 * XmlSchemaImporter.cs :
931 - ConstraintStructure : Add field ,IsConstraintOnly, to distinguish if a foreignkeyconstraint
932 is related to relation or not.
933 - GenerateRelation : Handle the case when parentkey and childkey contain multiple columnnames.
935 2006-02-11 Senganal T <tsenganal@novell.com>
937 * UniqueConstraint.cs :
938 - PostAddRange : Check PrimaryKey is not already set for the table
940 - PrimaryKey : follow ms.net behavior when BeginInit , EndInit is used.
941 - Add new priamry key only when EndInit is called.
942 - Incase of an error, retain old primarykey
944 - Add Constraints after columns are added.
945 - If both PrimaryKey Property and PrimaryKey Constraint are set,
946 then the Constraint takes precedence.
949 2006-02-03 Senganal T <tsenganal@novell.com>
951 * DataTableCollection.cs :
952 - Remove () : Check for invalid TableName
953 - Add () : Verify the table doesn't belong to another dataset
955 - CompleteLastAdded () : Do not raise ItemAdded Event as it is
956 already raised in AddNew().
958 - Expression : Verify that the Column names in the expression are valid
959 - ResetCollectionInfo : Renamed to ResetColumnInfo
961 - RejectChanges () : Reorganized the code to do the Right thing.
962 - Item : Dont check for detached and deleted rows as these are
964 * DataRowCollection.cs :
965 - Add () : Check for null value
967 - PrimaryKey : Set AllowDBNull=false for all the key columns
968 - ImportRow : Import the row only if it is not in Detached state. if in Deleted
969 state, perform the validation when AcceptChanges/RejectChanges is called.
970 * DataColumnCollection.cs :
971 - Add : Validate the column expression before adding it to the collection.
972 - GetColumnDependency () : New. Get the dependencies on the column
973 - CanRemove : Move checks to GetColumnDependency
974 - Clear () : Simplified code. Remove unncessary checks.Also, dont check Expression col.
975 - IndexOf - Check argument.
976 Overall , appropriate error msg's are thrown if Remove/Clear fails. Removed a few
977 redundant checks performed and moved the common code to GetColumnDependency.
979 2006-01-31 Senganal T <tsenganal@novell.com>
981 * DataSet.cs : Modified CopyRelations ()
982 - Added code to copy ForeignKeyConstraints. Fixes #77411.
984 2006-01-18 Boris Kirzner <borisk@mainsoft.com>
985 * DataColumn.cs: added PropertyCchangedEvent handling.
987 2006-01-17 Senganal T <tsenganal@novell.com>
990 ItemArray : Modified to raise RowInTableException only if
991 the concerned row has been removed from the table.Fixes
994 2006-01-16 Boris Kirzner <borisk@mainsoft.com>
995 * DataTable.cs: Drop dependend indexes on column removal.
997 2006-01-16 Atsushi Enomoto <atsushi@ximian.com>
999 * CustomDataClassGenerator.cs :
1000 When a DataRelation connects the same table as parent and child,
1001 generate parent row property as BlahRowParent. Fixed bug #77248.
1003 2006-01-10 Senganal T <tsenganal@novell.com>
1004 * DataRowCollection.cs
1005 - Added ListChangedEvent to notify reset of the collection.
1007 - Subscribes to the ListChangedEvent of DataRowCollection
1010 2006-01-09 Senganal T <tsenganal@novell.com>
1011 * RelatedDataView.cs
1013 - Resolving a name clash in IExpression
1015 2006-01-06 Senganal T <tsenganal@novell.com>
1018 * DataColumnCollection.cs
1019 - Reset the Parameters of DataColumn to Default Values when
1020 column is removed from the Table's Collection
1022 2006-01-03 Senganal T <tsenganal@novell.com>
1025 - ParseSortString() : Changed the way the sort string is parsed.
1026 Using a regex to parse the string.Fixes bug #77104
1028 2005-12-12 Konstantin Triger <kostat@mainsoft.com>
1030 * DataRow.cs: Added index Updates.
1031 EndEdit() fixed to first update indices and then AssertConstraints
1032 based on those indices.
1033 Added Validate() and AssertConstraints() functions.
1034 * DataRowCollection.cs: Removed ValidateDataRowInternal().
1035 * DataTable: Fixed Clear().
1037 2005-12-06 Atsushi Enomoto <atsushi@ximian.com>
1039 * CustomDataClassGenerator.cs : (InitializeFields) handle AllowDBNull
1040 and DefaultValue as well. Patch by Marek Habersack (bug #76709).
1042 2005-12-01 Miguel de Icaza <miguel@novell.com>
1044 * DataSet.cs: Apply patch from Robert Jordan, to fix #76817
1046 2005-11-26 Konstantin Triger <kostat@mainsoft.com>
1048 * ConflictOption.cs: TARGET_JVM include.
1050 2005-11-11 Senganal T <tsenganal@novell.com>
1052 * ConflictOption.cs (new file)
1053 - Added ConflictOption Enumeration
1054 * DataTableReader.cs
1056 - GetProviderSpecificFieldType : Corrected the method name
1058 2005-11-11 Senganal T <tsenganal@novell.com>
1060 * DataSet.cs : Added the SchemaSerializationMode Property for NET_2_0
1062 * SchemaSerializationMode.cs : Added SchemaSerializationMode Enumeration
1063 for NET_2_0 compatibility.
1067 2005-10-20 Atsushi Enomoto <atsushi@ximian.com>
1069 * XmlSchemaWriter.cs : escape names in the schema with XmlConvert.
1072 2005-10-14 Sureshkumar T <tsureshkumar@novell.com>
1074 * DataView.cs: Correct multiple throwing of events. Patch from
1076 (RowStateFilter): Fire ListChangedEvent.
1077 (ApplyDefaultSort): Fire ListChangedEvent.
1078 (CompleteLastAdded): call UpdateIndex to remove the row from rowCache.
1079 (IBindingList.Find): Implemented.
1081 2005-10-11 Sureshkumar T <tsureshkumar@novell.com>
1083 * DataView.cs (IBindingList): Implemented methods for IBindingList interface.
1085 2005-09-26 Lluis Sanchez Gual <lluis@novell.com>
1087 * DataSet.cs: In IXmlSerializable.GetSchema, return null again for
1088 untyped datasets. Fixes bug #76101.
1090 2005-09-21 Boris Kirzner <borisk@mainsoft.com>
1091 * DataRow.cs: Fixes for index updating.
1093 - Reset case-sensitive indexes also if their filter contains columns
1095 - Use GetIndex instead of FindIndex, so the indexes created in Select()
1097 * RelatedDataView.cs: implement IExpression.Equals() and GetHashCode().
1099 2005-09-20 Sureshkumar T <tsureshkumar@novell.com>
1101 * DataView.cs (Sort): Apply default Sorting Order if Sort property
1102 is reset to null. Sort property handles this. Patch from Marc.
1104 * DataTable.cs (ParseSortString): Patch from Marc Haisenko for
1105 allowing [ & ] in DataView.Sort string.
1107 2005-09-01 Boris Kirzner <borisk@mainsoft.com>
1108 * System.Data/DataRowCollection.cs: indexes should be updated even if
1109 EnforceConstraints is false. Check for EnforceConstraints in
1110 ValidateDataRowInternal.
1112 2005-08-08 Gert Driesen <drieseng@users.sourceforge.net>
1114 * DataView.cs: Changed accessibility of dataTable, rowState and
1115 rowCache field to internal to fix public API. Assigned TypeConverter
1117 * ForeignKeyConstraint.cs: IsConstraintViolated is now internal.
1118 * Constraint.cs: IsConstraintViolated is now internal.
1119 * UniqueConstraint.cs: IsConstraintViolated is now internal.
1121 2005-08-05 Atsushi Enomoto <atsushi@ximian.com>
1123 * XmlSchemaDataImporter.cs : When "dataset element" has identity
1124 constraints, then first reserve constraints room for them and then
1125 process elements, skipping pkey creation if there is already
1126 reserved one. Fixed bug #75711.
1128 2005-08-05 Atsushi Enomoto <atsushi@ximian.com>
1130 * XmlDataInferenceLoader.cs : in GetElementMappingType(), don't guess
1131 the same (QNamed) element again when it was already evaluated as
1132 not simple type. Fixed one part of bug #75711.
1134 2005-08-02 Boris Kirzner <borisk@mainsoft.com>
1135 * XmlSchemaDataImporter.cs : Data relations should be processed after the
1136 keys, so no redundant constraints created while relations processing.
1138 2005-07-25 Boris Kirzner <borisk@mainsoft.com>
1139 * FillOptions.cs, ConflictOptions.cs, UpdateOptions.cs:
1140 added ifdef TARGET_JVM.
1142 2005-07-22 Sureshkumar T <tsureshkumar@novell.com>
1144 * DataViewSettingCollection.cs, DataTableCollection.cs,
1145 DataSet.cs, DataView.cs, DataColumn.cs, ForeignKeyConstraint.cs,
1146 DataRelationCollection.cs, UniqueConstraint.cs, DataTable.cs,
1147 DataColumnCollection.cs, DataRelation.cs, DataSet.cs:
1148 - updated attributes & attribute descriptions to match with
1151 * DataView.cs: changed protected members
1152 rowstate,rowcache,dataTable to protected internal.
1153 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint.cs:
1154 changed InConstraintViolated to protected internal.
1155 * ConflictOptions.cs, UpdateOptions.cs, FillOptions.cs: enclosed
1156 with NET_2_0 define.
1158 2005-07-21 Sureshkumar T <tsureshkumar@novell.com>
1160 * ForeignKeyConstraint.cs:
1161 - IsConstraintViolated (): no matter what EnforceConstraints is,
1162 this function now honestly validates. It is upto the caller to run
1164 - AddToConstraintCollectionSetup (): AssertConstraint according to
1167 2005-07-21 Boris Kirzner <borisk@mainsoft.com>
1168 * ForeignKeyConstraint.cs - IsConstraintViolated() should check also for Table.EnforceConstraints.
1169 * DataTable.cs - EnforceConstraints becomes internal so it can be used by ForeignKeyConstraint.
1171 2005-07-19 Sureshkumar T <tsureshkumar@novell.com>
1173 * DataTable.cs - CopyConstraints (): copy constraints only if it
1176 * DataSet.cs - Copy ():
1177 - use activator.CreateInstance to create a typed dataset.
1178 - copy tables if target does not exist, otherwise, just add rows.
1179 - add relation only if it does not exists.
1181 Typed datasets create the constraints & relations through
1182 constructors. Fixes bug #75211.
1184 2005-07-14 Sureshkumar T <tsureshkumar@novell.com>
1186 * DataView.cs: Patch from Marc Haisenko to throw descriptive error
1187 message when accessing Item, with invalid index.
1189 2005-07-14 Sureshkumar T <tsureshkumar@novell.com>
1191 reapplied patch from Marc Haisenko.
1192 * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
1195 2005-07-13 Sureshkumar T <tsureshkumar@novell.com>
1197 * DataRelationCollection.cs: adding a relation with same set of
1198 parent columns & child columns, should not be allowed.
1200 2005-07-08 Sureshkumar T <tsureshkumar@novell.com>
1202 * DataTableReader.cs: GetSchemaTable: DataType column should be
1203 passed a type of Type.
1205 * DataRow.cs: Load : Fired necessary events.
1207 * DataTable.cs: LoadDataRow (object [], LoadOption): Fired
1210 2005-06-28 Sureshkumar T <tsureshkumar@novell.com>
1212 * DataRow.cs: Delete (): if row is detached, do nothing.
1215 2005-06-22 Sureshkumar T <tsureshkumar@novell.com>
1217 * DataRow.cs: Added method MergeValuesToRow copy merge two rows
1218 according to the merge rules.
1220 * MergeManager.cs: (MergeRow): use MergeValuesToRow
1221 API. CopyValuesToRow simply makes the target row same as source
1222 row. Rather, MergeValuesToRow merges with the target row according
1225 2005-06-19 Konstantin Triger <kostat@mainsoft.com>
1227 * DataSet.cs: Fixed ReadXml to work with IXmlSerializable
1229 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
1231 * DataViewManager.cs: fixes exception and creates DataView
1233 2005-06-15 Sureshkumar T <tsureshkumar@novell.com>
1235 * DataRow.cs: CheckChildRows: cascade parent changes to child rows
1236 only if there is a change in columns of the fk constraint.
1238 2005-06-14 Sureshkumar T <tsureshkumar@novell.com>
1240 * DataSet.cs: GetChanges: if row is deleted, get parent rows based
1241 on original version. fixes bug #75227.
1243 2005-06-13 Sureshkumar T <tsureshkumar@novell.com>
1245 * DataRowCollection.cs: Find (keys, version): Added an overload to
1246 find keys matching given DataViewRowState filter. Used in
1247 DataSet.Merge and DataTable.LoadDataRow.
1249 * DataTable.cs: LoadDataRow (values, LoadOption): Use
1250 DataRowCollection.Find (object [], DataViewRowState) overload.
1253 - CopyValuesToRow: Create target "records" out of loop. Records
1254 should be created once, not for each column. Dispose Unused target
1258 - MergeRow: Find rows with matching original records. If not,
1259 select with current values.
1260 - MergeRow: While adding new row, use NewNotInitializedRow.
1262 * ForeignKeyConstraint.cs: IsConstraintViolated: should not check
1263 if EnforceConstraints is false.
1265 2005-06-10 Sureshkumar T <tsureshkumar@novell.com>
1267 * DataRow.cs: CopyValuesToRow: if orginal == current, don't create
1268 a new current record.
1270 * DataSet.cs: GetChanges :Temporarily disable EnforceConstraints.
1272 * MergeManager.cs: Merge: Temporarily disable
1273 EnforceConstraints. Patch from george.barbarosie@gmail.com (George
1276 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
1278 * DataView.cs: fixes GetListName
1280 2005-06-02 Atsushi Enomoto <atsushi@ximian.com>
1282 * XmlSchemaConstants.cs,
1283 XmlSchemaDataImporter.cs,
1284 XmlSchemaWriter.cs : AutoIncrementStep support. Patch partly by
1285 George Barbarosie. Fixed bug #75121.
1286 * XmlSchemaMapper.cs : it is not used anymore, so just removed.
1288 2005-05-31 Boris Kirzner <borisk@mainsoft.com>
1289 * DataRow.cs : SetParentRow on Detached row with no Default version throws an exception.
1291 2005-05-29 Konstantin Triger <kostat@mainsoft.com>
1293 * This patch fixes #74813
1294 * DataView.cs: rework the CreateChildView to receive the index into the indexed row array, rowState became protected to be initialized from RelatedDataView
1295 * DataRowView.cs: movo the logic of creating the child view to the DataView
1296 * RelatedDataView.cs: perform correct init.
1298 2005-05-25 Sureshkumar T <tsureshkumar@novell.com>
1300 * DataTable.cs: Reworked DataTable.LoadDataRow method after
1301 regressions caused by Index redesign.
1302 * DataRow.cs: Load : reworked.
1304 2005-05-25 Konstantin Triger <kostat@mainsoft.com>
1306 * ISafeDataRecord.cs: Added GetDateTimeSafe method, the interface was made derived from IDataRecord
1308 2005-05-22 Konstantin Triger <kostat@mainsoft.com>
1310 * DataTable.cs, DataColumn.cs: in continuation to the previous fix - moving the common logic to 1 function and throwing the correct exception in any flow
1312 2005-05-20 Sureshkumar T <tsureshkumar@novell.com>
1314 * DataTable.cs: CreateRecord :value should be set to auto
1315 increment value or default value if the given value is null.
1317 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
1319 * DataTable.cs: In DataTable.LoadDataRow with LoadOption - reverting the search order back to Original -> Current (by Suresh request)
1321 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
1323 * DataRow.cs, DataTable.cs: code under net_2_0 changed to use the new interface
1324 * DataTable.cs: Added CompareRecords, which compares records in column order
1327 2005-05-16 Sureshkumar T <tsureshkumar@novell.com>
1330 * DataTable.cs: quick fix to make build 2.0 profile (follow up for
1331 check in 2005-05-16). Merge with previous changes.
1333 2005-05-11 Sureshkumar T <tsureshkumar@novell.com>
1335 fix for "import row does not import deleted records"
1337 * UniqueConstraint.cs: Make a way to access value even from a
1338 deleted record. deleted records are added to the collection by
1342 - Added restriction-less methods GetValue to fetch a
1343 value even if it is in deleted state.
1344 - If a row is detached, don't try to delete it from indexes.
1345 - sanity check for record_index in CopyValuesToRow method
1347 2005-05-05 Sureshkumar T <tsureshkumar@novell.com>
1349 * DataTableReader.cs: Implemented Delete handler and move the
1350 current pointer accordingly.
1352 2005-05-04 Sureshkumar T <tsureshkumar@novell.com>
1354 * DataTableReader.cs: Added event handlers to make reader stable
1355 when the datasource is modified. Thanks to Umadevi for giving the
1356 review comments for this implementation.
1358 * DataTable.cs: Clear (): Raise TableCleared event.
1360 * DataTableClearEventArgs.cs: Args for DataTableClearEventHandler.
1362 * DataTableClearEventHandler.cs: Handler for DataTable.TableClear
1365 * DataRow.cs: AcceptChanges: raise row changing & row changed
1368 * DataRowCollection.cs: Clear : remove rows from indexes
1370 2005-05-02 Atsushi Enomoto <atsushi@ximian.com>
1372 * XmlSchemaDataImporter.cs : XmlSchemaParicle might be XmlSchemaAny.
1373 This fixes bug #74784.
1375 2005-04-29 Sureshkumar T <tsureshkumar@novell.com>
1377 * DataTableReader.cs: removed use of _first. throw if given index
1378 is out of range of columns. Copy DataTable [] to local array so
1379 that not to be disturbed.
1381 2005-04-27 Sureshkumar T <tsureshkumar@novell.com>
1383 * DataTableReader.cs: Implemented most of the TODO.
1385 2005-04-22 Sureshkumar T <tsureshkumar@novell.com>
1387 * LoadOption.cs: Changed the enums. Keeping old values for
1390 * DataTable.cs: Implemented methods Load and its overloads. Also
1391 implemented LoadDataRow.
1393 * DataRowCollection.cs: Added a variation of the Find method to
1394 return a row even if it is of state Deleted. This is required for
1395 DataTable.LoadDataRow method.
1397 * DataRow.cs: Implemented internal helper method Load for loading
1398 values from an object array and given an LoadOption (2.0 feature).
1400 * DataRowAction.cs: Added few more enums for .net 2.0. Sorted
1403 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
1405 * UniqueConstraint.cs : IsNull check is relevant for rows having default row version.
1406 * DataTable.cs : The row should be validated when imported
1407 * DataRowCollection.cs : if the row does not contain Proposed neither Current version, it's irrelevant for validation
1409 2005-04-26 Boris Kirzner <borisk@mainsoft.com>
1411 * UniqueConstraint.cs :
1412 - Add indication whenever the constraint belongs to collection.
1413 - Calculation of IsPrimaryKey simplified.
1414 - If constraint is based on single column, the column becomes unique.
1415 - Use boolean IsConstraintViolated() instead of AssertConstraint().
1416 - Use Index.Duplicates to proper exception message formatting.
1417 - AssertConstraint(DataRow) changed to suite new indexes interface.
1418 - Added CanRemoveFromCollection method.
1419 - Contains() method renamed to IsColumnContained().
1420 * RelatedDataView.cs : added new class.
1422 - Reset indexes after merge.
1423 - Add new tables when row array is merged into dataset.
1424 - Clean proposed record in MergeRow.
1425 - Inherit nesting on creating new relations in target data set.
1426 - Avoid double loop on constraints collection.
1427 * Locale.cs : added new class.
1428 * ISafeDataRecord.cs : added new interface.
1429 * Index.cs : commented out. Index implementation moved to System.Data.Common.
1430 * ForeignKeyConstraint.cs :
1431 - No more use of childColumnsExtended since new indexes allow duplicate records.
1432 - Constraints can not be created on expression columns.
1433 - Removed unnecessary delegation.
1434 - Use boolean IsConstraintViolated() instead of AssertConstraint().
1435 - Use proper exception message formatting.
1436 - Contains() method renamed to IsColumnContained().
1437 * DataViewRowState.cs : use enum members to simplify notation.
1438 * MergeManager.cs : implemented RelationCollectionChanged().
1439 * DataView.cs : new implementation.
1440 * DataTableCollection.cs :
1441 - Added boundary check in indexer.
1442 - More accurate handling in AddRange().
1443 - Raise event in Remove().
1445 - Hold primary key as constraint.
1446 - Added accurate handling of DefaultView.
1447 - Hold DataRowBuilder per table.
1448 - Proper exception messages if enforce Constraints is violated.
1449 - If there is no rows, Compute() returns DBNull.
1450 - Use DataRow properties instead of private members.
1451 - CopyProperties() fixed.
1452 - Raise proper events in EndInit().
1453 - Proper order of violation checks in EndLoadData().
1454 - Create array of rows using NewRowArray().
1455 - ImportRow handles rows according to their versions.
1456 - LoadDataRow make use of records (instead of raw object array).
1457 - Added and implemented LoadDataRow() that gets IDataRecord as a parameter (used in Fill)
1458 - Select() uses indexes filtering and sorting ability (instead of "loop-throw-sort" approach).
1459 - Removed redundant RowSorter and Sortable column classes.
1460 - ParseSortString() fixed to threat bracketed column names.
1461 - Table holds collection of property descriptors.
1463 - Reset table case sensitive indexes on CaseSensitive change.
1464 - EnforceConstraints update logic moved to internal method (used by DataTable).
1465 - InAddChangedRow first add row and than copy values for proper handling of default values.
1467 - Changed private member names to suite name convention.
1468 - CancelEdit() fixed.
1469 - CreateChildView() delegates to DataView.
1471 - Proper exception messages in indexers.
1472 - RowVersion uses DataView.
1473 - GetProperties() delegates to corresponding table if needed.
1474 * DataRowCollection.cs :
1475 - Common Add() logic moved to AddInternal() (used also by DataTable).
1476 - Removed redundant check from Contains().
1477 - Dalegate Find() calls when possible.
1479 - RomoveAt() delegates to Remove().
1480 - Optimized constraints check in row validation.
1481 * DataRelationPropertyDescriptor.cs : added new class.
1482 * DataRelationCollection.cs :
1484 - Fixed order of actions in AddCore().
1485 - RemoveCore() also delegates to base.
1486 - Add relation to dataset also in AddCore().
1487 - Remove relation from dataset also in RemoveCore().
1488 - InTransition hold a data relation so we can properly identify the "in transition" state.
1489 - Added threat of parent and child table s property descriptors in Add().
1490 - Common Add() logic moved to AddCore().
1492 - Remove() threats "in transition" state properly.
1493 - Remove methods delegate to single implementation.
1494 * DataColumnPropertyDescriptior.cs :
1495 - Added new constructor.
1496 - Commented out redundant method.
1497 * DataColumnCollection.cs :
1498 - Boundary check in indexer.
1499 - RegisterName and UnregisterName become internal (used also by DataColumn).
1501 - Fixed CanRemove().
1502 - Rethrow correct exception in Clear();
1503 - Change in collection resets parent table property descriptors.
1504 - Added PostEndEdit() helper method (used by DataTable).
1506 - Private member names changed to suite name convention.
1507 - Created method for CanAutoIncrement() logic.
1508 - Proper handling of column name update.
1509 - Proper exception messages on expression update.
1510 - Proper namespace handling (delegates to table when needed).
1511 - Removed redundant check in Unique update.
1512 - Implemented internal Clone().
1513 - GetParentRalation() and GetChildRelation() become private.
1515 - Added abstract methods (implemented in UniqueConstraint and ForeignKeyConstraint).
1516 - Simplified index update.
1517 * ConstraintCollection.cs :
1518 - Use Locale instead of CaseSensitive in column names comparison.
1520 - Rethrow correct exception type in Add().
1521 - Proper update of table primary key in Add().
1522 - Delegate CanRemove() to constraint.
1523 - Remove table primary key in Clear();
1524 - Delegate "can remove" check to constraint in Remove().
1525 - Removed unnecessary methods and properties.
1527 - RowSate becomes calculated property.
1528 - Use properties instead of private members where possible.
1530 - Fixed order of actions in ItemArray update.
1531 - Fixed DetachRow().
1532 - Added ImportRecord() method.
1533 - Removed redundant SetValuesFromDataRecord().
1534 - Fixed IndexFromVersion().
1535 - Added VersionFromIndex() method. Returns row version the passed record index corresponds to.
1536 - Fixed AcceptChanges().
1537 - Fixed creating proposed version in BeginEdit();
1538 - Added record disposal in Delete().
1539 - Fixed CheckChildRows().
1540 - EndEdit() fixed. Checks for readonly. Uses straight flow instead of "try and fix if fail" approach.
1541 - GetChildRows() and GetPrarentRows() rewrited. Use records and indexes for rows lookup.
1542 - GetColumnError() delegates to another implementation.
1543 - HasVersion() fixed.
1544 - RejectCahnges checks on child rows before passing through.
1545 - SetParentRow() fixed. Create relation collection if needed. Use typed data container value copy.
1546 - CopyErrors() logic moved to separate method (used also by DataTable).
1547 * ExpressionElement.cs : added new class.
1548 * Res.cs : added new class.
1550 2005-04-20 Jordi Mas i Hernandez <jordi@ximian.com>
1552 * DataViewManager.cs: implements TypedList.GetListName used in SWF
1554 2005-04-19 Atsushi Enomoto <atsushi@ximian.com>
1556 * DataRowView.cs : indexer should access to DataRow with proper
1557 DataRowVersion. Fixed bug #74650.
1559 2005-04-18 Sureshkumar T <tsureshkumar@novell.com>
1561 * DataRow.cs: if there are no mapping fields, fill with default
1564 2005-04-17 Atsushi Enomoto <atsushi@ximian.com>
1566 * DataView.cs : Delete() should not try to remove row twice.
1569 2005-04-13 Atsushi Enomoto <atsushi@ximian.com>
1571 * DataTable.cs : Use GetRowType() for the base of the returning array
1572 type of Select(). Fix by Gerhard Rittweger.
1573 * CustomDataClassGenerator.cs : Fixed slightly harmless wrong code.
1575 2005-04-13 Atsushi Enomoto <atsushi@ximian.com>
1577 * CustomDataClassGenerator.cs : custom relation was not added to
1578 Relations property. The second entry of bug #69276 was fixed.
1579 Patch by Daniel Rodriguez.
1581 2005-04-07 Lluis Sanchez Gual <lluis@novell.com>
1583 * DataRowCollection.cs: Fix the signature of the Add method
1586 2005-03-16 Atsushi Enomoto <atsushi@ximian.com>
1588 * DataRow.cs : on importing row, it was copying data from incorrect
1589 DataRow. This fixes bug #73288.
1591 2005-03-07 Jackson Harper <jackson@ximian.com>
1593 * DataViewManagerListItemTypeDescriptor.cs: Implement missing
1594 features. These are needed for System.Windows.Forms databinding.
1596 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
1598 * DataColumn.cs : setting negative value on MaxLength of SimpleContent
1599 column is still valid.
1601 2005-02-15 Atsushi Enomoto <atsushi@ximian.com>
1603 * XmlSchemaWriter.cs : new file for outputting XmlSchema.
1604 * DataSet.cs : removed rewritten code in XmlSchemaWriter.
1605 * XmlConstants.cs : added UseCurrentCulture constant.
1607 Use new Xml Schema writer.
1608 Use XmlSchemaDataImporter as we use in DataSet.
1610 2005-02-10 Atsushi Enomoto <atsushi@ximian.com>
1612 * DataView.cs, DataRowView.cs : Fixed bug #72421. CreateChildView()
1613 should target only child rows.
1615 2005-02-03 Atsushi Enomoto <atsushi@ximian.com>
1617 * DataViewManager.cs: misuse of ReadStartElement(string).
1618 * DataRowView.cs : removed some MonoTODO.
1620 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
1621 Ankit Jain <radical@corewars.org>
1623 * DataColumn.cs: throw exception if the column is part of a
1624 relationship, when chaning the data type. Added methods
1625 "GetParentRelation ()" and "GetChildRelation ()" get the relation
1626 which contains the current column
1627 * DataRelation.cs: Added method "Contains (DataColumn)" to check
1628 whether the relation contains the given column.
1630 fixes nunit failure: DataRelationTest.InvalidConstraintException2.
1632 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
1634 * DataColumnCollection.cs: implemented todo item "check for
1635 constraints" when removing columns from table.
1636 * DataRowCollection.cs: Clear (): don't have to throw child key
1637 constraint exception when the child table does not have any
1638 rows. safe to remove parent rows.
1639 * UniqueConstraint.cs: added method "Contains (DataColumn)" to
1640 check whether a column is part of UniqueConstraint.
1641 * ForeignKeyConstraint.cs: added method "Contains (DataColumn,
1642 lookInParent)" to check whether a column is part of foreignkey.
1644 fixes nunit failure: DataTableTest.ClearTest ()
1646 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
1648 * ForeignKeyConstraint.cs: validating columns: move checking
1649 "tables are of same dataset" before "checking column types".
1651 fixes nunit failure: ForeignKeyConstraint.CtorExceptions.
1653 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1655 * DataViewManager.cs : let's just use StringWriter instead of
1656 XmlTextWriter (to avoid empty tag string mismatch annoyance.)
1657 * DataView.cs : implemented BeginInit() and EndInit(). Don't update
1658 rows during init phase until EndInit() is invoked. During init phase,
1659 just hold properties such as Sort that affects on rows.
1661 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1663 * DataTableCollection.cs : (RemoveAt) just use IndexOutOfRangeException.
1665 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1667 * DataView.cs : DataRowView.EndEdit() raises ItemMoved event.
1668 set_Table clears Sort and RowFilter.
1670 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1673 - Clear() should clear AddNew cache.
1674 - Open() invokes Reset().
1675 - ConstraintCollectionChanged() itself does not invoke OnListChanged().
1676 - Reset() does not Open, Close and Update Index.
1677 - UpdateIndex() can be invoked even if it has no table.
1678 - Reset event is invoked always after actual query to table.
1679 - set_Table should raise PropertyDescriptorChanged event.
1681 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1683 * DataView.cs : ColumnCollectionChanged() is the event invoker (i.e.
1684 when overriden, no column change events are fired).
1686 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1688 * DataView.cs : CancelEditRowView() and DeleteRowView() was incorrectly
1689 checking target tables. They also should raise events if required.
1691 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1693 * DataView.cs : simplify code with UnsortedList.
1695 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
1697 * DataView.cs : Mostly reimplemented.
1698 - UpdateIndex() is invoked only when it is required (results in
1699 significant performance improvement).
1700 - Use SortedList and wrapper OptionalSortedList which switches
1701 between SortedList (with Sort) and UnsortedList (without Sort).
1702 - DataView itself now contains two collections for rowviews:
1703 Table rows based pool and AddNew() based cache. Consider those
1704 two collections in every members.
1705 - Reset() does not clear rows. Just invokes UpdateIndex().
1706 - Hook RowDeleting, ColumnChanging and ColumnChanged events in table
1707 which is required to handle state changes.
1708 - Reimplemented Find() and FindRows() because of internal changes.
1710 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
1712 * DataTable.cs : Fixed row comparer. Even if every of the sort target
1713 columns are identical for two rows, they should not be regarded as
1714 the same unless they are Object.ReferenceEquals.
1716 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
1718 * DataRowCollection.cs : on adding a row, should raise
1719 ChangingDataRow() as well as ChangedDataRow().
1721 2005-01-31 Sureshkumar T <tsureshkumar@novell.com>
1723 * DataRow.cs: SetParentRow (): use relation.ParentColumns &
1724 relation.ChildColumns instead of relation.ChildKeyConstraint.*
1725 because createConstrains flag may be false when creating data
1726 relations. Hack along with Ankit Jain.
1728 2005-01-31 Atsushi Enomoto <atsushi@ximian.com>
1730 * DataView.cs :some interface implementations.
1732 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1734 * DataView.cs : Add to table only when the row is not in the table.
1736 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1738 * DataView.cs : implemented FindRows() (btw we should not use
1739 DataTable since there are detached rows by AddNew().)
1741 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1744 Code cleanup: privatify some members, remove unused methods.
1745 Some event-based invocation methods should not raise NotImplemented.
1747 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1749 * DataSet.cs : ReadXml() became closer to MS behavior, being hacky.
1751 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1753 * XmlSchemaDataImporter.cs : empty element is not regarded as a column.
1755 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1757 * UniqueConstraint.cs : mostly reverted the previous patch + check
1758 IsPrimaryKey before validation.
1760 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1762 * DataView.cs : Fixed duplicate insertion to Hashtable.
1763 * UniqueConstraint.cs : Unique constrained pair of columns could be
1766 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1769 Don't do anything for Sort/ApplyDefaultSort/RowFilter/RowStateFilter
1770 when the same value is being set.
1771 Examined UpdateIndex() and marked FIXME where MS does not invoke it.
1772 Removed unused OnColumnChanged().
1773 Now store rowViewPool and reuse DataRowView objects.
1774 Optimized UpdateIndex() - avoid ArrayList. Avoid Haashtable.Rehash().
1776 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1778 * DataViewSettings.cs : no MonoTODO anymore.
1779 * DataViewManager.cs : pass itself to new DataView() (new ctor).
1780 * DataRowView.cs : GetHashCode() returns its Row's hash.
1781 * DataTablePropertyDescriptor.cs : use new ctor().
1782 * DataView.cs : added new ctor()s that accept DataViewManager.
1784 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1786 * DataView.cs, DataRowView.cs : AddNew() should not add the row to table
1787 (it is still detached). So handle those rows differntly.
1788 CancelEdit(), EndEdit() and Delete() propagates those events to
1789 DataView (and handle row collection).
1790 Eliminate "throw new Exception()".
1791 Don't catch all the exception thrown in ListChanged event.
1792 * DataTable.cs : made RowSorter as internal and use it in DataView.
1793 no need to pass DataRow[] to .ctor().
1795 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1797 * DataTable.cs : don't create DefaultView unless it is required. It
1798 significantly improves performance. (i.e. DataView perf. is sick ;-)
1800 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1802 * DataViewSetting.cs,
1803 DataViewSettingCollection.cs,
1804 DataViewManager.cs : implemented basic members.
1806 2005-01-26 Atsushi Enomoto <atsushi@ximian.com>
1808 * Node.cs, DataColumnPropertyDescriptor.cs, DataTable.cs :
1809 Eliminate "throw new Exception".
1811 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1813 * DataRow.cs : (set_Item) RowNotInTableExeption check should be done
1814 regardless of index existence.
1816 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1818 * DataTable.cs : use new IExpression.EvalBoolean() to avoid extraneous
1821 2005-01-25 Sureshkumar T <tsureshkumar@novell.com>
1823 * DataTable.cs: ImportRow :Do not add to rows collection if the
1824 import row is in detached state.
1826 2005-01-25 Sureshkumar T <tsureshkumar@novell.com>
1828 * DataRow.cs: CopyValuesToRow : set the column value with the
1829 default version of the given row.
1830 * DataTable.cs: ImportRow: Copy values before adding row.
1831 * DataSet.cs: AddChangedRow: Add the row to the table after
1834 Fixes bug #67317. Patch by Ankit Jain.
1836 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1838 * DataRowView.cs : Fixed IsEdit to reflect correct status of DataRow.
1839 * DataRow.cs : Expose editing status internally.
1841 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1843 * DataView.cs : missing attributes.
1845 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
1847 * DataRowView.cs : implemented CreateChildView().
1849 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
1851 * DataTable.cs, DataView.cs :
1852 Optimized DataView to compile only once RowFilter and Sort when
1853 those properties are set. To make it possible, extracted
1854 SortableColumn out of DataTable and added internal DataTable.Select()
1855 that accepts precompiled IExpression and SortableColumns[].
1857 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
1859 * DataColumn.cs : set_MaxLength is not allowed when it is mapped to
1860 SimpleContent. (However, it is weird but it never fails when we set
1861 ColumnMapping = MappingType.SimpleContent when we fhave MaxLength.)
1863 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
1865 * DataRow.cs : more Current -> Default fixes. Check if it should throw
1866 VersionNotFoundException. Patch by Ankit Jain.
1868 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
1870 * DataRow.cs : Default selects the right version for the current
1871 state of the row. Current is not always available. Also change
1872 that for GetParentRow(). Patch by Ankit Jain.
1874 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
1876 * DataTable.cs : CopyColumn() should copy AutoIncrement after
1877 DefaultValue, or it will raise an error in some cases.
1879 2005-01-20 Atsushi Enomoto <atsushi@ximian.com>
1881 * ConstraintCollection.cs : Add() should throw ArgumentException when
1882 the argument constraint fails validation.
1883 DataTable.cs : set_PrimaryKey should throw ArgumentException when
1884 the argument contains constraints which fail validation.
1886 2005-01-19 Sureshkumar T <tsureshkumar@novell.com>
1888 * DataRelationCollection.cs:
1890 Method Remove : Donot throw exception if DataRelation argument is
1891 null in DataRelationCollection.Remove method.
1893 Method RemoveAt : Exception should be IndexOutOfRangeException if
1894 row index is not in list range.
1896 Fixes nunit failures DataRelationCollection.Remove and
1897 DataRelationCollection.RemoveAt.
1899 2005-01-19 Sureshkumar T <tsureshkumar@novell.com>
1901 * ConstraintCollection.cs: Donot throw exception if constraints
1902 are null in AddRange method. Check for null before using the
1907 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
1909 * XmlDataInferenceLoader.cs,
1910 XmlDataReader.cs : Check if the XmlReader (node) represents DataSet
1911 or a table, reusing code block in XmlDataInferenceLoader.
1912 This fixes bug #60118.
1914 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
1916 * XmlDiffLoader.cs : Ankit Jain <radical@imt.ac.in> has a conflicting
1917 patches and some good catches. Some attributes should be skipped,
1918 and loaded value must be typed.
1920 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
1923 XmlDataInferenceLoader.cs,
1924 XmlDataReader.cs : use common const for http://www.w3.org/2000/xmlns/.
1925 * XmlDiffLoader.cs : It was not handling attributes. Fixed bug #70961.
1927 2005-01-18 Sureshkumar T <tsureshkumar@novell.com>
1929 Fix for bug #66838. This patch is submitted by "Ankit Jain"
1930 <radical@corewars.org> and refactored.
1932 * DataRow.cs: Allows to set a parent row even if the row is in
1935 * DataRelation.cs: method "UpdateConstraints" is added to check
1936 and create missing keys when adding a relation. This is refactored
1937 approach from DataRelationCollection.Add method.
1939 * DataRelationCollection.cs: AddCore methods of all relation types
1940 are synchronized. A Check for existing constraints is
1941 done. Relation is added to the list only if all checks are passed.
1943 2004-01-18 Atsushi Enomoto <atsushi@ximian.com>
1945 * DataColumnCollection.cs : Clear() throws ArgumentException that
1946 wraps thrown innerException.
1947 * XmlSchemaDataImporter.cs : removed FIXMEs.
1949 2004-01-12 Atsushi Enomoto <atsushi@ximian.com>
1951 * DataSet.cs : When serializing DataTable, BuildSchema() is passed
1952 null relation collections.
1953 Quick fix for XmlSerializer deserialization. It does not require
1954 XML Schema included.
1956 2004-01-11 Atsushi Enomoto <atsushi@ximian.com>
1959 CustomDataClassGenerator.cs :
1960 In DataSet class, IXmlSerializable.GetSchema() returns null.
1961 In strongly-typed class, it returns schema.
1963 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
1965 * XmlDataInferenceLoader.cs : test driver class should be excluded.
1967 2004-12-01 Miguel de Icaza <miguel@ximian.com>
1969 * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
1972 2004-11-10 Atsushi Enomoto <atsushi@ximian.com>
1974 * CustomDataClassGenerator.cs : generated foreign key constraint
1975 construction code was creating empty child columns and thus it
1976 was invalid. This fixes bug #69276 (patch by Martin Voelkle).
1978 2004-11-02 Atsushi Enomoto <atsushi@ximian.com>
1980 * CustomDataClassGenerator.cs : custom DataTable ctor should call
1981 InitializeFields(), and those DataColumns created by that method
1982 should take data type. This should fix bug #68972.
1984 2004-10-15 Atsushi Enomoto <atsushi@ximian.com>
1986 * DataSet.cs : Also clear UnhandledAttributes ArrayList before
1987 generating next attribute column schema. This fixes bug #68432.
1989 2004-10-14 Umadevi S <sumadevi@novell.com>
1990 * DataTable.cs : Corrected the Clone method to use Activator.CreateInstance so that the
1991 correct subclass is returned. This fixes bug #67631
1993 2004-10-14 Umadevi S <sumadevi@novell.com>
1994 * DataSet.cs : Corrected the Clone method to use Activator.CreateInstance so that the
1995 correct subclass is returned. This fixes bug #67627
1997 2004-10-13 Atsushi Enomoto <atsushi@ximian.com>
1999 * DataSet.cs : clear UnhandledAttributes ArrayList before generating
2000 next element column schema. This fixes bug #68256.
2002 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
2004 * DataSet.cs : now xs:schema contains xmlns="".
2005 This fixes bug #68008.
2007 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
2009 * DataSet.cs : DBNull attribute column should not be written as
2010 empty attribute. This fixes bug #68007.
2012 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
2014 * DataSet.cs, XmlConstant.cs, XmlSchemaDataImporter.cs:
2015 DataColumn.ReadOnly was not handled. This fixes bug #68005.
2016 Attribute defaultValue was not handled too.
2018 2004-10-07 Atsushi Enomoto <atsushi@ximian.com>
2021 - When AllowDBNull is false on attribute DataColumn, its schema
2022 should contain use="required". This fixes bug #66792.
2023 - If MaxLength is set on attribute DataColumn, the mapped schema
2024 type should contain maxLength facet. This fixes bug #66793.
2026 2004-10-04 Atsushi Enomoto <atsushi@ximian.com>
2028 * DataSet.cs : For a row, when a relation is not nested, then it is
2029 still output target since it won't be written as a child of its
2030 parent. It fixes bug #66379.
2032 2004-10-03 Atsushi Enomoto <atsushi@ximian.com>
2034 * DataSet.cs : Attribute constraint field XPath must be written as
2035 @blah. This fixes bug #66366.
2037 2004-09-28 Umadevi S <sumadevi@novell.com>
2038 * DataRow.cs - checked for Enforceconstraints, while using indices to search for related rows
2040 2004-09-24 Sureshkumar T <tsureshkumar@novell.com>
2042 * DataSet.cs : Don't check constraints for dataset clear
2043 * DataRowCollection.cs : check for EnforceConstraints flag
2044 before checking foriegn key constraints in Clear method
2045 * DataTable.cs : Redundant checking removed in Clear method as it is
2046 checked in DataRowCollection.Clear method.
2049 2004-09-19 Sureshkumar T <tsureshkumar@novell.com>
2050 * DataRow.cs : while deserialization of dataset, adding a current row precedes the original row.
2051 hence, adding a row cache is necessary if the original row happens to be current.
2054 2004-08-23 Martin Baulig <martin@ximian.com>
2056 * XmlDataInferenceLoader.cs (Driver): Make this class internal,
2059 2004-08-18 Umadevi S <sumadevi@novell.com>
2060 * DataView.cs - Completed most of the event handling.
2061 Thanks to Punit Todi <punit_todi@da-iict.org> for implementing most of it.
2062 Thanks to Boris Kirzner <borisk@mainsoft.com> for commenting and suggesting changes to the implementation.
2063 * DataTable.cs - Changed Access modifiers of class/methods since it was used by DataView.
2065 2004-08-06 Atsushi Enomoto <atsushi@ximian.com>
2067 * DataSet.cs : DataSet's ExtendedProperties were not XmlConverted.
2069 2004-08-05 Atsushi Enomoto <atsushi@ximian.com>
2071 * XmlConstants.cs : Added constants for "msprop" support.
2072 * DataSet.cs : ExtendedProperties should be written in the schema.
2073 This fixes bug #61233.
2075 2004-07-27 Atsushi Enomoto <atsushi@ximian.com>
2077 * DataSet.cs : on serialization to XmlWriter, XmlConvert should be
2078 used. There were also some culture dependency problems to write int.
2080 2004-06-27 Atsushi Enomoto <atsushi@ximian.com>
2082 * XmlDataInferenceLoader.cs : It was not always filling relation
2083 child table information correctly. This fixes bug #60742.
2085 2004-06-23 Umadevi S <sumadevi@novell.com>
2086 * UniqueConstraint.cs :changed a ifdef true to ifdef NET_1_1
2088 2004-06-22 Atsushi Enomoto <atsushi@ximian.com>
2090 * DataSet.cs : Fixed ReadXml(). When ReadMode is ReadSchema and the
2091 schema is inside the document element (as created in XmlWriteMode
2092 .WriteSchema), it should read schema from that non-document element.
2093 This fixes one case reported in bug #60470.
2095 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
2097 * XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
2098 inference target. For bug #60470. (MS does not support schema
2099 document inference and results in unconsistent dataset structure.)
2101 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
2103 * DataTableCollection.cs : reset the table's DataSet to null when
2104 removing a table from this collection.
2105 * DataTable.cs : When Namespace is not specified explicitly, its
2106 Namespace property reflects DataSet's Namespace if exist.
2107 This fixes bug #60469.
2109 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
2111 * DBConcurrentcyException.cs: CRLF to LF
2112 * DataViewSetting.cs: CRLF to LF
2114 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
2116 * DataViewSetting.cs: renamed fields to match MS.NET
2118 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
2120 * DBConcurrencyException.cs: fixed serialization compatibility with
2123 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2125 * ChangeLog : Fix for misspelled words.
2127 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2129 * DataRowCollection.cs : Removed onColumnRemoved since it is not in use.
2131 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2134 - Table stores default values for columns in special default values row.
2135 It is allocated once (in NewRow).
2136 - DataTable.Copy rewrited. It works with uninitialized rows for better perfomance.
2137 - OnRemoveColumn has nothing to perform by now.
2139 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2142 - Changed access of original, current and proposed indexes to internal.
2143 - ColumnErrors reviewed : now column errors stored in ArrayList and allocated on demand only.
2144 - Added new DataRow constructor that creates uninitialized DataRow (used in DataTable.Copy).
2145 - Use DataContainer.CopyValue and default values row for faster set of default values in row.
2146 - SetColumnValue become CheckValue. Now it does not changes the value, but only checks for its correctness.
2147 Care about Null and DBNull values is now in DataContainer.
2148 - Use DataColumn.AutoIncrementValue and GetInt64 for faster set of autoincrement value.
2149 - Use Datacontainer.CopyValue and default values row to speed up CheckChildRows.
2150 - Fix in CopyState : clone column errors.
2151 - Removed CollectionChanged and onColumnRemoved since we are not using both of them anymore.
2153 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2155 * DataColumnCollection.cs :
2156 - Fix : Add() now delegates to Add(DataColumn).
2157 - autoIncrement list holds DataColumn objects, and not just column names.
2159 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2162 - AutoIncrementValue fixes. Now AutoIncrement uses DataContainer.GetInt64 to avoid boxing.
2163 - DefaultValue fixes. Default value from now on is also stored in special record in
2164 DataTable, so we're able to set default value for the column faster (typed).
2167 2004-06-15 Atsushi Enomoto <atsushi@ximian.com>
2169 * DataSet.cs : children of non-root rows were not properly written.
2172 2004-06-10 Umadevi S <sumadevi@novell.com>
2173 * DataRelation.cs - Constructor
2174 - The datatypes of the parentcolumn(s) and the childcolumn(s) should match
2176 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
2178 * XmlSchemaDataImporter.cs : We should fill Namespace for DataTable.
2180 2004-06-04 Gert Driesen <drieseng@users.sourceforge.net>
2182 * Constraint.cs: marked methods internal to fix public API
2183 * ConstraintCollection.cs: to fix public API, use
2184 DataTable.fInitInProgress to check whether initialization
2185 of DataTable is in progress
2186 * DataColumn.cs: added stubs for missing methods
2187 * DataRowBuilder.cs: marked Table property internal to
2189 * DataSet.cs: removed extra empty destructor, marked
2190 OnMergeFailed internal to fix public API
2191 * DataTable.cs: use fInitInProgress field to hold init
2192 status, to match MS.NET
2193 * DataView.cs: added missing attributes on IsOpen
2195 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
2197 * DataSet.cs : Use NameTable.Get() before calling LookupNamespace()
2198 in XmlNamespaceManager.
2200 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
2202 * DataSet.cs : complex table content child was not properly added
2203 when it is the only one child in the parent table. Fixed bug #53959.
2205 2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
2206 * DataTableTypeConverter.cs: added
2207 * DataView.cs: added missing attribute on Table property
2208 * DataViewManager.cs: moved attribute to correct property
2209 * UniqueConstraint.cs: removed extra ReadOnly attribute from
2210 IsPrimaryKey property
2212 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
2214 * DataRow.cs : ColumnsChanged event is not required in .ctor().
2216 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
2218 * XmlDataReader.cs : type change is required before setting value
2221 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
2223 * DataSet.cs : Loop-break of the last fix was incorrect.
2225 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
2227 * DataSet.cs : When a row has no parent row but the table has parent
2228 relation(s), that row had been always ignored.
2230 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
2232 * XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
2233 rejected same-named tables in different hierarchy. Thanks to Boris.
2235 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
2237 * XmlDiffLoader.cs : Added some Skip() that is required not to go to
2238 infinite loop. Thanks to Boris for this fix.
2240 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
2242 * XmlDataInferenceLoader.cs : XmlSchema elements should not be infered.
2243 Thanks to Boris for this fix.
2245 2004-05-30 Atsushi Enomoto <atsushi@ximian.com>
2247 * DataTable.cs : serialization .ctor() should use XmlReadMode.DiffGram
2248 for ReadXml(). Thanks to Boris.
2250 2004-05-27 Boris Kirzner <borisk@mainsoft.com>
2252 - CheckReadOnlyStatus : use typed (and faster comparing).
2253 - EndEdit : bug fix - do not dispose record if it holds original version.
2254 - SetValuesFromDataRecord : Take care about autoincrement columns.
2257 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2259 * MergeManager.cs : don't output debug message to Console.
2261 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2263 * XmlDataInferenceLoader.cs : Namespace are not imported to the table
2264 structure. Thanks to Boris Kirzner for the fix.
2266 2004-05-27 Umadevi S <sumadevi@novell.com>
2267 * DataRelationCollection.cs - fixed nunit test errors
2269 2004-05-27 Umadevi S <sumadevi@novell.com>
2270 * DataTableCollection.cs - fixed nunit test errors
2272 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
2274 * DataColumnCollection.cs : NullReferenceException was thrown when
2275 the table was not found.
2276 * DataRowCollection.cs :
2277 Find() just returns null for null value under MS.NET 1.1.
2278 RemoveAt() should also avoid to call AcceptChanges() like Remove().
2279 * UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
2280 directly under MS.NET (for nunit test).
2282 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
2284 * XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf()
2285 caused problem on qualified name to get schema Field name.
2287 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
2289 * XmlDataReader.cs : Now data reader is namespace aware in all places.
2290 When table's namespace is different, it entered to infinite loop.
2292 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
2293 * MergeManager.cs : AdjustSchema now updates by reference new created table,
2294 so in Merge you do not need to lookup for it (were unable to do this for unnamed tables).
2297 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
2299 * DataColumn.cs : In set_Item[int] - if autoincrement, adjust next autoincrement value.
2300 * DataColumnCollection.cs : fixed parantethes.
2302 - AcceptChanges : do nothing if row state is unchanged.
2303 - GetChildRows, GetParentRows : bug fix (use correct index).
2304 * DataRowCollection.cs : bug fix (compare all row's values).
2305 * DataTable.cs : bug fix (use correct row version).
2307 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
2309 * XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
2310 When content type is Mixed, text column is not required (it is
2311 required only when the complex type has no particle).
2312 "Repeated element" column is also created (considering maxOccurs=0
2313 and complex content extension).
2315 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
2317 * XmlSchemaDataImporter.cs : XmlSchemaGroupBase was not handled
2320 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
2322 * XmlSchemaDataImporter.cs : Removed unused code and extra MonoTODO.
2323 Fixed relation inference to consider attribute XPath.
2325 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
2327 * DataColumn.cs : Fixed set_Item[int]. Convert.ToInt64(DBNull.Value)
2330 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
2332 * DataColumn.cs - removed default member attribute.
2334 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
2337 DataColumnChangeEventArgs.cs,
2338 DataColumnCollection.cs,
2340 DataRowCollection.cs,
2342 Index.cs : Data storage in the row is redesigned. Now data is stored in
2343 typed containers inside DataColumn. Row holds its versions as indexes inside
2344 each of data container, accessed through the row that holds it.
2346 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
2348 * UniqueConstraint.cs - added comment.
2350 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
2352 * XmlDataInferenceLoader.cs : Don't add already-existing DataTable to
2355 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
2358 XmlDataInferenceLoader.cs,
2360 XmlSchemaDataImporter.cs : XmlDecode every local name to read and
2361 XmlEncode every local name to write. This should fix bug #58268.
2363 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
2365 * DataSet.cs : Implemented ignored namespaces in InferXmlSchema().
2366 Supported repeated elements. Removed MonoTODOs.
2367 * XmlDataInferenceLoader.cs : Design change to support ignored
2368 namespace and repeated elements.
2369 * XmlSchemaDataImporter.cs : Added mapping support classes.
2371 2004-05-15 Atsushi Enomoto <atsushi@ximian.com>
2373 * CustomDataClassGenerator.cs :
2374 Added property parent "[foo]Row" and children "Get[foo]Row" support
2375 for custom DataRow classes.
2376 Fixed DataColumn property accessibility (public --> internal).
2378 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
2380 * CustomDataClassGenerator.cs :
2381 - Put classes inside custom DataSet class.
2382 - Added automatic DataRelation creation support.
2383 - Added Constraints creation support. That is done separate from
2384 relations, since they might be independently created.
2385 - Added non-MS public DataRelation fields.
2386 - Removed extraneous "DataRelation type generation" code.
2387 - Fixed custom_dataset.Initialize() not to create "c" field that
2388 was created more than once.
2389 - Implemented AddxxxRow() that takes parameters for every column.
2391 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
2393 * XmlSchemaDataImporter.cs : When primary key is used more than once,
2394 DataRelation borked because of empty parent column name.
2396 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
2398 * XmlSchemaDataImporter.cs : When Creating constraints with related
2399 to DataRelation creation, also set PrimaryKey to the parent table.
2401 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
2403 * XmlSchemaDataImporter.cs :
2404 Design change to add indirect table and relation structures.
2405 Support for "relation" annotation for local element.
2406 Support for repeatable simple element column (maxOccurs > 1).
2407 Fixed handling of Nested property on DataRelation (for globally
2408 annotated relation, Nested is false).
2410 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
2412 * DataRow.cs : Added DataElement property to avoid storing every row-
2413 element mapping. It stored even for nodes that should be removed.
2415 2004-05-13 Umadevi S <sumadevi@novell.com>
2417 * RelationshipConverter.cs - Stubbed this class
2418 * DataRelation.cs - added TypeConveterAttribute
2420 2004-05-13 Umadevi S <sumadevi@novell.com>
2422 * DataColumnCollection.cs - Added ResDescriptionAttribute
2423 * DataRelation.cs - Added TypeConverterAttribute
2424 * DataRelationCollection.cs - Added DefaultPropertyAttribute
2425 * DataRowView.cs - Added GetHashCode method with a TODO tag
2426 * DataSet.cs - Added DesignerAttribute
2427 * DataView.cs - Added DesignerAttribute
2428 * DataViewManager.cs - Added DesignerAttribute
2429 * DataViewSetting.cs - Added TypeConverterAttribute
2431 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
2433 * DataRow.cs : Added XmlDataElement initialization code.
2435 2004-05-11 Atsushi Enomoto <atsushi@ximian.com>
2437 * XmlDataInferenceLoader.cs :
2438 It now requires XmlDocument as input. Improved identification of
2439 DataSet element. Removed extra lines.
2440 Moved boresome design notes to bottom of the source and
2441 added standalone runnable driver (not included on build).
2443 Update with related to the change above.
2444 WriteXml() should call Flush() after writing. This fixes bug #58327.
2445 * XmlSchemaDataImporter.cs :
2446 Improved indentification of DataSet element.
2448 2004-05-11 Gert Driesen (drieseng@users.sourceforge.net)
2449 * DataTable: marked initStatus enum internal
2451 2004-05-09 Gert Driesen (drieseng@users.sourceforge.net)
2452 * DataTable.cs: removed TypeConverterAttribute, marked RowsExist
2454 * DataRowView.cs: removed extra Error property
2455 * DataRow.cs: reduced accessibility of CollectionChanged method
2457 * DataColumnPropertyDescriptor.cs: made class internal
2458 * DataColumn.cs: removed extra TypeConvertorAttribute
2459 * ConstrainCollection.cs: marked PostEndInit method internal
2461 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
2464 In WriteXmlSchema(), when complex type contains simple type content
2465 attributes must not added to XmlSchemaComplexType directly. It
2466 causes schema compilation error.
2467 DataRelation should not be output when related columns are hidden.
2469 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
2471 * XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
2472 also expected to do ReadXml(), but I will remove that feature and
2473 support column reordering).
2474 * XmlSchemaDataImporter.cs : Always initialize dataset name.
2475 Always set Nested and primary key for parent table.
2476 * XmlDataReader.cs : Now it is used.
2477 Top level element might not match to dataset name nor any table
2478 name, but still possible to read content tables.
2479 Handle empty element correctly in some places.
2480 Handle Fragment mode (read up XmlReader to the end).
2481 * DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
2482 XmlDataInferenceLoader and XmlDataReader.
2484 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
2487 Eliminated CRLF injection.
2488 More clear message in Clear().
2489 Updates reflecting XmlSchemaDataImporter change.
2490 Added duplicate check for XmlSerializerNamespaces in BuildSchema().
2491 Don't use xmlns attribute for UnhandledAttributes (its not mandatory
2492 but that depends on different behavior from ms.net).
2493 Set locale also for DataTable.
2494 Add xs:element only when target namespace matches to the
2495 element's namespace. Otherwise, add xs:import for external namespace.
2496 Put xs:sequence for dataset element's particle _only when_ actual
2499 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
2501 * XmlDataReader.cs : Added. This class will work better when our
2502 schema inference and schema read engine gets improved. (It contains
2503 standalone testable Driver class.)
2505 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
2507 * ForeignKeyConstraint.cs : Check step change. Existence then column
2508 validity. just for tests.
2509 * XmlSchemaDataImporter.cs : code simplification. reduced extraneous
2512 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2514 * DataSet.cs : Ignore empty content only when output type is diffgram.
2516 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2518 * CustomDataClassGenerator.cs : Modified that DataSet contains each
2519 DataTable field so that each table property can access them directly.
2520 (plus, modified standalone code driver code: shouldn't affect)
2522 2004-05-05 Boris Kirzner <borisk@mainsoft.com>
2524 * DataView.cs , DataRowView.cs : Added implementation to basic methods and properties.
2526 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2528 * XmlSchemaDataImporter.cs :
2529 SimpleContent column support.
2530 Annotated relation support.
2531 Top-level element is counted only when its type is complex.
2532 xs:anyType is no longer treated as complex type.
2533 dataset existence is mandatory now.
2534 Improved DataType and DefaultValue support.
2535 Attribute namespace is properly handled now.
2536 Prohibited attribute is now treated as hidden column.
2537 Reject list or union simple type.
2539 Still incomplete 1) to read relationship in some cases, 2) to
2540 determine whether an element is dataset or table, 3) thus to
2541 exclude extraneous column, 4) to remove extraneous *_Id column.
2543 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2546 We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
2547 serialization .ctor() (thus schema read/inference should be easier).
2548 DataRowSorter should consider Table's Locale.
2550 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2552 * DataColumnCollection.cs : We already had AutoIncrementValue(), so
2553 use it instead of duplicating logic.
2555 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2557 * ConstraintCollection.cs :
2558 Use Table.CaseSensitive and Table.Locale to compare strings.
2559 Duplicate constraint name exception does not occur under .NET 1.1.
2561 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
2563 * XmlSchemaDataImporter.cs: Added little type check.
2565 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
2567 * DataSet.cs: Implemented support for runtime serialization. Fixed support
2568 for xml serialization.
2569 * XmlDiffLoader.cs: Skip diffgram element when it is empty.
2571 2004-04-30 Umadevi S <sumadevi@novell.com>
2572 * DataColumnCollection.cs : Fixed nunit test errors, removed TODOs
2573 * DataTableCollection.cs : Tested and removed TODO
2574 * TypedDataSetGeneratorException.cs : Fixed a couple of TODOs
2576 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
2578 * DataRow.cs : My previous patch unintentionally reverted Boris patch.
2580 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2582 * UniqueConstraint.cs : Constraint columns becaomes unique after adding constraint ifand only if
2583 constraint is defined on single column.
2585 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
2587 * DataRowCollection.cs : .NET 1.1 throws InvalidConstaintException,
2588 not ArgumentException (maybe changed after 1.1).
2590 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
2592 * DataRow.cs : When Column was added and it was AutoIncrement column,
2593 it extended the item object array incorrectly.
2594 (Plus tiny comment and incorrect indentation fix.)
2596 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2598 * MergeManager.cs : added ( incomplete yet ) support for merging DataSet schema.
2600 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2602 * DataRow.cs : Bug fix in CopyValuesToRow().
2604 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2606 * UniqueConstraint.cs : There is no reason to mark constraint's columns as unique, because
2607 each of the columns should not be unique, but only all the constraint's columns together.
2609 2004-04-28 Boris Kirzner <borisk@mainsoft.com>
2612 - Added using of list of autoIncrement columns
2613 - SetColumnValue receives also DataColumn to avoid duplicate lookup in DatacolumnCollection
2614 - Fix in CheckNullConstraints
2615 - Fix in this[] and HasVersion() : when evaluating an expression deleted rows values can be accessed.
2616 - Fix in SetColumnValue() , added CanAccess() method to avoid case of accessing internal array values berore it actually allocated.
2617 - Added onColumnRemoved() method to threat column removal accurately.
2619 * DataRowCollection.cs :
2620 - Added using of DataRow._nullConstraintViolation (for perfomance fix in EndLoadData())
2621 - Added method onColumnRemoved() - calls each row's onColumnRemoved() (to ensure column removal is treated accurately)
2624 - Call DataRowCollection.onColumnRemoved() in OnRemoveColumn() (to ensure column removal is treated accurately)
2626 * DataColumnCollection.cs :
2627 - Perfomance fixes :
2628 - collection holds a list of its autoIncrement columns (avoids unnesessary lookup through whole collection)
2629 - collection holds mapping from column names to DataColumn objects (avoids lookup through whole collection).
2630 - automatic creation of column names rewrited (bug fixes + perfomance improvement)
2633 - Uses autoincrement list of a table
2635 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2637 * XmlDataLoader.cs : Even when it should ignore schema, it was
2639 * XmlSchemaDataImporter.cs : DataRelation creation support.
2640 Improved "DataSet" element handing. When attributes are on the
2641 element, it is not a "DataSet" element.
2642 Fixed parent key column name.
2643 Unique name creation is not required. Just raise an error.
2644 Fill facet also for attribute types.
2646 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2648 * DataRow.cs : Null check for CheckReadOnlyStatus() and
2649 CheckNullConstraints(), with some coding guideline fixes.
2650 Type check should be done by Type instance comparison.
2652 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2654 * DataColumnCollection.cs : When add a column to the collection, fill
2655 auto-increment column.
2657 2004-04-26 Boris Kirzner <borisk@mainsoft.com>
2659 * DataColumn.cs : Small perfomance fix (avoid unnesessary string concatenation).
2661 2004-04-26 Atsushi Enomoto <atsushi@ximian.com>
2663 * CustomDataClassGenerator.cs : Added.
2664 * TypedDataSetGenerator.cs : Implemented Generate().
2665 Changed GenerateIdName() to call CustomDataClassGenerator.MakeSafeName
2666 * XmlSchemaDataImporter.cs : Table Locale should be supplied.
2668 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
2670 * DataTable.cs : Small perfomance fix (avoid unnesessary string concatenation).
2672 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
2674 * Constraint.cs : Small perfomance fix (avoid unnesessary string concatenation).
2676 2004-04-23 Umadevi S (sumadevi@novell.com)
2677 * DataRow.cs: Checked BeginEdit,EndEdit,CancelEdit and Delete methods
2678 - Added error handling to the above methods
2680 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
2682 * DataSet.cs : Data should be read when mode is IgnoreSchema (well,
2683 the support is incomplete yet).
2684 * XmlDataLoader.cs :
2685 Reverted ReadModeSchema() argument change. XmlReadMode would be
2686 useful to handle IgnoreSchema.
2687 Don't overwrite DataSetName when mode is not such kind.
2688 Set Prefix and Namespace as well as DataSetName.
2689 AllowDBNull looks set false by default for element column.
2690 Set unique constraint as primary key when infering the table schema.
2692 2004-04-21 Atsushi Enomoto <atsushi@ximian.com>
2695 Never set null string for Prefix and Namespace.
2696 In InferXmlSchema() when null XmlReader is passed, just do nothing.
2697 In WriteXmlSchema(string), earlier try block.
2698 In BuildSchema(), try to add serialization namespaces for each
2699 namespaces in DataSet/DataTable/DataColumn.
2700 Removed namespace argument from WriteColumnAsElement() and don't
2701 overwrite when namespace is "". This fixes bug #57330.
2702 * DataColumn.cs : For Namespace and Prefix, never set null.
2704 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2706 * XmlSchemaMapper.cs : Check for not null unique constraint in ReadXmlSchemaKeyref()
2707 before creating and adding foreign key constraint and relation.
2709 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2711 * MergeManager.cs : In AdjustSchema() source table clone should be added
2712 and not the table itself.
2714 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2717 - CaseSensitive : Additional fix (removed unnesessary assignment).
2718 - CopyProperties : Do not try to copy ExtendedProperties if the collection is empty.
2720 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2722 * DataTable.cs : Ensure that DataSet property is not null before using it in Clear().
2724 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
2727 - EndLoadData() : perfomance fix in case of null constraint violation
2728 during data load (also in DataRow.cs).
2729 - CaseSensitive : If DataTable belongs to DataSet it should always use
2730 DataSet.CaseSensitive untill explicitly changed.
2731 - CopyProperties() : do not try to copy ExtendedProperties if the collection is empty.
2734 - Pefromance fix in case of null constraint violation
2735 during data load (also in DataTable.cs).
2736 - CollectionChanged() : use correct column number after new DataColumn was added
2737 (differs in case some DataColumn was previosly removed).
2738 - EndEdit() - throw away proposed values only after CheckChildRows() complete.
2740 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
2742 * DataColumnCollection.cs : Since unique constraint is added now
2743 in DataColumn.SetTable() the additional creation of constraint in
2744 DataColumnCollection.Add() is redundant and causes exception - fixed.
2746 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
2748 * XmlDataLoader.cs : Added "never add data rows" mode.
2749 Removed unused code. However, it is temporary fixes to unify
2750 ReadXml() and InferXmlSchema().
2751 * DataSet.cs : Implemented InferXmlSchema(), though it is incomplete.
2753 I'll create another XmlDataLoader since there are many problems
2754 such that 1) it is too waste to read the entire xml into an
2755 XmlDocument, 2) it does not handle attributes correctly, and 3) it
2756 must handle "ignored namespaces".
2758 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
2760 * Added XmlSchemaDataImporter.cs (new schema reader).
2761 * DataSet.cs : Use XmlSchemaDataImporter (right now for DataSet only)
2762 for ReadXmlSchema().
2763 Let schema reading work to ReadXmlSchema().
2764 Don't return ReadSchema when argument read mode was DiffGram.
2766 2004-04-15 Umadevi S (sumadevi@novell.com)
2767 * Updated Clone/Copy methods in DataSet along with Testcase
2768 * ForeignKeyConstraint.cs - special ctor implemented
2769 Logic : ParentTable in the ctor - Since only name is given (not the DataTable object), we cannot associate any DataTable or DataSet right now. So, only possible way is to do it when AddRange() is called. The ParentTable is searched in the DataSet to which the calling DataTable belongs. And make the calling DataTable as ChildTable. In the PostAddRange() method check is addedd to perform the assignment of parent and child data columns once the information becomes available (When AddRange is called).
2770 * Changes in ConstraintCollection.cs for the above
2771 Add (Constraint) - A check is performed to see if the constraint is ForeignKeyConstraint and whether data columns are validated. If no, whether it is called with AddRange(), If no, an Exception is thrown. AddRange() - PostAddRange() is called on the ForeignKeyConstraint object with the "table" as argument. Thanks to Deepak for the patch.
2774 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
2776 * XmlSchemaMapper.cs : set parent key and foreign key info to
2777 DataRelation when reading refkey constraints.
2778 Supply constraint name for fkey.
2780 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
2782 * XmlDataLoader.cs : Don't overwrite existing DataSetName. When read
2783 mode is Auto, just ignore the schema if there is already schema info.
2784 * DataSet.cs : Similarly ignore schema info for XmlReadMode = Auto.
2786 2004-04-14 Atsushi Enomoto <atsushi@ximian.com>
2789 - In MS output, XML declaration looks to have standalone decl (yes).
2790 - ReadXml(reader) just calls to ReadXml(reader, XmlReadMode.Auto)
2791 - ReadXml(reader, mode)
2792 1) return originally specified mode, instead of (always) Auto.
2793 2) Check empty reader.
2794 3) Check diffgram schema and content separately.
2795 4) When diffgram exists, remaining (the same-level) contents
2797 5) Similar fact should be applied, but somewhat different.
2798 InferSchema and IgnoreSchema just skips, Fragment reads both
2799 schema and content, others just reads schema.
2800 - Removed unused code.
2801 * XmlDataLoader.cs :
2802 - Read() should skip in some ReadMode.
2803 - Don't compare schema element name as case-insensitive (well,
2804 should schemas be checked here?)
2805 - Avoided BuildDocument() not to create confusing DataSet
2807 - Don't add any tables when reader has single element.
2808 * XmlDiffLoader.cs :
2809 When target table was not found, MS.NET doesn't raise an error.
2810 * XmlSchemaMapper.cs :
2811 When XmlSchema.Read() left xml reader at </xs:schema>, read once.
2813 2004-04-13 Atsushi Enomoto <atsushi@ximian.com>
2816 - InferXmlSchema(): Throw explicit NotImplementedException now.
2817 - Don't put XML declaration everywhere. Write just for filename arg.
2818 - xmlns="" should not be written. Maybe WebService problem is
2819 because default namespace is overwritten. This patch will keep
2820 the WS problem away and actually fixes some unit tests (i.e. use
2821 explicit String.Empty for null namespace in WriteStartElement()).
2822 - MoveToContent() should always be called, not only when
2823 LocalName="xml". It will ignore prolog (DTD, PI, comment etc.).
2824 - Even XmlReadMode is DiffGram, reader might not be "diffgram"
2825 element. As to MSDN, diffgram does not contain schema.
2827 2004-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2829 * DataTable.cs: made _initStatus private so that System.Data is CLS
2832 2004-04-13 Umadevi S <sumadevi@novell.com>
2833 * UniqueConstraint.cs:
2834 * ConstraintCollection.cs:
2836 - Implemented a Constructor for UniqueConstraint.cs
2837 - Used EndInit on DataTable to call a delegate which adds the
2838 constraints passed to the most recent call of AddRange().Used
2839 AddRange() on ConstraintCollection to check whether
2840 DataTable.BeginInit has occurred. If yes, save the argument
2841 constraint collection passed, then return. If no, Check whether the
2842 constraints are of type UniqueConstraint and initialized with the
2843 special constructor If yes Initialized the table property of this
2844 UniqueConstraint object with table assosciated with the current
2845 instance of ConstraintCollection class.
2847 2004-04-07 Marek Safar <marek.safar@seznam.cz>
2849 * Constraint.cs: changed ClsCompliant to CLSCompliant, build fix.
2851 2004-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2854 * DataColumnCollection.cs:
2855 * DataRelationCollection.cs:
2856 * DataRowCollection.cs:
2857 * DataTableCollection.cs:
2858 * InternalDataCollectionBase.cs:
2859 * Node.cs: CLS compliance for System.Data. Patch by Gert Driesen.
2862 2004-04-05 Jackson Harper <jackson@ximian.com>
2864 * DataTable.cs: Add rows to the row list if there is no filter.
2866 2004-03-31 Juraj Skripsky <juraj@hotfeet.ch>
2868 * DataColumn.cs : Setting Caption to null sets it to the empty string
2869 (ms.net behaviour, testcase is in DataColumnTest).
2871 * DataRow.cs : Evaluate DataColumn.Expression when such a column's
2874 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
2876 * DataColumn.cs: In Expression setter, set the expression member even if
2877 it is an empty string.
2878 * DataSet.cs: Support serialization of byte[] columns.
2879 * XmlDataLoader.cs: Support deserialization of Guid columns.
2880 Set MappingType.Attribute to columns infered from attributes.
2882 2004-03-29 Juraj Skripsky <juraj@hotfeet.ch>
2884 * ExpressionElements.cs : remove
2885 * DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
2886 Integration of new Mono.Data.SqlExpressions classes used in
2887 DataTable.{Select, Compute}.
2888 Fixes bug #55503 and lots of failures in DataTableTest.cs.
2890 2004-03-28 Juraj Skripsky <juraj@hotfeet.ch>
2892 * Index.cs: Simple fix in ComparePartialRowNonUnique.
2893 This fixes bugs #56129 and #56014.
2895 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
2897 * DataSet.cs: In WriteXml (string filename, XmlWriteMode mode), close the
2898 stream after writing the dataset. This fixes bug #52581.
2899 Also added several writer.Close into finally blocks, so writers are properly
2900 closed in case of an exception.
2902 2004-03-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2904 * Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
2905 * DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
2906 * ColumnTypeConverter.cs: Added stub
2907 * DefaultValueTypeConverter: Added stub
2908 * ConstraintConverter.cs: Added stub
2910 2004-03-04 Eran Domb <erand@mainsoft.com>
2912 * XmlDataLoader.cs : Xml reading reviewed. Added support for additional xml formats as described
2913 in MS.NET documentation (missing DataSet element etc).
2915 2004-03-04 Eran Domb <erand@mainsoft.com>
2918 * Index.cs : Rollback last changes.
2920 2004-03-03 Atsushi Enomoto <atsushi@ximian.com>
2922 * Index.cs : justa build fix.
2924 2004-03-03 Eran Domb <erand@mainsoft.com>
2927 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint, ConstraintCollection.cs, DataColumn.cs,
2928 DataRow.cs, DataRowCollection.cs, DataSet.cs, DataTable.cs : Changes made for using indexes on tables.
2929 This changes made for performance improvement.
2931 2004-02-08 Eran Domb <erand@mainsoft.com>
2933 * XmlSchemaMapper.cs : Read columns is they were written as SimpleContent or as Attributes.
2935 2004-02-08 Eran Domb <erand@mainsoft.com>
2937 * DataSet.cs: Fix some bugs in ReadXml().
2939 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
2941 * DataSet.cs: Added missing method that broke the build.
2943 2004-02-04 Eran Domb <erand@mainsoft.com>
2945 * DataRowCollection.cs (InsertAt): Add a check for null row. Replace check of IndexOf with RowId for
2947 * DataSet.cs (GetTableSchema) : Add supprot for simple content columns. Change the condition for a case
2948 when all column are attributes (elements count is 0), we still want to add the relations. No relations
2949 can be on simple contents.
2950 (AddUniqueConstraints) Check that the column of the constraint are not hidden.
2951 (AddForeignKeys) Check that the relation has constraints attach to it.
2952 * XmlConstants.cs : Added constant.
2954 2004-02-04 Eran Domb <erand@mainsoft.com>
2956 * DataSet.cs : GetSchemaSerializable() return null and not BuildSchema().
2957 DoWriteXmlSchema calls BuildSchema ().
2959 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
2961 * DataRow.cs: Added SetOriginalValue(), which is used to set the original
2963 * DataRowCollection.cs: In InsertAt(), perform the correct checks and
2965 * DataSet.cs: Fixed method GetChanges(): Parent rows of modified rows must
2966 also be added to the dataset.
2967 In WriteTable(), do not write unchanged rows when writing the original
2968 version of the table.
2969 Added WriteIndividualTableContent(), for writing the contents of a single
2971 Changed BuildSchema and related methods, so it can generate a schema for
2972 any set of tables, not just the tables of the dataset (needed for
2973 single datatable serialization).
2974 * DataTable.cs: Implemented serialization constructor and GetObjectData method.
2975 Also implemented some ReadXmlSchema methods.
2976 * XmlDiffLoader.cs: Read and process the xml document directly from XmlReader,
2977 instead of loading the full dataset in an XmlDocument. It is faster and
2978 saves memory. Also fixed several problems when generating the changes.
2979 * XmlSchemaMapper.cs: Support reading schemas for single tables (used by
2980 table serialization).
2982 2004-02-02 Eran Domb <erand@mainsoft.com>
2984 * DataSet.cs : Add indentation to the xml serialization only if we create the XmlWriter.
2985 Add the namespace attribute even if namespace is an empty string for inteoperability with MS.NET.
2986 * DataTable.cs (NewRow): Create only one DataRowBuilder.
2987 Initiate new row with row id -1.
2988 * DataRow.cs : Add RowId property.
2989 * DataRowBuilder.cs : Add _rowId member.
2990 * DataRowCollection.cs (Add) : Use the RowId property of the new row to check if it is already exists in the collection.
2992 2004-01-26 Eran Domb <erand@mainsoft.com>
2994 * XmlConstants.cs : Added some constants.
2995 * DataColumn.cs : Added a method to retrive AutoIncrement value.
2996 * XmlDataLoader.cs : Set the value of the foriegn key column, according to the value of the
2997 parent table column.
2998 * XmlDiffLoader.cs : Convert the value comming from the xml.
2999 * XmlSchemaMapper.cs (Read) : Set the DataSet namespace.
3000 (ReadXmlSchemaSequence) : Change the logic that decides if this element is a column or a table.
3001 (ReadXmlSchemaElement) : Set the locale of the dataset.
3002 (ReadColumn) : Set the column type. Find if the column is AutoIncrement.
3003 (GetColumnType) : New method to get the column type from the attribute value.
3004 (ReadXmlSchemaUnique) : Improve parsing of XPath. Set the constraint as a PK if needed,
3005 and add the constraint to the table.
3006 (ReadXmlSchemaKeyref) : Improve parsing of XPath. Create the FK constraint and add it to
3008 * DataSet.cs : Improving writing of unique constraints, and foriegn key constraint. Givving them the correct names.
3009 Writing more information to the schema for interoperability with ms.net.
3010 Improve diffgarm writing mode.
3013 2004-01-21 Atsushi Enomoto <atsushi@ximian.com>
3015 * TypedDataSetGenerator.cs : Implemented GenerateIdName().
3017 2004-01-21 Eran Domb <erand@mainsoft.com>
3019 * XmlDataLoader.cs (AddRowToTable) : Give thre new relation correct name.
3020 Do not set the child column to be AutoIncrement.
3021 Create the new column for the relation as MappingType.Hidden so they will not be serialized
3022 when writing the dataset to xml.
3024 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
3026 * Added missing TypedDataSetGenerator.cs.
3028 2004-01-08 Eran Domb <erand@mainsoft.com>
3030 * XmlSchemaMapper.cs : Fix a bug. Check if table already in DataSet before adding it.
3031 * DataSet.cs (ReadXml) : Fix bugs. Read correctly the xml file with XmlReadMode of DiffGram,
3032 InferSchema, ReadSchema and IgnoreSchema.
3033 * XmlDataLoader.cs : All modes use the same logic.
3034 * XmlDiffLoader.cs : Adding BuildXmlDocument method to the class.
3036 2004-01-06 Eran Domb <erand@mainsoft.com>
3038 * DataRelationCollection.cs : Use IndexOf in indexer.
3039 * DataSet.cs : Adding support for WriteXml with diffgram. Code style changes.
3040 * XmlDataLoader.cs : Set the DataSet.enforceConstraints to false before loading the tables.
3041 * XmlDiffLoader.cs : Reading nested tables.
3042 * XmlSchemaMapper.cs : Reading the relation.
3043 * XmlConstants.cs : Adding some constants.
3045 2004-01-05 Jackson Harper <jackson@ximian.com>
3047 * DataView.cs: Set readonly property of property descriptor. This
3050 2004-01-01 Sanjay Gupta <gsanjay@novell.com>
3052 * DataRelationCollection.cs : Fixed incorrect generation of default
3054 * DataSet.cs : Added missing functionality in WriteXml().
3055 * XmlConstants.cs : Added new constants.
3057 2003-12-27 Atsushi Enomoto <atsushi@ximian.com>
3059 * DataSet.cs : Fixed incorrect WriteXml() signature.
3061 2003-12-18 Jackson Harper <jackson@ximian.com>
3063 * DataView.cs: Implement AddNew, Delete, and OnListChanged.
3065 2003-12-17 Atsushi Enomoto <atsushi@ximian.com>
3067 * DataSet.cs, XmlDataLoader.cs : Table name should be encoded before
3068 they take shape of xml. This fixed bug #52240
3070 2003-12-16 Tim Coleman <tim@timcoleman.com>
3071 * KeyRestrictionBehavior.cs:
3072 New stubs added for .NET 1.2
3076 2003-12-08 Eran Domb <erand@mainsoft.com>
3077 * DataColumn.cs (Expression) : Validate the expression.
3079 * DataRelationCollection.cs (IndexOf) : Added new method sensetive to case differences in relation name.
3080 (Contains, IndexOf, this[], Add) : Call new IndexOf when needed.
3082 * DataRow.cs (this[]) : Fix the condition for throwing RowNotInTableException.
3083 (RejectChanges) : Detach row when state was Added.
3084 (CollectionChanged) : Fix a bug.
3086 * ExpressionElement (ValidateExpression) : Fix a bug.
3088 * ForeignKeyConstraint.cs (AssertConstraint) : Added implementation. Check all rows from child table have
3089 a parent row in the parent table.
3090 (_validateColumns) : Fix bugs.
3092 * MergeManager.cs (AdjustSchema) : Fix a bug.
3094 * XmlDataLoader.cs (ReadModeInferSchema) : Change implementation. Now we can read nested xml, and we generate the relations
3097 2003-11-30 Eran Domb <erand@mainsoft.com>
3098 * DataColumnCollection.cs (this[string name]) : Use IndexOf to find the column.
3099 (Add) : Find if the new column name is the same as the one found in IndexOf.
3100 (IndexOf) : New method.
3101 (Contains) : Use new IndexOf.
3102 (IndexOf) : Use new IndexOf.
3104 * DataRelationCollection.cs (DataRelationCollection.AddCore) : Add The Relation to the collection.
3105 (DataSetRelationCollection.AddCore) : First add the UniqueConstraint.
3107 * DataRow.cs (this[int columnIndex, DataRowVersion version]) : Change exceptions.
3108 (Delete) : Detach row if the RowState was Added.
3109 (GetChildRows) : Get the array form the ChildTable.
3110 (GetParentRows) : Get the array from the ParenTable.
3112 * DataRowCollection.cs (Remove) : Check if row state is Detached to avoid exception.
3114 * DataSet.cs (IXmlSerializable.ReadXml) : Do not call MoveToContent and ReadEndElement - the XmlSerializationReader does it.
3116 * DataTable.cs (PrimaryKey) : Fix bugs.
3117 (Compute) : First call Select. Then create ExpressionAggregate to aggregate the Select result.
3119 * DataTableCollection.cs (Add) : Fix a bug.
3121 * ExpressionElement.cs (ValidateExpression) : Turning ValidateExpression to static.
3122 (Result) : Added new interface to AggregateExpression that get DataRow[] as a param.
3123 Some code style changes (tab instead of whit spaces, alignment, etc...).
3125 * ForeignKeyConstraint.cs (_validateColumns) : Throw correct exception.
3127 * MergeManager.cs (AdjustSchema) : Fix a bug.
3131 2003-11-26 Miguel de Icaza <miguel@ximian.com>
3133 * DataSet.cs: Add a few more missing methods, code style updated
3136 2003-11-26 Tim Coleman <tim@timcoleman.com>
3138 * ConflictOptions.cs DataAdapterException.cs DataTableReader.cs
3139 * DbMetaData.cs FillOptions.cs IDataReader2.cs IDataRecord2.cs
3140 * IDataUpdatableRecord.cs IDbAsyncCommand.cs IDbAsyncConnection.cs
3141 * IDbExecutionContext.cs IGetTypedData.cs ISetTypedData.cs
3142 * LoadOption.cs OperationAbortedException.cs ResultSetOptions.cs
3143 * ResultSetSensitivity.cs StatementCompletedEventArgs.cs
3144 * StatementCompletedEventHandler.cs UpdateOptions.cs:
3145 New classes added for NET_2_0
3146 * DBConcurrencyException.cs DataRelation.cs DataSet.cs DataTable.cs
3147 * DataTableCollection.cs DataView.cs ForeignKeyConstraint.cs:
3148 Modifications to add new NET_2_0 functions
3150 2003-11-25 Tim Coleman <tim@timcoleman.com>
3154 2003-11-21 Pedro Martinez Julia <yoros@wanadoo.es>
3156 * DataRow.cs: Detached row can be accesible (new rows from data
3157 table are detached). Closes but #51263.
3159 2003-11-19 Eran Domb <erand@mainsoft.com>
3160 * DataRow.cs : Throw exceptions if Row is Detached.
3161 (EndEdit) : Check that we are not in middle of ChangeEvent.
3162 (AcceptChanges) : Detach the row.
3164 * DataRelation.cs : throw correct exception.
3165 *UniqueConstraint.cs : throw correct exception.
3168 2003-11-09 Pedro Martinez Julia <yoros@wanadoo.es>
3170 * DataRow.cs: Use RemoveInternal instead of Remove because the last
3171 one uses Delete and AcceptChanges.
3173 * DataRowCollection.cs: When removing, Delete and AcceptChanges
3174 method from the row are called. Added an internal method that will
3175 be used by DataRow to "physically" remove the row from the list.
3177 2003-11-09 Pedro Martinez Julia <yoros@wanadoo.es>
3179 * DataRowCollection.cs: To follow the specification: Remove and
3180 RemoveAt should remove the row. But needed to call DeletingDataRow
3181 to prepare the deleting.
3183 * DataRow.cs: Don't call DeletingDataRow when it is called by the
3184 method Table.Rows.Remove.
3186 2003-11-09 Pedro Martinez Julia <yoros@wanadoo.es>
3188 * DataRowCollection.cs: Make the row be deleted by itself. If not,
3189 it fails because we need to call OnRowDeleting and OnRowDeleted. It
3190 is full implemented inside DataRow.
3192 2003-11-05 Eran Domb <erand@mainsoft.com>
3193 * DataView.cs (ctor) : Changing default RowStateFilter to CurrentRow.
3195 2003-11-04 Eran Domb <erand@mainsoft.com>
3196 * DataRow.cs (CheckChildRows) : Improving the implementation - checking child for all FK, and not
3198 (GetChildRows) : Adding some checks.
3199 (GetParentRows) : Adding some checks. Fix a bug in implementation.
3200 (SetParentRow) : Added implementation.
3202 * DataRowCollection.cs (Add) : Added more checks on the row added to the collection.
3203 * DataTable.cs (Copy) : Set the During Loading flag to save unnecessary assertions.
3204 * ForeignKeyConstraint.cs (AssertConstraint) : Fixing bugs in implementation. Checking for DBNull values in the row.
3205 * MergeManager.cs : Check that the target table is not null.
3207 2003-10-27 Eran Domb <erand@mainsoft.com>
3208 * DataColumn.cs (DefaultValue) : Changing null value to DBNull. Checking that the type of the new default value
3209 can be converted to the column type.
3211 * DataRelationCollection.cs (AddCore) : Give the new FK the name of the relation.
3213 * DataRow.cs (EndEdit) : Check if we need to validate the constraints.
3214 (GetParentRows, GetChildRows) : Checking that the row has the wanted version, before accessing the row's value.
3216 * DataRowCollection.cs (Add) : Fixing a bug.
3217 (Clear) : Before clearing the array check that there is no violation of FK constraint.
3219 * DataSet.cs (Prefix) : If value is null chage it to empty string.
3220 (GetXml) : Removing the Processing Instructions from the xml string as in MS ADO.NET.
3222 * ExpressionElement : Adding support for IN expresion.
3224 * DataTable (CopyConstraints) : New method that copy the tables constraints to the copy table.
3225 (Select) : Adding support for DataViewwRowState.
3227 * ForeignKeyConstraint.cs (AssertConstraint) : Adding implementation.
3229 * MergeManager.cs (MergeRow) : Fix bugs.
3231 2003-10-27 Eran Domb <erand@mainsoft.com>
3232 * DataRow.cs (SetColumnValue): Donot check null value when in midle of loading data.
3233 check null values when ending loading data.
3235 * DataSet.cs (RejectChanges) : Imlementation.
3236 (Prefix) : If prefix was changed fire event. Check that the prefix is not null - if null,
3237 change it to empty string.
3239 * DataTable.cs (BeginLoadData, EndLoadData) : Impemantation.
3241 2003-10-22 Eran Domb <erand@mainsoft.com>
3242 * MergeManager.cs : Fixing bugs. Adding check for PrimaryKey matching.
3244 * ConstraintCollection.cs (RamoveAt): Change implemntation.
3246 * DataTableCollection (CanRemove): Removing cast to Constraint.
3248 2003-10-22 Eran Domb <erand@mainsoft.com>
3249 * DataRelationCollection.cs (AddCore): The unique constraint was added even if the createConstraints flag was false.
3250 (Clear): The collection was cleared without removing the relation from the parent and child tables.
3252 * DataSet.cs (Copy, Clone): The Relations of the DataSet were not copy.
3253 (HasChanges, Reset): Imlementation.
3255 * DataTable.cs (HasErrors): There is no flag for errors, instead the table ask her row if they have any errors.
3256 This is because the we do not no when to turn off the flag.
3257 (Locale): Changing implementation to behave like ADO.NET.
3258 (AcceptChanges): Fix bug.
3259 (Clear): Check that this table is not referenced from a foreign key constraint.
3260 (Copy): Do not try to access a deleted row.
3261 (CopyProperties): Copy the PrimaryKey.
3262 (GetChanges, ImportRow): Implementation.
3263 (LoadDataRow): Adding implementation if the table has PrimaryKey.
3264 (ToString): Changing implementation to behave like ADO.NET.
3266 * UniqueConstraint.cs (AssertConstraint): support for Multiple DataColumns in the constraint.
3268 * DataRow.cs (Ctor): In the constructor we initiate the current array, but we should initiate only the proposed array for new rows.
3269 (HasErrors): Implementation.
3270 (Delete): Added checking for child rows of the deleted row.
3271 (EndEdit): Added checking for child row and firing events.
3272 (GetColumnError): Added a check that the method will not return null, as in ADO.NET(an empty string is returned).
3273 (GetColumnsInError): Added a check for null values in column error.
3274 (HasVersion): Added special treatment for special RowState.
3275 (CollectionChanged): More checks to avoid NullReferenceException.
3277 * DataRowCollection.cs (Remove): Fix a bug.
3280 2003-10-01 Duncan Mak <duncan@ximian.com>
3282 More patches from Eran Domb <erand@mainsoft.com>.
3284 * MergeManager.cs: New file.
3286 * DataRelationCollection.cs (AddCore): Check that a
3287 UniqueConstraint is already exists. It loops over the Relations
3288 instead of the Constraints.
3289 (Add, AddCore): The relation was added twice.
3291 * DataSet.cs (Merge, GetChanges, HasChanges): Implemented.
3293 2003-09-30 Duncan Mak <duncan@ximian.com>
3295 Patches from Eran Domb <erand@mainsoft.com>.
3297 * DataRelation.cs (constructor): When the name of the relation is
3298 null, it should return an empty, not "Relation".
3300 * DataRow.cs (AcceptChanges): Added special case for
3302 (CancelEdit): Set editing flag to false.
3303 (IsNull): Check that the value is DBNull.
3305 * DataRowCollection.cs (Add): There was no check that the table of
3306 the collection is owned by a DataSet.
3308 * DataSet.cs (OnMergeFailed): Added.
3310 * UniqueConstraint.cs (AssertConstraint): There was no check that
3311 values in the row are not null, where it is a primary key
3312 column. Also check that the row has a proposed version, if not,
3313 get the current version when we compare the rows.
3315 2003-09-25 Duncan Mak <duncan@ximian.com>
3317 Patches from Eran Domb <erand@mainsoft.com>.
3319 * DataColumn.cs (Unique): Implemented.
3322 * ConstraintCollection.cs:
3323 * ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
3324 an Exception thrown. Details:
3325 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html
3327 * DataRowCollection.cs (Add): There is no checking that there is
3328 no violation of the unique constrains.
3330 * UniqueConstraint.cs (AssertConstraint): There is no checking on
3331 all columns in the constraint.
3333 * DataTableCollection (Add): Correctly throw an Exception, more
3335 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002117.html
3336 (Remove, RemoveAt): Implemented.
3338 2003-07-31 Duncan Mak <duncan@ximian.com>
3340 * DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
3342 2003-07-25 Ravi Pratap <ravi@ximian.com>
3344 * DataRelation.cs (OnPropertyChanging): Calling the 'Invoke'
3345 method on a delegate is disallowed - fix this.
3347 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
3349 * DataSet.cs: Implemented IXmlSerializable interface. Added basic support for
3350 xml serialization. Modified method of writing schema. Now it creates
3351 a XmlSchema object and serializes it using XmlSerializer.
3352 * XmlConstants.cs: Added constants for data type names.
3353 * XmlDataLoader.cs: Fixed deserialization of data. Now converts data to the
3354 type specified in the column.
3356 2003-04-20 Alan Tam <Tam@SiuLung.com>
3358 * DataRelationCollection.cs: Fix a bug that prevent relations
3359 from being added via DataSet.
3361 2003-04-12 Ville Palo <vi64pa@kolumbus.fi>
3363 * UniqueConstraint.cs: one tiny fix.
3365 2003-04-05 Ville Palo <vi64pa@kolumbus.fi>
3367 * DataTable.cs: Remove UniqueConstraints when adding new ones
3369 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
3371 * DataColumnCollection.cs: Little 'case sensitive' fix
3373 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
3375 * DataRow.cs: AutoIncrement handling to Constructor
3376 * DataRowCollection.cs: This doesnt need anymore AutoIncrements
3378 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
3380 * DataTable.cs: Some fixes to PrimaryKey etc...
3381 * UniqueConstraint.cs: Little clean up
3383 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
3385 * DataTable.cs: Tiny fix to ToString () -method
3387 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
3389 * ConstraintCollection.cs: Little fix.
3390 * DataColumn.cs: Added new internal method SetUnique()
3391 * UniqueConstraint.cs: some little fixes
3393 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
3395 * DataRowCollection.cs: Bugfixes, implementation,...
3397 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
3399 * DataColumn.cs: If DataType if set to something else than short, int
3400 or long and AutoIncrement is true, AutoIncrement is must set to false.
3402 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3405 (BeginEdit): fixed array bound problem when a column has been added.
3406 (EndEdit): just assign proposed to current as proposed is set to null.
3407 This also fixes another array boudn problem.
3409 2003-03-21 Alan Tam <Tam@SiuLung.com>
3411 * DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
3412 EndEdit and AcceptChanges to act correctly according to DataRowState
3414 * DataRowCollection.cs: Call AttachRow and DetachRow when a row is
3415 attached and detached from the collection.
3417 2003-03-20 Alan Tam <Tam@SiuLung.com>
3419 * DataColumn.cs: Store empty string for Expression when null is passed in.
3420 Classes generated by XSD.exe passes null by default.
3422 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
3424 * DataColumnCollection.cs: Tiny clean up
3426 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
3428 * DataColumn.cs: little fixes.
3429 * DataColumnCollection.cs: Lots of little fixes and improvments.
3431 2003-03-12 Alan Tam <Tam@SiuLung.com>
3433 * DataSet.cs: Fixed a bug that the file written does not close correctly.
3435 2003-03-08 Alan Tam <Tam@SiuLung.com>
3437 * DataRelationCollection.cs: Removed the mis-overridden methods
3438 * DataRow.cs: Fixed an attribute
3439 * DataSet.cs: Fixed the modifiers
3441 2003-03-06 Aleksey Demakov <avd@openlinksw.com>
3443 * DataTableCollection.cs: The Contains (string name),
3444 IndexOf (string name) methods, and item[string name] indexer
3445 now behave more like .NET with respect to case-sensitivity.
3446 That is if there is an exactly matching item then this one is used.
3447 If there is only one item differing in case then it used.
3448 If there are more than one item differing in case then
3449 Contains returns false, IndexOf returns -1, and item[]
3450 throws an ArgumentException.
3452 2003-02-28 Ville Palo <vi64pa@kolumbus.fi>
3454 * ExpressionElement.cs: More implementation.
3456 2003-02-28 Alan Tam <Tam@SiuLung.com>
3457 * DataSet.cs: Changed WriteTable so that it now calls the newly written
3458 WriteObjectXml to direct the call to the respective XmlConvert method.
3459 This fixes the wrong format written to XML files of bool, float,
3460 double, DateTime and TimeSpan types.
3462 2003-02-25 Alan Tam <Tam@SiuLung.com>
3464 * DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
3465 * DataRelationCollection.cs: Implemented AddRange and Contains.
3466 Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
3467 Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
3468 Reimplemented most Add methods to eliminate duplicated checks.
3469 Centralized RelationName generation procedure in GetNextDefaultRelationName.
3471 2003-02-25 Alan Tam <Tam@SiuLung.com>
3473 * DataColumn.cs: Fixed wrong storage representation of Expression
3474 (using empty string instead of null) so that ToString() returns nothing.
3475 * DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
3476 auto column naming now works as expected. Reimplemented some Add methods
3477 to eliminate code duplication.
3479 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
3481 * DataTable.cs: DataTable.CaseSensitive follows parent
3482 DataSet.CaseSensitive property if DataTable.CaseSensitive has never
3483 been changed directly from DataTable
3485 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
3487 * DataSet.cs: When CaseSensitive property is changed all of the Tables
3488 of DataSet have to change too
3490 2003-02-19 Daniel Morgan <danmorg@sc.rr.com>
3492 * InternalDataCollectionBase.cs: revert change to field
3495 * DataViewManager.cs
3498 * DataSet.cs: commented use of DesignerAttribute
3499 because it broke the build. According to MSDN,
3500 DesignerAttribute does not have a zero-argument constructor
3502 2003-02-18 Ville Palo <vi64pa@kolumbus.fi>
3504 * DataColumnCollectin.cs: Little fix for indexer and case sensitivity
3506 2003-02-18 Alan Tam <Tam@SiuLung.com>
3508 * DataRow.cs: Implemented GetParentRow and GetParentRows.
3509 * DataSet.cs: Added stub for HasChanges, InferXmlSchema,
3510 OnPropertyChanging, OnRemoveRelation, OnRemoveTable,
3511 RaisePropertyChanging.
3512 * DataTable.cs: Implemented NewRowArray.
3513 * DataTablePropertyDescriptor: Fixed a modifier.
3514 * InternalDataCollectionBase.cs: Fixed modifiers. Implemented SyncRoot.
3515 * PropertyCollection.cs: Minor fix.
3516 * ConstraintCollection.cs DataColumn.cs DataColumnCollection.cs
3517 * DataRelation.cs DataRelationCollection.cs DataRow.cs
3518 * DataRowCollection.cs DataRowState.cs DataSet.cs DataTable.cs
3519 * DataTableCollection.cs DataTablePropertyDescriptor.cs DataView.cs
3520 * DataViewManager.cs DataViewRowState.cs DataViewSettingCollection.cs
3521 * ForeignKeyConstraint.cs InternalDataCollectionBase.cs
3522 * PropertyCollection.cs UniqueConstraint.cs: Added missing attributes
3524 2003-02-08 Ville Palo <vi64pa@koti.soon.fi>
3526 * ExpressionElement.cs: More implementation
3528 2003-02-05 Alan Tam <Tam@SiuLung.com>
3530 * DataSet.cs: Added framework for DataSet.Update Implemented missing
3531 methods GetSchemaSerializable, GetSerializationData,
3532 ReadXmlSerializable, ShouldSerializeRelations and ShouldSerializeTables
3534 * DataTable.cs: Implemented missing methods CreateInstance and
3535 GetRowType for DataTable
3537 2003-02-03 Ville Palo <vi64pa@koti.soon.fi>
3539 * DataSet.cs: Implemented private method MapType for
3540 mapping datatypes for XmlSchema
3542 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3544 * DataView.cs: implemented Dispose.
3546 2003-01-30 Ville Palo <vi64pa@koti.soon.fi>
3548 * ExpressionElement.cs: Added new file. This file is for parsing
3549 and DataData.Select () -methods and DataColumn.Expression -property
3550 * DataTable.cs: Implemented Select(string) -method
3552 2003-01-28 Ville Palo <vi64pa@koti.soon.fi>
3554 * DataSet.cs: One little fix to writing xml
3556 2003-01-27 Ville Palo <vi64pa@koti.soon.fi>
3558 * XmlSchemaMapper.cs: Some fixes.
3559 * DatSet.cs: Some XmlFixes and BeginInit ()/ EndInit () -fix
3562 2003-01-24 Ville Palo <vi64pa@koti.soon.fi>
3564 * UniqueConstraint.cs: Do not set columns Unique property true
3566 * ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table
3568 2003-01-18 Ville Palo <vi64pa@koti.soon.fi>
3570 * DataTableCollection.cs: Now names new DataTable if it doesn't
3571 already have a name.
3573 2003-01-17 Ville Palo <vi64pa@koti.soon.fi>
3575 * XmlSchemaMapper.cs: Improvments.
3576 * XmlConstaints.cs: Added more constants.
3577 * DataSet.cs: Improvments of reading and writing xml
3578 * DataColumn.cs: Added default values of properties.
3580 2003-01-14 Ville Palo <vi64pa@koti.soon.fi>
3582 * XmlSchemaMapper.cs: Some improvments
3584 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
3586 * DataRowCollection.cs: Added IndexOutOfRangeException
3587 * DataTableCollection.cs: Added OnCollectionChanging and
3588 OnCollectionChanged events.
3589 * DataSet.cs: Many fixes. Implemented Clone () and Copy () -methods
3590 * DataTable.cs: Implemented Copy () and Clone () methods.
3591 * XmlDataLoader.cs: some fixes.
3592 * XmlSchemaMapper.cs: comments.
3594 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3596 * DataColumnPropertyDescriptor.cs: store columnIndex in the .ctor.
3598 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3600 * DataColumnPropertyDescriptor.cs: fixed typo.
3601 * DataViewManagerListItemTypeDescriptor.cs: added new internal property
3602 to get the DataViewManager and removed TablePD class.
3603 * DataTablePropertyDescriptor.cs: TablePD class is now this one as
3604 suggested by danmorg.
3606 2003-01-06 Ville Palo <vi64pa@koti.soon.fi>
3608 * XmlDataLoader.cs: Moved diffgram stuff to new internal class
3610 * XmlDiffLoader.cs: new class for diffgrams. Added handling of
3611 diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
3613 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3615 * DataView.cs: made dataViewManager internal.
3616 * DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
3617 properties of the object, but the values of the columns present in a
3620 * DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
3621 which returns a PropertyDescriptorCollection. Created a new class
3622 derived from PropertyDescriptor that treats Table as an object whose
3623 properties are DataRowView.
3625 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
3627 * XmlSchemaMapper.cs: Added handling for Constraints, Attributes.
3629 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
3631 * DataColumn.cs: ExtendedProperties is by default !null-
3633 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
3635 * DataColumnCollection.cs: Add (DataColumn Column) -method didn't
3636 set column's ordinal.
3638 2003-01-02 Ville Palo <vi64pa@koti.soon.fi>
3641 * XmlDataLoader.cs: XmlReader closing fixes.
3642 * XmlSchemaReader.cs: Added support for ref=
3644 2003-01-01 Ville Palo <vi64pa@koti.soon.fi>
3647 - Added XmlReader and XmlWriter Closing.
3648 - Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
3649 * XmlSchemaMapper.cs
3650 - Much better way IMHO to map xmlschema than the old one in
3651 DataSet.cs. Its, more flexible, cleaner, ...
3653 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
3655 * XmlDataLoader.cs: Reading diffgrams.
3657 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
3659 * DataRow.cs: Little fix to indexer and DataColumnCang* trigger fixes.
3660 * DataTable.cs: Added ChanginDataColumn () for triggering
3661 DataColumnChanging event
3663 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
3665 * DataSet.cs: Indentations to WriteXmlSchema () and one little fix
3667 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
3669 * DataSet.cs: Indentations to WriteXml ()
3671 2002-12-27 Ville Palo <vi64pa@koti.soon.fi>
3674 * XmlDataLoader.cs: Moved ReadXml -stuff from DataSet.cs to new
3675 class XmlDataLoader.cs
3677 2002-12-19 Ville Palo <vi64pa@koti.soon.fi>
3679 * DataSet.cs Implemented ReadXml with XmlReadMode.ReadSchema
3681 2002-12-18 Ville Palo <vi64pa@koti.soon.fi>
3683 * DataSet.cs: Started to implement ReadXml-methods.
3685 2002-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3687 * DataSet.cs: implemented DefaultViewManager and GetList.
3689 * DataViewManager.cs: a bit of work on IList and ITypedList needed by
3690 DataList in System.Web.
3692 * DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
3695 2002-12-16 Ville Palo <vi64pa@koti.soon.fi>
3698 * DataTable.cs: Fixed NullException (rollback -event)
3699 * DataSet.cs: WriteXml -method does not anymore write <?xml... row.
3701 2002-12-15 Ville Palo <vi64pa@koti.soon.fi>
3704 * DataRowCollection.cs: Moved event triggering from DataRow to
3707 2002-12-09 Ville Palo <vi64pa@koti.soon.fi>
3709 * DataSet.cs: Little fix to WriteTable () -method
3710 and DoReadXmlSchema () -method.
3712 2002-12-06 Ville Palo <vi64pa@koti.soon.fi>
3714 * DataSet.cs: Clean up to reading xmlschema. This looks much better
3715 now (work better too), but it not working correctly yet.
3717 2002-12-04 Ville Palo <vi64pa@koti.soon.fi>
3720 * DataRowCollection.cs: Added some event handlins stuff.
3721 * DataSet.cs: Some fixes.
3722 * DataTable.cs: Added event handlers.
3724 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
3726 * DataRowChangeEventArgs.cs: Implemented Action and Row properties
3728 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
3730 * System.Data/DataRow.cs: Added internal property XmlDataID
3732 2002-11-29 Ville Palo <vi64pa@koti.soon.fi>
3734 * DataSystem.Data.DataTableCollection.cs:
3735 Removed HashTable. There could be situations where DataTable
3736 is added to collection before it hava TableName. So using
3737 HashTable is impossible.
3739 2002-11-19 Carlos Guzman Alvarez <carlosga@telefonica.net>
3741 * DataRow.cs: an object that is equal to null
3742 should be allowed to be set in this indexer too
3745 2002-11-06 Daniel Morgan <danmorg@sc.rr.com>
3747 * DataColumnPropertyDescriptor.cs: added file
3749 * System.Data/DataRowView.cs: started implementation
3751 * DataTable.cs: stubbed more interfaces. Implemented
3752 IListSource.GetList()
3754 * DataView.cs: stubbed more interfaces. Implemented
3755 some properties and methods: GetEnumerator(),
3756 ITypedList.GetItemProperties, Item indexer, CopyTo()
3758 2002-05-18 Nick Drochak <ndrochak@gol.com>
3760 * DataRow.cs: Fix typo.