1 2008-09-05 Raja R Harinath <harinath@hurrynot.org>
3 * DataRow.cs (_hasParentCollection): Remove. Implied by _rowId >= 0.
4 (HasParentCollection): Remove.
5 * DataRowCollection.cs (AddInternal, InsertAt): Update to changes.
7 * DataTable.cs (NewRowArray): Special case size == 0 to avoid
8 creating a lot of garbage.
10 * DataRow.cs (Detach): Rename from DetachRow. Make private.
11 Simplify code to be more uniform. Move common prefix code here ...
12 (AcceptChanges) [Deleted]: ... from here ...
13 (Delete) [Added]: ... and here ...
14 (RejectChanges) [Added]: ... and here.
16 2008-09-04 Raja R Harinath <harinath@hurrynot.org>
18 * DataRow.cs (CheckChildRows) <1-arg variant>: Remove excessive
20 (CheckChildRows) <3-arg variant>: Likewise. Move/split loop
22 (EndEdit): Out-dent some code.
23 (IsNullColumns): Simplify slightly.
25 * DataRelationCollection.cs (CanRemove): Simplify slightly.
27 * DataRelation.cs (CheckStateForProperty): Use the childColumn to
30 * DataColumn.cs (AllowDBNull.set): Rearrange code to be more readable.
31 (AutoIncrement.set): Likewise.
33 (SetDefaultValue): Likewise.
35 2008-08-28 Raja R Harinath <harinath@hurrynot.org>
37 * Constraint.cs (SetExtendedProperties): New internal method.
39 (ExtendedProperties.set): ... here. Kill a #ifdef.
40 * DataTable.cs (DeserializeConstraints): Update to changes.
42 2008-08-27 Raja R Harinath <harinath@hurrynot.org>
44 * ConstraintCollection.cs (Item) <string variant>: Don't incur
45 additional check for index that's returned by 'IndexOf'.
46 (_createNewConstraintName): Improve readability of code.
47 (_isDuplicateConstraintName): Perform cheaper test first.
49 * ConstraintCollection.cs: Reduce some #ifdef by using partial
50 classes. Move 'sealed' and '[Serializable]' to appropriate
51 partial class declarations.
52 * DataRowCollection.cs: Likewise.
54 2008-08-13 Marek Habersack <mhabersack@novell.com>
56 * DataRow.cs: do not check whether a column is read-only when
59 2008-08-08 Raja R Harinath <harinath@hurrynot.org>
61 * DataColumn.cs: Update to changes in DataCollection.
63 2008-07-29 Veerapuram Varadhan <vvaradhan@novell.com>
66 * XmlDataReader.cs (ReadElementElement): Handle custom reference types sanely.
68 2008-07-20 Gert Driesen <drieseng@users.sourceforge.net>
70 * DataColumnCollection.cs (IndexOf): Include name of column - for which
71 there are multiple matches in a different case - in the exception
73 * DataRow.cs (this [int]): On 2.0 profile, throw ArgumentException if
74 value is null and datatype of column is a value type. On 1.0 profile,
75 only allow null value if datatype of column is string. Do not replace
76 value with DBNull.Value if value is null.
78 2008-07-04 Gert Driesen <drieseng@users.sourceforge.net>
80 * DataRow.cs: Use indexer of DataColumnCollection instead of IndexOf.
81 Cosmetic changes to exception message.
82 * DataColumnCollection.cs: Fixed off by one error in index check. Added
83 null check in name indexer. In Clear, also reset columnNameCount and
86 2008-07-03 Gert Driesen <drieseng@users.sourceforge.net>
88 * DataRow.cs: Added missing null checks. Cosmetic changes to exception
91 2008-07-03 Marek Habersack <mhabersack@novell.com>
93 * DataRow.cs (this []): Use DBNull instead of throwing an exception
95 2008-07-01 Rodrigo Kumpera <rkumpera@novell.com>
97 * DataTable.cs: Kill some foreach loops.
101 2008-07-01 Marek Safar <marek.safar@gmail.com>
103 * DataColumnCollection.cs: Made few simple optimizations.
105 2008-06-28 Zoltan Varga <vargaz@gmail.com>
107 * DataTable.cs (NewRowArray): Avoid using reflection if possible.
109 2008-06-19 Atsushi Enomoto <atsushi@ximian.com>
111 * DataRelation.cs : keep createConstraints flag for cloning in
112 DataSet.Merge(). Use different flag for initialization instead.
113 * MergeManager.cs : When cloning DataRelation, createConstraints
114 flag should depend on the source.
115 * XmlSchemaDataImporter.cs : create constraints when creating
118 2008-06-18 Atsushi Enomoto <atsushi@ximian.com>
120 * DataSet.cs : when InferSchema mode, ReadXml() should do "merging
122 * XmlDataInferenceLoader.cs : fixed primary key processing in
123 merging inference mode. Reuse existing one, instead of rejecting
126 2008-06-17 Atsushi Enomoto <atsushi@ximian.com>
128 * XmlSchemaWriter.cs, DataSet.cs, XmlTableWriter.cs, DataTable.cs,
129 XmlDataInferenceLoader.cs, XmlSchemaDataImporter.cs:
130 fix xsd output on msdata:Locale and msdata.UseCurrentCulture.
131 Output explicit Locale only when it is explicitly specified.
132 On the other hand, ReadXml/ReadXmlSchema fills Locale as en-US
133 by default (on .NET).
134 Some code unification in DataTable.WriteXmlSchema() overloads.
136 2008-06-16 Atsushi Enomoto <atsushi@ximian.com>
138 * DataColumn.cs : replaced Activator.CreateInstance() with
139 returning explicit Null member for each SqlXxx type.
141 2008-06-13 Atsushi Enomoto <atsushi@ximian.com>
144 DefaultValue can be non-DBNull. For SqlXxx type, it becomes
145 SqlXxx.Null. Also, changing DataType may change DefaultValue
146 to be consistent with the new type (say, having int DefaultValue
147 for new string DataType is wrong).
150 This should be fixed to take non-DBNull default value into
153 2008-06-12 Atsushi Enomoto <atsushi@ximian.com>
155 * DataSet.cs, DataTable.cs, XmlSchemaDataImporter.cs : constraints
156 on missing tables are ignored when reading a DataTable schema.
157 Fixes part of DataTableTest.ReadXmlSchema() test.
159 2008-05-30 Marek Habersack <mhabersack@novell.com>
161 * Constraint.cs: do not use synthetized event accessors (to avoid
164 2008-05-29 Marek Habersack <mhabersack@novell.com>
166 * DataColumn.cs: do not use synthetic methods for events - this
167 avoids unnecessary locking, especially for internal events.
169 2008-04-21 Gert Driesen <drieseng@users.sourceforge.net>
171 * DataRowView.cs: Modified argument names to match MS. Use
172 String.Empty instead of "". Code formatting.
174 2008-04-16 Veerapuram Varadhan <vvaradhan@novell.com>
176 * XmlDataInferenceLoader.cs (ReadXml): Make sure the name of
177 reference key column(s) in child tables are unique.
179 * XmlSchemaWriter.cs (WriteSchema, WriteDataSetElement,
180 WriteTableType, WriteChildRelations): Handle the scenario wherein
181 we have a relation and only one table. This can occur when we
182 have an XML with same parent/child table names.
184 2008-03-31 Veerapuram Varadhan <vvaradhan@novell.com>
186 * DataView.cs: Reverting rev#98474 changes - as it broke quite a
189 2008-03-23 Gert Driesen <drieseng@users.sourceforge.net>
191 * DataSet.cs: Corcompare fix.
192 * IDataRecord.cs: Corcompare fix.
194 2008-03-22 Gert Driesen <drieseng@users.sourceforge.net>
196 * DataViewSettingCollection.cs: Corcompare fixes and code formatting.
197 * SyntaxErrorException.cs: Corcompare fixes and code formatting.
198 * EvaluateException.cs: Corcompare fixes and code formatting.
199 * StrongTypingException.cs: Coecompare fixes and code formatting.
200 * ReadOnlyException.cs: Corcompare fixes and code formatting.
201 * DataTableCollection.cs: Corcompare fixes and code formatting.
202 * MissingPrimaryKeyException.cs: Corcompare fixes and code formatting.
203 * DeletedRowInaccesibleException.cs: Corcompare fixes and code
205 * DataSet.cs: Corcompare fixes and code formatting.
206 * DuplicateNameException.cs: Corcompare fixes and code formatting.
207 * DataView.cs: Corcompare fixes and code formatting.
208 * VersionNotFoundException.cs: Corcompare fixes and code formatting.
209 * MergeFailedEventArgs.cs: Corcomare fixes and code formatting.
210 * InvalidExpressionException.cs: Corcompare fixes and code formatting.
211 * DBConcurrencyException.cs: Corcompare fixes and code formatting.
212 * DataRowView.cs: Corcompare fixes and code formatting.
213 * DataViewManager.cs: Corcompare fixes and code formatting.
214 * ConstraintException.cs: Corcompare fixes and code formatting.
215 * InvalidConstraintException.cs: Corcompare fixes and code formatting.
216 * IDataRecord.cs: Corcompare fixes.
217 * RowNotInTableException.cs: Corcompare fixes and code formatting.
218 * TypeDataSetGeneratorException.cs: Corcompare fixes and code
220 * InRowChangingEventException.cs: Corcompare fixes and code formatting.
221 * NoNullAllowedException.cs: Corcompare fixes and code formatting.
222 * DataException.cs: Corcompare fixes and code formatting.
224 2008-03-17 Veerapuram Varadhan <vvaradhan@novell.com>
226 ** Fixes part1 of #357947
227 * DataView.cs: (OnRowDeleted): Don't call update, instead delete the row
228 directly from Index. Peformance fix submitted by Hubert FONGARNAND
229 <informatique.internet@fiducial.fr>.
231 2008-02-04 Arina Itkes <arinai@mainsoft.com>
233 * DataTable.cs: Fix for IXmlSerializable.ReadXml.
235 2008-01-28 Arina Itkes <arinai@mainsoft.com>
237 * DataTable.cs: Fix for IXmlSerializable.WriteXml.
239 2007-10-21 Gert Driesen <drieseng@users.sourceforge.net>
241 * DataColumn.cs: Fixed ParamName of ArgumentNullException. Modified
242 exception message for invalid DateTimeMode value to match MS. Code
245 2007-10-19 Nagappan <anagappan@novell.com>
247 * DataRelation.cs: Removed bogus TODO.
249 2007-09-27 Nagappan A <anagappan@novell.com>
251 * DataRelationCollection.cs: Added LAME spec comment as there is no
252 relevant event. Removed MonoTODO too.
254 2007-09-26 Nagappan A <anagappan@novell.com>
256 * DataView.cs (ToTable): Added params keyword.
258 * DataTable.cs: Added XmlSchemaProvider attribute.
260 2007-09-25 Konstantin Triger <kostat@mainsoft.com>
262 * DataSet.cs: correct WriteAttributeString while writing xml with
263 XmlWriteMode.WriteSchema.
265 2007-09-25 Nagappan A <anagappan@novell.com>
267 * DataTable.cs: Code alignment.
269 2007-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
271 * DataColumnCollection.cs: refactoring, fixed columnNameCount comparer
272 to remove culture sensitive ToLower() calls
274 2007-07-22 Nagappan A <anagappan@novell.com>
276 * DataRow.cs: Added internal set property for Table in 2.0
279 * DataColumn.cs: Added internal set property for Table in 2.0
282 2007-07-01 Gert Driesen <drieseng@users.sourceforge.net>
284 * DataRowCollection.cs: Only override Count on 2.0 profile.
285 * RelatedDataView.cs: Fixed line endings.
286 * XmlDataInferenceLoader.cs: Fixed line endings.
288 2007-06-30 Gert Driesen <drieseng@users.sourceforge.net>
290 * DataTableCollection.cs: CopyTo is 2.0 only. Removed extra tabs,
291 and changed spaces to tabs.
293 2007-06-06 Nagappan A <anagappan@novell.com>
295 * DataTable.cs (Select): Removed ununsed variable.
297 2007-05-30 Nagappan A <anagappan@novell.com>
299 * DataColumnCollection.cs (CopyTo): Method specific to 2.0
302 * DataRowCollection.cs (Count): Property is overridden in 2.0
305 * TypedDataSetGenerator.cs: Class is obsolete in 2.0 profile.
307 * DataRelationCollection.cs (CopyTo): Method specific to 2.0
310 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
312 * CustomDataClassGenerator.cs: Misc fixes in order to emit correct VB code.
313 CreateDataSetDefaultCtor: we're creating a delegate, not an object, so use a DelegateCreateExpression.
314 CreateDataSetSchemaChanged: we're comparing value types, use the correct equality operator.
315 CreateTableGetEnumerator: explicity state that the method is an implementation of IEnumerable.GetEnumerator.
316 CreateTableEventStarter: we're invoking a delegate, so use a DelegateInvokeExpression.
317 Several changes to not generate members with names that only differ by case.
319 2007-05-18 Chris Toshok <toshok@ximian.com>
321 * DataColumnCollection.cs (Add ()): handle the default name case
323 (Add (string)): same - let Add(DataColumn) handle the default name
325 (Add (DataColumn)): in the 1.1 case, we need to add the column's
326 PropertyChanged handler *before* possibly setting the column name
327 to the default so we emit the right events (Changed/Added). In
328 the 2.0 case, we add the event handler after the name is set, and
329 therefore only emit the Added event.
331 2007-05-07 Adar Wesley <adarw@mainsoft.com>
333 * ConstraintCollection.cs: added CopyTo method with strongly typed Constraint[]
336 * DataTable.cs: added implementation of IXmlSerializable. Added missing
337 method ReadXmlSerializable.
339 2007-04-19 Chris Toshok <toshok@ximian.com>
341 * DataColumnCollection.cs (Add): the Element in our
342 CollectionChangedEventArgs should be the column, not the
343 collection. Also, add an event handler for the column's
344 PropertyChanged event so we can propagate metadata changes.
345 (Remove): Analogous change to the CollectionChangedEventArgs as in
346 Add. Also, unhook the column's PropertyChanged event.
347 (OnCollectionmetaDataChanged): emit our new event.
348 (ColumnPropertyChanged): called when the column's ColumnName
349 property changes. Emit the proper CollectionChangeEvent.
351 * DataView.cs (ColumnCollectionChanged): fix up the comment about
352 CollectionChangeAction.Refresh, and make explicit what generates
354 (RegisterEventHandlers): hook up
355 DataColumnCollectoin.CollectionMetaDataChanged.
356 (RegisterEventHandlers): unhook
357 DataColumnCollectoin.CollectionMetaDataChanged.
359 2007-02-23 Nagappan A <anagappan@novell.com>
361 * DataRow.cs (Item): Checks whether this DataRow exist in the
362 DataRowCollection, then compute the expression. Fixes bug #
365 * DataRowCollection.cs (IndexOf): Modified as internal method for
368 * XmlDataReader.cs (StringToObject): DataTables containing
369 System.Type throw exception on deserializing. Fixes bug # 80596.
371 * XmlDataLoader.cs (StringToObject): DataTables containing
372 System.Type throw exception on deserializing. Fixes bug # 80596.
374 2007-02-20 Konstantin Triger <kostat@mainsoft.com>
376 * XmlSchemaDataImporter.cs: ensure the tables are created in document order.
378 2007-02-19 Konstantin Triger <kostat@mainsoft.com>
380 * XmlDataReader.cs, XmlDataInferenceLoader.cs, XmlDiffLoader.cs:
381 ignore attributes from "http://www.w3.org/XML/1998/namespace".
382 * XmlConstants.cs: add constant for "http://www.w3.org/XML/1998/namespace".
383 * XmlDataInferenceLoader.cs: track the added elements index to fix the
384 added column ordinal.
386 2006-12-11 Chris Toshok <toshok@ximian.com>
388 * DataView.cs: GetItemProperties should return an empty collection
389 if we have no data table. Presently we NRE.
391 2006-12-08 Nagappan A <anagappan@novell.com>
393 * DataTable.cs (ReadXml): Removed if condition, as it should not
394 check the exception string.
396 2006-12-07 Chris Toshok <toshok@ximian.com>
398 * DataView.cs: add CollectionChangeEventHandler's on the
399 ChildRelations and ParentRelations collections, and emit
400 ListChanged events with PropertyDescriptor.Added/Deleted/Changed
403 2006-12-07 Nagappan A <anagappan@novell.com>
405 * DataTable.cs (ReadXml): Integrated the implementation of
406 ReadXml, patch provided by deepak_2603@yahoo.com.
408 2006-12-05 Nagappan A <anagappan@novell.com>
410 * DataTable.cs (WriteXmlSchema): Using XmlTextWriter instead of
411 XmlWriter, solved the File Sharing IO Exception.
413 2006-11-28 Hubert FONGARNAND, FrAcdAcric Mestayer <informatique.internet@fiducial.fr>
415 * DataColumnCollection.cs : Improved Column searching when not
416 using exact column name (case sensitivity). Fixes bug # 80075.
418 2006-11-28 Nagappan A <anagappan@novell.com>
420 * XmlSchemaDataImporter.cs: Fixed 2.0 profile compilation
421 warnings. Using AttributeSchemaType instead of AttributeType and
422 ElementSchemaType instead of ElementType.
424 * TypedDataSetGenerator.cs: Modified the profile check from
425 !NET_1_1 to !NET_1_0, as this class is obsolete from 1.1 profile.
427 * DataRelationCollection.cs (Item): Modified the property Item as
428 abstract and implemented it in DataSetRelationCollection and
429 DataTableRelationCollection classes.
431 * DataRowView.cs: Remove bogus MonoTODOs.
433 * ForeignKeyConstraint.cs (ForeignKeyConstraint): Implemented
434 2.0 profile's missing constructor.
436 * XmlDataLoader.cs (StringToObject): Modify XmlConvert.ToDateTime
437 to use XmlDateTimeSerializationMode, as the default ToDataTime
440 * XmlDataReader.cs (StringToObject): Modify XmlConvert.ToDateTime
441 to use XmlDateTimeSerializationMode, as the default ToDataTime
444 * DataView.cs (IsInitialized): Added browsable attribute.
446 * DataViewSettingCollection.cs (CopyTo): Implemented missing 2.0
449 * DataRelation.cs (DataRelation): Added 2.0 profile constructor to
450 take parentTableNameSpace and childTableNameSpace as argument.
451 (FinishInit): Update parentTableNameSpace and childTableNameSpace,
452 when the string is not empty in 2.0 profile.
454 * DataRowCollection.cs: Implemented Count public property.
455 Added !NET_2_0 for List protected property, as it has been removed
457 (IndexOf): Implemented new public method.
458 (CopyTo): Implemented new public override method.
459 (GetEnumerator): Implemented new public override method.
461 * DataTable.cs (Load): Throw ArgumentNullException, when reader
463 (WriteXmlSchema): Throw InvalidOperationException, when table name
464 is empty. When DataSet Namespace is set, append that with '_x003A_'
466 (IsInitialized): Added browsable attribute.
468 * DataSet.cs (Load): Throw ArgumentNullException, when reader
470 (IsInitialized): Added browsable attribute.
471 (WriteObjectXml): Modify XmlConvert.ToDateTime to use
472 XmlDateTimeSerializationMode, as the default ToDataTime method id
475 * XmlSchemaWriter.cs (WriteSchema): Modified UseCurrentCulture to
477 (WriteDataSetElement): Added minOccurs attribute.
478 (WriteConstraints): Check for tables length, if > 1 then add the
479 relations to XmlSchema.
481 2006-11-21 Nagappan A <anagappan@novell.com>
483 * DataView.cs: Added public event Initialized.
484 (IsInitialized): Implemented public function to check whether a
485 dataview is initialized or not.
487 * DataSet.cs: Added ISupportInitializeNotification for .NET 2.0
489 (RemotingFormat): Set the default value attribute as
490 SerializationFormat.Xml.
491 (IsInitialized): Implemented public function to check whether a
492 table is initialized or not.
493 (CreateDataReader): Added params keyword in argument.
494 (Load): Implemented all Load overloaded functions.
495 (GetObjectData): Modified to public for .NET 2.0 implementation.
496 (IsBinarySerialized): Implemented the public API to check whether
497 the given stream is binary serialized or not.
498 * DataTable.cs: Added ISupportInitializeNotification for .NET 2.0
501 2006-11-15 Nagappan A <anagappan@novell.com>
503 * DataTable.cs (RemotingFormat): Set the default value attribute
504 as SerializationFormat.Xml.
505 (OnTableNewRow, NewRowAdded): Implemented new function to raise an
506 event when a new row is added to the table.
507 (DataTableInitialized, OnTableInitialized): Implemented new
508 function to raise an event when a table is initialized.
509 (IsInitialized): Implemented public function to check whether a
510 table is initialized or not.
511 (OnTableClearing): Raise an event before the table is cleared.
512 (GetObjectData): Modified to public for .NET 2.0 implementation.
513 (Load): Implemented missing API to call the registered delegate
514 function on load exception.
515 (WriteXmlSchema): Implemented overloaded function to write the
516 hierarchy with XML Schema.
518 2006-11-15 Konstantin Triger <kostat@mainsoft.com>
520 * DataTable.cs: Fixed LoadDataRow scenarios.
521 * DataRowCollection.cs: Added override for AddInternal taking DataRowAction parameter.
523 2006-11-14 Konstantin Triger <kostat@mainsoft.com>
525 * DataColumn.cs: consider row version wen checking row.IsNull().
527 2006-10-18 Nagappan A <anagappan@novell.com>
529 * ForeignKeyConstraint.cs (_validateColumns): Parent and child
530 columns can't be the same column - Exception, bug # 79689
532 2006-10-13 Nagappan A <anagappan@novell.com>
534 * DataTable.cs (DeserializeConstraints): Fine tuned the
535 serialization and deserialization of constraints.
537 * DataRelationCollection.cs (Contains): Fixes bug
538 #79233. DuplicateNameException when two relations for different
539 DataTables in DataSet are defined
541 2006-10-06 Patrick Earl <mono@patearl.net>
543 * DataTable.cs, XmlTableWriter.cs, XmlSchemaWriter.cs, DataSet.cs:
544 Implemented DataTable.WriteXml
546 2006-09-26 Nagappan A <anagappan@novell.com>
548 * DataTable.cs, DataSet.cs, DataColumn.cs, Constraint.cs,
549 DataRow.cs: Implementation of Binary Serialization /
552 * DataTable.cs (RowsExist): Check rows based on version.
554 * DataRow.cs: Raise exception same as MS.NET. Thanks to
555 Hubert FONGARNAND <informatique.internet@fiducial.fr> for
556 providing this patch.
558 2006-09-07 Vladimir Krasnov <vladimirk@mainsoft.com>
560 * DataSet.cs: added 2.0 stubs to solve typed dataset porting issues
562 2006-08-30 Nagappan A <anagappan@novell.com>
564 * DataRow.cs (EndEdit): DataRow.EndEdit emits RowChanged too
565 often. Fixes bug # 78885.
567 2006-08-14 Konstantin Triger <kostat@mainsoft.com>
569 * DataTableCollection.cs, DataRelationCollection.cs, DataRowCollection.cs,
570 DataColumnCollection.cs: implemented specialized CopyTo() method.
572 2006-07-26 Nagappan A <anagappan@novell.com>
574 * DataTable.cs (GetIndex): Fixes memory explode on
575 DataTable.Select - Bug # 77691.
577 2006-07-25 Nagappan A <anagappan@novell.com>
579 * DataView.cs (OnRowCollectionChanged): On DataTable.Clear,
580 setting rowCache to empty DataRowView. Fixes bug # 78610.
582 * DataTable.cs (AcceptChanges): Raises Reset event. Fixes bug #
585 2006-07-20 Senganal T <tsenganal@novell.com>
588 - Merge : moved the columntypecheck to AdjustSchema,
589 Remove the unncessary calls to Table.ResetIndexes.
590 - AdjustSchema : check for columntypes
591 Thanks to Deepak Kr Valechha for the patch
593 2006-07-17 Senganal T <tsenganal@novell.com>
596 - ToTable : Implemented all the overloads
597 - Equals : Implemented
598 - IBindingListView : Implemented the interface
600 2006-07-15 Senganal T <tsenganal@novell.com>
602 * DataTableCollection.cs :
603 - Contain,IndexOf,Remove,Add,Indexer : support for table
604 namespace. Remove redundant checks in Remove/Add.
606 2006-07-14 Senganal T <tsenganal@novell.com>
609 - SetOrdinal : Implemented
610 - Ordinal : added internal set
611 * DataColumnCollection.cs :
612 - Add : Set the column ordinals
613 - MoveColumn : Changes the position of column in the
616 2006-07-14 Senganal T <tsenganal@novell.com>
619 - Merge - Implement the merge methods
620 - Clone - Ensure column's DateTimeMode property is also copied
622 - DateTimeMode : Implemement
623 - DataTypeMatches : Added. In 2.0 profile, test DateTime
624 property when verifying column types.
626 - ctr : For DateTime columns, check DateTimeMode property
627 * ForeignKeyConstraint.cs :
628 - _validateColumns : For DateTime columns, check DateTimeMode
631 - Merge : Added. Overload to merge two tables
632 - ResolveColumns : Change the method to use a table instead of
634 - Renamed AdjustSchema to AdjustSchemaRelations
636 2006-07-13 Senganal T <tsenganal@novell.com>
639 - WriteTables : Remove some commented out code
640 - WriteTable : Fix the logic to skip the table data when the
641 table has a nested relation.
644 2006-07-12 Senganal T <tsenganal@novell.com>
646 * ConstraintCollection.cs :
647 - Remove (string): If constraint name is not found, throw exception
648 - Remove (Constraint): Set the ConstraintCollection of the removed
650 Thanks to Deepak Kr Velachha for reporting the bug.
652 2006-07-12 Senganal T <tsenganal@novell.com>
655 - LoadColumnChildren : If schema name is missing, skip the
657 Thanks to Deepak Kr Velachha for identifying the bug.
659 2006-07-11 Senganal T <tsenganal@novell.com>
661 * XmlSchemaWriter.cs :
662 - WriteTableType : If Relation.Nested is true, then nest the
663 table schemas. Correct the xml to add the table element within
664 the <Sequence> element.
665 - WriteChildRelations : Correct the Xml element name and
666 attributes. Close the attribute correctly.
668 * XmlSchemaDataImporter.cs :
669 - GenerateRelationship : When creating the relations, if
670 ParentColumn exists but Corr ChildCol is null, create a child
671 Column with the same name and type as the parent column.
672 - Renamed DataSetDefinesPrimaryKey to DataSetDefinesKey
673 - DataSetDefinesKey : if either xsd:key or xsd:keyref is
674 defined for the dataset, do not manually create the relations.
675 - AddParentKeyColumn : if Columnname already exists, use
676 colname_0 instead of throwing an exception.
677 - FillDataColumnRepeatedSimpleElement : Do not set the Unique
678 value as it creates a constraint by default. The unique value
679 is automatically set when pk is set.
680 - CreateChildColumns : Added. Creates a ChildColumn duplicating
681 ParentColumn properties.
683 2006-06-30 Senganal T <tsenganal@novell.com>
686 - SetAdded, SetModified : new methods in 2.0
688 2006-06-30 Senganal T <tsenganal@novell.com>
689 * SerializationFormat.cs, DataSetDateTime.cs, DataTableNewRowEventArgs.cs,
690 DataTableNewRowEventHandler.cs : Added
691 * SyntaxErrorException.cs EvaluateException.cs StrongTypingException.cs
692 IsolationLevel.cs ReadOnlyException.cs DataTableCollection.cs
693 DataRowState.cs MissingPrimaryKeyException.cs DeletedRowInaccessibleException.cs
694 DuplicateNameException.cs PropertyAttributes.cs StatementType.cs
695 VersionNotFoundException.cs FillErrorEventHandler.cs DataRowChangeEventHandler.cs
696 XmlWriteMode.cs InvalidExpressionException.cs StateChangeEventHandler.cs
697 DbType.cs DataColumnChangeEventHandler.cs KeyRestrictionBehavior.cs
698 ConnectionState.cs SchemaType.cs MergeFailedEventHandler.cs SqlDbType.cs
699 DataRowVersion.cs ForeignKeyConstraint.cs DBConcurrencyException.cs
700 OperationAbortedException.cs MissingSchemaAction.cs DataTableClearEventHandler.cs
701 DataRowView.cs DataRowAction.cs ConstraintCollection.cs DataTableReader.cs
702 LoadOption.cs InvalidConstraintException.cs InternalDataCollectionBase.cs
703 ParameterDirection.cs AcceptRejectRule.cs UpdateRowSource.cs XmlReadMode.cs
704 TypedDataSetGenerator.cs RowNotInTableException.cs TypeDataSetGeneratorException.cs
705 InRowChangingEventException.cs MissingMappingAction.cs NoNullAllowedException.cs
706 CommandBehavior.cs PropertyCollection.cs CommandType.cs
707 UpdateStatus.cs ConflictOption.cs DataViewRowState.cs Rule.cs
708 DataColumnCollection.cs :
711 2006-06-27 Senganal T <tsenganal@novell.com>
713 * DataSet.cs, DataTable.cs : implement CreateDataReader methods
714 * InternalDataCollectionBase.cs
715 - ToArray () : helper method
716 * DataTableReader.cs :
717 - GetSchemaTable : set the schema info correctly
718 - GetProvider*, GetChars, GetBytes, GetValues :
719 Implemented the methods
720 - GetName : return the name of corresponding schema.
721 - ValidateSchemaIntact, OnColumnCollectionChanged,
723 Listen and raise expception if schema changes
725 2006-06-21 Chris Toshok <toshok@ximian.com>
727 * DataView.cs: update the index after we successfully add the new
728 row. This keeps the dataview's row view count in sync with the
731 2006-06-20 Chris Toshok <toshok@ximian.com>
733 * DataView.cs: the PropertyDescriptorCollection returned by
734 ITyepdList.GetItemProperties should include the child relations of
735 our table, in order to match MS's behavior.
737 * DataViewManager.cs: ICollection.Count property is always 1.
739 2006-06-15 Senganal T <tsenganal@novell.com>
742 - Select : If Sort String is not provided, sort the result
743 DataRows in Ascending Order of the Columns used in the filter
745 2006-06-15 Senganal T <tsenganal@novell.com>
748 - InternalEnforceConstraints : Check if any null constraints
749 are violated. Throw ConstraintException only after all the errors
752 - EnforceConstraints : Move away the logic to check for
753 NullConstraintViolation.
754 - AssertNotNullConstraint : Checks for Null Constraint
756 - EndLoadData : Do not throw any exceptions here. All the
757 errors have to be found and RowErrors set before throwing the
760 - ImportRecrod : Check the values of the row for any null
762 - SetColumnError : If the error for column is already set,
763 do not add a new error but edit the existing error.
764 - CheckValue : Set the NullConstraintViolation flag if either
765 table is being loaded or if EnforceConstraints is set to
767 * Constraint.cs : Do not throw exception when EnforceConstraints is
768 set to false or table is being loaded.
769 * UniqueConstraint.cs : Correct the error message. Set ColumnErrors
770 along with the RowError.
772 2006-05-31 Gert Driesen <drieseng@users.sourceforge.net>
774 * DataTable.cs: Renamed initInProgress to fInitInProgress. BeginInit
775 and EndInit must only be virtual in 2.0 profile. Set eol-style to CRLF.
777 2006-05-31 Senganal T <tsenganal@novell.com>
779 * XmlDataInferenceLoader.cs :
780 - InferTableElement : Repeated element should result in a single
782 Patch from Deepak Kr Velachha
784 2006-04-21 Senganal T <tsenganal@novell.com>
786 * DataRowCollection.cs :
787 - Find : If search on the table using PrimaryKey fails and if
788 index is not being maintained (during table load), search the
790 - Find (int) : Removed. Deadcode.
792 - Not necessary to delete each row from the Index.
793 Just reset the Indexes after cleaning up the row
795 - Simplify dependency check for child tables
798 - Do not use DataRowCollection.Find to search for
799 existing records as this wud check even newly loaded rows.
801 - Do not add new records to Index. Update Index only
802 if an existing record is modified. New records will be
803 taken care by EndLoadData.
805 2006-04-19 Senganal T <tsenganal@novell.com>
807 * XmlHelper.cs : A helper class for encoding/decoding schema names.
808 Caches the Schema names to minimize encoding/decoding operations and
809 duplicate strings created.
811 - Use XmlHelper for encoding/decoding schema names.
812 - Encode ConstraintNames when writing as xml.
815 * XmlDataInferenceLoader.cs
816 * XmlSchemaDataImporter.cs
817 - Use XmlHelper for encoding/decoding schema names.
818 * DataTableCollections : Minor code refactor.
819 * DataRow.cs : Create XmlElement only if required.
821 2006-04-07 Senganal T <tsenganal@novell.com>
824 - InternalEnforceConstraints() : Reset Indexes of all tables
825 before validating constraints. Fixes #78010
827 2006-03-04 Boris Kirzner <borisk@mainsoft.com>
828 * TypeDataSetGeneratorException.cs: fix .Net Soap serialization compatibility.
830 2006-03-25 Senganal T <tsenganal@novell.com>
833 - RejectChanges : When row is in Deleted state, add the row back to
834 Indexes and Validate the row.
837 2006-03-23 Senganal T <tsenganal@novell.com>
840 - LoadDataRow : Add the row to the indexes, when loading a new row.
842 2006-03-22 Senganal T <tsenganal@novell.com>
845 - PrimaryKey : Set the IsPrimaryKey attribute before Removing from collection.
846 - RemoveUniqueConstraints : Removed. dead code.
849 - If adding/removing constraint fails, retain Unique value
850 - Remove redundant code
851 * UniqueConstraint.cs :
852 - SetIsPrimaryKey : Added. Sets the value of IsPrimaryKey.
853 - RemoveFromConstraintCollectionCleanup : If constraint is on a single column, then
854 set Unique for that column to false.
855 - CanRemoveFromCollection : Do not remove constraint, if its a PrimaryKey
857 2006-03-20 Senganal T <tsenganal@novell.com>
860 - CopyRelations () : When copying the relation, do not add constraints
861 automatically for the relation.
862 - OnMergeFailed () : If merge fails and no handler is set for the MergeFailedEvent,
863 then throw DataException
864 * ConstraintCollection.cs :
865 - Add () : Check if a constraint already exists on the Columns that are being
867 - IndexOf () : Do not check for equivalent constraints, check for the exact instance.
868 * MergeManager.cs ():
870 - Handle the MissingSchemaAction.Error case,
871 - Do not create constraints when mergin the DataRelation
872 - Follow the semantics for schema merge/validation when constraints are already present
873 in the target DataSet.
874 - AdjustPrimaryKeys () :
876 - Verify Order of Columns in the PrimaryKey when merging.
877 - ResolveColumns : Changed the arument to DataSet. Simplifies code elsewhere.
878 - CompareColumnArrays, CompareColumnArrays : Helper funtions.
880 2006-03-09 Senganal T <tsenganal@novell.com>
883 - RejectChanges () : Add the row to index, if it was in deleted state and
884 Update the index if in Modified State.
885 - AcceptChanges () : Do not update the Indexes.
886 - EndEdit () : Update the indexes even if BeginLoadData has been called
887 on the table. Ideally, indexes should not be maintained during DataLoad,
888 but this needs to handled in multiple places correctly. For now, just maintain
889 the index to ensure correct operation.
891 2006-03-05 Senganal T <tsenganal@novell.com>
894 - BeginInit (), EndInit () : Implemented methods
895 - InitInProgress : Added.
897 - EndInit () : Move the adding of columns and constraints
899 - FinishInit () : Added. Adds the Constraints and Columns
901 - InitInProgress : Added.
903 - FinishInit () : Added. Virtual method
904 - InitInProgress : Added. Virtual property
905 * UniqueConstraint.cs
906 * ForeignKeyConstraint.cs
907 - FinishInit () : Added.
908 - InitInProgress : Added.
909 - DataColsNotValidated : Removed.
910 * ConstraintCollection.cs
911 - PostAddRange : Removed event
912 - PostEndEdit () : Renamed to PostAddRange
913 - Add () : Simplified the testing if constraint is initialized
914 - AddRange () : Simplified initializing the constraints
915 * DataTableCollection.cs
916 - PostAddRange () : Added. Adds the tables to the collection
917 * DataColumnColletion.cs
918 - PostEndInit () : Renamed to PostAddRange.Also, add column to
919 the collection only if not null.
921 Added/Implemented methods for design time support. Renamed some methods for consistency
922 in naming across classes for methods serving the same purpose.
924 2006-02-24 Senganal T <tsenganal@novell.com>
926 * UniqueConstraint.cs :
927 - ChildConstraint : Added. Simplifies verifying if constraints are
929 - CanRemoveFromCollection : Fixed the check to verify if constraints is
930 linked to a ForeignKeyConstraint. Fixes #77630
931 * ForeignKeyConstraint.cs :
932 - _validateRemoveParentConstraint : Removed. Not used anymore
933 - ParentConstraint : Added. Simplifies verifying if constraints are
935 2006-02-22 Senganal T <tsenganal@novell.com>
938 - RejectChanges : Do not remove Row from Indexes when state is Deleted.
939 - CheckChildRows : When checking for the ChildRows, use the current value
940 and not the original value.
942 2006-02-18 Atsushi Enomoto <atsushi@ximian.com>
944 * CustomDataClassGenerator.cs : Patch by Marek Habersack. xsd now
945 outputs AutoIncrement, AutoIncrementSeed, AutoIncrementStep and
946 ReadOnly properties. This fixes bug #77576.
948 2006-02-17 Chris Toshok <toshok@ximian.com>
950 * System.Data/DataSet.cs, System.Data/DataView.cs,
951 System.Data/ForeignKeyConstraint.cs,
952 System.Data/DataViewManager.cs, System.Data/DataRow.cs,
953 System.Data/DataSysDescriptionAttribute.cs,
954 System.Data/UniqueConstraint.cs, System.Data/DataTable.cs,
955 System.Data/DataRelation.cs: lots of attribute work, removing
956 DataSysDescription atributes (and marking the class obsolete) for
959 2006-02-17 Chris Toshok <toshok@ximian.com>
961 * DataAdapterException.cs: remove this file.
963 2006-02-17 Chris Toshok <toshok@ximian.com>
965 * DataTableReader.cs: Switch to the (bool) form of Dispose to
966 override, as the no-arg form isn't virtual.
968 * Constraint.cs: #ifdef out more DataSysDescriptions.
970 * ConstraintException.cs: add ..ctor (string, Exception) for 2.0.
972 2006-02-17 Chris Toshok <toshok@ximian.com>
974 * DataColumn.cs: #ifdef all the DataSysDescriptions !NET_2_0.
976 * AdapterMappingException.cs: nuke this file.
978 * IDbAsyncConnection.cs, IDbAsyncCommand.cs, IGetTypedData.cs,
979 ISetTypedData.cs, IDataReader2.cs, IDataSources.cs,
980 IDbExecutionContext.cs, IDataRecord2.cs, IDataUpdatableRecord.cs:
981 remove these 2.0 files.
983 2006-02-17 Chris Toshok <toshok@ximian.com>
985 * ConstraintCollection.cs: in 2.0, class is not serializable and
986 is sealed. make all the "virtuals" #if !NET_2_0 as well.
988 * Constraint.cs: not serializable in 2.0.
990 * DataColumnCollection.cs: in 2.0, class is not serializable and
991 is sealed. make all the "virtuals" #if !NET_2_0 as well.
993 * DataRelationCollection.cs: not serializable in 2.0.
995 * DataRelation.cs: not serializable in 2.0.
997 * DataRowBuilder.cs: class is sealed in 2.0.
999 * DataRowCollection.cs: in 2.0, class is not serialized and is
1000 sealed. Also, Add isn't virtual in 2.0 (as the class is sealed).
1002 * DataRow.cs: not serializable in 2.0.
1004 * DataSet.cs: remove some DataSysDescriptions from the 2.0 build,
1005 and s/GetDataReader/CreateDataReader.
1007 * DataTableCollection.cs: in 2.0, class is not serializable and is
1008 sealed. make all the "virtuals" #if !NET_2_0 as well.
1010 * DataTableReader.cs: remove VisibleFieldCount property.
1012 * DataViewSettingCollection.cs: not serializable in 2.0.
1014 * DataViewSetting.cs: not serializable in 2.0.
1016 * ForeignKeyConstraint.cs: serializable in 2.0.
1018 * OperationAbortedException.cs: class is sealed and serializable.
1020 * PropertyCollection.cs: serializable in 2.0.
1022 * StatementCompletedEventArgs.cs: class is sealed.
1024 * UniqueConstraint.cs: not serializable in 2.0.
1026 2006-02-16 Senganal T <tsenganal@novell.com>
1029 WriteDataSetElement : Add an annotation element if exists.
1030 WriteDataRelationAnnotation : New. Write a DataRelation as an annotation.
1031 WriteConstraints : Write ForeignKeyConstraint even when not associated with
1032 a DataRelation and add a "ConstraintOnly=true" attribute for such constraints.
1033 * XmlConstants.cs : Add a new constant - ConstraintOnly
1034 * XmlSchemaImporter.cs :
1035 - ConstraintStructure : Add field ,IsConstraintOnly, to distinguish if a foreignkeyconstraint
1036 is related to relation or not.
1037 - GenerateRelation : Handle the case when parentkey and childkey contain multiple columnnames.
1039 2006-02-11 Senganal T <tsenganal@novell.com>
1041 * UniqueConstraint.cs :
1042 - PostAddRange : Check PrimaryKey is not already set for the table
1044 - PrimaryKey : follow ms.net behavior when BeginInit , EndInit is used.
1045 - Add new priamry key only when EndInit is called.
1046 - Incase of an error, retain old primarykey
1048 - Add Constraints after columns are added.
1049 - If both PrimaryKey Property and PrimaryKey Constraint are set,
1050 then the Constraint takes precedence.
1053 2006-02-03 Senganal T <tsenganal@novell.com>
1055 * DataTableCollection.cs :
1056 - Remove () : Check for invalid TableName
1057 - Add () : Verify the table doesn't belong to another dataset
1059 - CompleteLastAdded () : Do not raise ItemAdded Event as it is
1060 already raised in AddNew().
1062 - Expression : Verify that the Column names in the expression are valid
1063 - ResetCollectionInfo : Renamed to ResetColumnInfo
1065 - RejectChanges () : Reorganized the code to do the Right thing.
1066 - Item : Dont check for detached and deleted rows as these are
1068 * DataRowCollection.cs :
1069 - Add () : Check for null value
1071 - PrimaryKey : Set AllowDBNull=false for all the key columns
1072 - ImportRow : Import the row only if it is not in Detached state. if in Deleted
1073 state, perform the validation when AcceptChanges/RejectChanges is called.
1074 * DataColumnCollection.cs :
1075 - Add : Validate the column expression before adding it to the collection.
1076 - GetColumnDependency () : New. Get the dependencies on the column
1077 - CanRemove : Move checks to GetColumnDependency
1078 - Clear () : Simplified code. Remove unncessary checks.Also, dont check Expression col.
1079 - IndexOf - Check argument.
1080 Overall , appropriate error msg's are thrown if Remove/Clear fails. Removed a few
1081 redundant checks performed and moved the common code to GetColumnDependency.
1083 2006-01-31 Senganal T <tsenganal@novell.com>
1085 * DataSet.cs : Modified CopyRelations ()
1086 - Added code to copy ForeignKeyConstraints. Fixes #77411.
1088 2006-01-18 Boris Kirzner <borisk@mainsoft.com>
1089 * DataColumn.cs: added PropertyCchangedEvent handling.
1091 2006-01-17 Senganal T <tsenganal@novell.com>
1094 ItemArray : Modified to raise RowInTableException only if
1095 the concerned row has been removed from the table.Fixes
1098 2006-01-16 Boris Kirzner <borisk@mainsoft.com>
1099 * DataTable.cs: Drop dependend indexes on column removal.
1101 2006-01-16 Atsushi Enomoto <atsushi@ximian.com>
1103 * CustomDataClassGenerator.cs :
1104 When a DataRelation connects the same table as parent and child,
1105 generate parent row property as BlahRowParent. Fixed bug #77248.
1107 2006-01-10 Senganal T <tsenganal@novell.com>
1108 * DataRowCollection.cs
1109 - Added ListChangedEvent to notify reset of the collection.
1111 - Subscribes to the ListChangedEvent of DataRowCollection
1114 2006-01-09 Senganal T <tsenganal@novell.com>
1115 * RelatedDataView.cs
1117 - Resolving a name clash in IExpression
1119 2006-01-06 Senganal T <tsenganal@novell.com>
1122 * DataColumnCollection.cs
1123 - Reset the Parameters of DataColumn to Default Values when
1124 column is removed from the Table's Collection
1126 2006-01-03 Senganal T <tsenganal@novell.com>
1129 - ParseSortString() : Changed the way the sort string is parsed.
1130 Using a regex to parse the string.Fixes bug #77104
1132 2005-12-12 Konstantin Triger <kostat@mainsoft.com>
1134 * DataRow.cs: Added index Updates.
1135 EndEdit() fixed to first update indices and then AssertConstraints
1136 based on those indices.
1137 Added Validate() and AssertConstraints() functions.
1138 * DataRowCollection.cs: Removed ValidateDataRowInternal().
1139 * DataTable: Fixed Clear().
1141 2005-12-06 Atsushi Enomoto <atsushi@ximian.com>
1143 * CustomDataClassGenerator.cs : (InitializeFields) handle AllowDBNull
1144 and DefaultValue as well. Patch by Marek Habersack (bug #76709).
1146 2005-12-01 Miguel de Icaza <miguel@novell.com>
1148 * DataSet.cs: Apply patch from Robert Jordan, to fix #76817
1150 2005-11-26 Konstantin Triger <kostat@mainsoft.com>
1152 * ConflictOption.cs: TARGET_JVM include.
1154 2005-11-11 Senganal T <tsenganal@novell.com>
1156 * ConflictOption.cs (new file)
1157 - Added ConflictOption Enumeration
1158 * DataTableReader.cs
1160 - GetProviderSpecificFieldType : Corrected the method name
1162 2005-11-11 Senganal T <tsenganal@novell.com>
1164 * DataSet.cs : Added the SchemaSerializationMode Property for NET_2_0
1166 * SchemaSerializationMode.cs : Added SchemaSerializationMode Enumeration
1167 for NET_2_0 compatibility.
1171 2005-10-20 Atsushi Enomoto <atsushi@ximian.com>
1173 * XmlSchemaWriter.cs : escape names in the schema with XmlConvert.
1176 2005-10-14 Sureshkumar T <tsureshkumar@novell.com>
1178 * DataView.cs: Correct multiple throwing of events. Patch from
1180 (RowStateFilter): Fire ListChangedEvent.
1181 (ApplyDefaultSort): Fire ListChangedEvent.
1182 (CompleteLastAdded): call UpdateIndex to remove the row from rowCache.
1183 (IBindingList.Find): Implemented.
1185 2005-10-11 Sureshkumar T <tsureshkumar@novell.com>
1187 * DataView.cs (IBindingList): Implemented methods for IBindingList interface.
1189 2005-09-26 Lluis Sanchez Gual <lluis@novell.com>
1191 * DataSet.cs: In IXmlSerializable.GetSchema, return null again for
1192 untyped datasets. Fixes bug #76101.
1194 2005-09-21 Boris Kirzner <borisk@mainsoft.com>
1195 * DataRow.cs: Fixes for index updating.
1197 - Reset case-sensitive indexes also if their filter contains columns
1199 - Use GetIndex instead of FindIndex, so the indexes created in Select()
1201 * RelatedDataView.cs: implement IExpression.Equals() and GetHashCode().
1203 2005-09-20 Sureshkumar T <tsureshkumar@novell.com>
1205 * DataView.cs (Sort): Apply default Sorting Order if Sort property
1206 is reset to null. Sort property handles this. Patch from Marc.
1208 * DataTable.cs (ParseSortString): Patch from Marc Haisenko for
1209 allowing [ & ] in DataView.Sort string.
1211 2005-09-01 Boris Kirzner <borisk@mainsoft.com>
1212 * System.Data/DataRowCollection.cs: indexes should be updated even if
1213 EnforceConstraints is false. Check for EnforceConstraints in
1214 ValidateDataRowInternal.
1216 2005-08-08 Gert Driesen <drieseng@users.sourceforge.net>
1218 * DataView.cs: Changed accessibility of dataTable, rowState and
1219 rowCache field to internal to fix public API. Assigned TypeConverter
1221 * ForeignKeyConstraint.cs: IsConstraintViolated is now internal.
1222 * Constraint.cs: IsConstraintViolated is now internal.
1223 * UniqueConstraint.cs: IsConstraintViolated is now internal.
1225 2005-08-05 Atsushi Enomoto <atsushi@ximian.com>
1227 * XmlSchemaDataImporter.cs : When "dataset element" has identity
1228 constraints, then first reserve constraints room for them and then
1229 process elements, skipping pkey creation if there is already
1230 reserved one. Fixed bug #75711.
1232 2005-08-05 Atsushi Enomoto <atsushi@ximian.com>
1234 * XmlDataInferenceLoader.cs : in GetElementMappingType(), don't guess
1235 the same (QNamed) element again when it was already evaluated as
1236 not simple type. Fixed one part of bug #75711.
1238 2005-08-02 Boris Kirzner <borisk@mainsoft.com>
1239 * XmlSchemaDataImporter.cs : Data relations should be processed after the
1240 keys, so no redundant constraints created while relations processing.
1242 2005-07-25 Boris Kirzner <borisk@mainsoft.com>
1243 * FillOptions.cs, ConflictOptions.cs, UpdateOptions.cs:
1244 added ifdef TARGET_JVM.
1246 2005-07-22 Sureshkumar T <tsureshkumar@novell.com>
1248 * DataViewSettingCollection.cs, DataTableCollection.cs,
1249 DataSet.cs, DataView.cs, DataColumn.cs, ForeignKeyConstraint.cs,
1250 DataRelationCollection.cs, UniqueConstraint.cs, DataTable.cs,
1251 DataColumnCollection.cs, DataRelation.cs, DataSet.cs:
1252 - updated attributes & attribute descriptions to match with
1255 * DataView.cs: changed protected members
1256 rowstate,rowcache,dataTable to protected internal.
1257 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint.cs:
1258 changed InConstraintViolated to protected internal.
1259 * ConflictOptions.cs, UpdateOptions.cs, FillOptions.cs: enclosed
1260 with NET_2_0 define.
1262 2005-07-21 Sureshkumar T <tsureshkumar@novell.com>
1264 * ForeignKeyConstraint.cs:
1265 - IsConstraintViolated (): no matter what EnforceConstraints is,
1266 this function now honestly validates. It is upto the caller to run
1268 - AddToConstraintCollectionSetup (): AssertConstraint according to
1271 2005-07-21 Boris Kirzner <borisk@mainsoft.com>
1272 * ForeignKeyConstraint.cs - IsConstraintViolated() should check also for Table.EnforceConstraints.
1273 * DataTable.cs - EnforceConstraints becomes internal so it can be used by ForeignKeyConstraint.
1275 2005-07-19 Sureshkumar T <tsureshkumar@novell.com>
1277 * DataTable.cs - CopyConstraints (): copy constraints only if it
1280 * DataSet.cs - Copy ():
1281 - use activator.CreateInstance to create a typed dataset.
1282 - copy tables if target does not exist, otherwise, just add rows.
1283 - add relation only if it does not exists.
1285 Typed datasets create the constraints & relations through
1286 constructors. Fixes bug #75211.
1288 2005-07-14 Sureshkumar T <tsureshkumar@novell.com>
1290 * DataView.cs: Patch from Marc Haisenko to throw descriptive error
1291 message when accessing Item, with invalid index.
1293 2005-07-14 Sureshkumar T <tsureshkumar@novell.com>
1295 reapplied patch from Marc Haisenko.
1296 * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
1299 2005-07-13 Sureshkumar T <tsureshkumar@novell.com>
1301 * DataRelationCollection.cs: adding a relation with same set of
1302 parent columns & child columns, should not be allowed.
1304 2005-07-08 Sureshkumar T <tsureshkumar@novell.com>
1306 * DataTableReader.cs: GetSchemaTable: DataType column should be
1307 passed a type of Type.
1309 * DataRow.cs: Load : Fired necessary events.
1311 * DataTable.cs: LoadDataRow (object [], LoadOption): Fired
1314 2005-06-28 Sureshkumar T <tsureshkumar@novell.com>
1316 * DataRow.cs: Delete (): if row is detached, do nothing.
1319 2005-06-22 Sureshkumar T <tsureshkumar@novell.com>
1321 * DataRow.cs: Added method MergeValuesToRow copy merge two rows
1322 according to the merge rules.
1324 * MergeManager.cs: (MergeRow): use MergeValuesToRow
1325 API. CopyValuesToRow simply makes the target row same as source
1326 row. Rather, MergeValuesToRow merges with the target row according
1329 2005-06-19 Konstantin Triger <kostat@mainsoft.com>
1331 * DataSet.cs: Fixed ReadXml to work with IXmlSerializable
1333 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
1335 * DataViewManager.cs: fixes exception and creates DataView
1337 2005-06-15 Sureshkumar T <tsureshkumar@novell.com>
1339 * DataRow.cs: CheckChildRows: cascade parent changes to child rows
1340 only if there is a change in columns of the fk constraint.
1342 2005-06-14 Sureshkumar T <tsureshkumar@novell.com>
1344 * DataSet.cs: GetChanges: if row is deleted, get parent rows based
1345 on original version. fixes bug #75227.
1347 2005-06-13 Sureshkumar T <tsureshkumar@novell.com>
1349 * DataRowCollection.cs: Find (keys, version): Added an overload to
1350 find keys matching given DataViewRowState filter. Used in
1351 DataSet.Merge and DataTable.LoadDataRow.
1353 * DataTable.cs: LoadDataRow (values, LoadOption): Use
1354 DataRowCollection.Find (object [], DataViewRowState) overload.
1357 - CopyValuesToRow: Create target "records" out of loop. Records
1358 should be created once, not for each column. Dispose Unused target
1362 - MergeRow: Find rows with matching original records. If not,
1363 select with current values.
1364 - MergeRow: While adding new row, use NewNotInitializedRow.
1366 * ForeignKeyConstraint.cs: IsConstraintViolated: should not check
1367 if EnforceConstraints is false.
1369 2005-06-10 Sureshkumar T <tsureshkumar@novell.com>
1371 * DataRow.cs: CopyValuesToRow: if orginal == current, don't create
1372 a new current record.
1374 * DataSet.cs: GetChanges :Temporarily disable EnforceConstraints.
1376 * MergeManager.cs: Merge: Temporarily disable
1377 EnforceConstraints. Patch from george.barbarosie@gmail.com (George
1380 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
1382 * DataView.cs: fixes GetListName
1384 2005-06-02 Atsushi Enomoto <atsushi@ximian.com>
1386 * XmlSchemaConstants.cs,
1387 XmlSchemaDataImporter.cs,
1388 XmlSchemaWriter.cs : AutoIncrementStep support. Patch partly by
1389 George Barbarosie. Fixed bug #75121.
1390 * XmlSchemaMapper.cs : it is not used anymore, so just removed.
1392 2005-05-31 Boris Kirzner <borisk@mainsoft.com>
1393 * DataRow.cs : SetParentRow on Detached row with no Default version throws an exception.
1395 2005-05-29 Konstantin Triger <kostat@mainsoft.com>
1397 * This patch fixes #74813
1398 * DataView.cs: rework the CreateChildView to receive the index into the indexed row array, rowState became protected to be initialized from RelatedDataView
1399 * DataRowView.cs: movo the logic of creating the child view to the DataView
1400 * RelatedDataView.cs: perform correct init.
1402 2005-05-25 Sureshkumar T <tsureshkumar@novell.com>
1404 * DataTable.cs: Reworked DataTable.LoadDataRow method after
1405 regressions caused by Index redesign.
1406 * DataRow.cs: Load : reworked.
1408 2005-05-25 Konstantin Triger <kostat@mainsoft.com>
1410 * ISafeDataRecord.cs: Added GetDateTimeSafe method, the interface was made derived from IDataRecord
1412 2005-05-22 Konstantin Triger <kostat@mainsoft.com>
1414 * 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
1416 2005-05-20 Sureshkumar T <tsureshkumar@novell.com>
1418 * DataTable.cs: CreateRecord :value should be set to auto
1419 increment value or default value if the given value is null.
1421 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
1423 * DataTable.cs: In DataTable.LoadDataRow with LoadOption - reverting the search order back to Original -> Current (by Suresh request)
1425 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
1427 * DataRow.cs, DataTable.cs: code under net_2_0 changed to use the new interface
1428 * DataTable.cs: Added CompareRecords, which compares records in column order
1431 2005-05-16 Sureshkumar T <tsureshkumar@novell.com>
1434 * DataTable.cs: quick fix to make build 2.0 profile (follow up for
1435 check in 2005-05-16). Merge with previous changes.
1437 2005-05-11 Sureshkumar T <tsureshkumar@novell.com>
1439 fix for "import row does not import deleted records"
1441 * UniqueConstraint.cs: Make a way to access value even from a
1442 deleted record. deleted records are added to the collection by
1446 - Added restriction-less methods GetValue to fetch a
1447 value even if it is in deleted state.
1448 - If a row is detached, don't try to delete it from indexes.
1449 - sanity check for record_index in CopyValuesToRow method
1451 2005-05-05 Sureshkumar T <tsureshkumar@novell.com>
1453 * DataTableReader.cs: Implemented Delete handler and move the
1454 current pointer accordingly.
1456 2005-05-04 Sureshkumar T <tsureshkumar@novell.com>
1458 * DataTableReader.cs: Added event handlers to make reader stable
1459 when the datasource is modified. Thanks to Umadevi for giving the
1460 review comments for this implementation.
1462 * DataTable.cs: Clear (): Raise TableCleared event.
1464 * DataTableClearEventArgs.cs: Args for DataTableClearEventHandler.
1466 * DataTableClearEventHandler.cs: Handler for DataTable.TableClear
1469 * DataRow.cs: AcceptChanges: raise row changing & row changed
1472 * DataRowCollection.cs: Clear : remove rows from indexes
1474 2005-05-02 Atsushi Enomoto <atsushi@ximian.com>
1476 * XmlSchemaDataImporter.cs : XmlSchemaParicle might be XmlSchemaAny.
1477 This fixes bug #74784.
1479 2005-04-29 Sureshkumar T <tsureshkumar@novell.com>
1481 * DataTableReader.cs: removed use of _first. throw if given index
1482 is out of range of columns. Copy DataTable [] to local array so
1483 that not to be disturbed.
1485 2005-04-27 Sureshkumar T <tsureshkumar@novell.com>
1487 * DataTableReader.cs: Implemented most of the TODO.
1489 2005-04-22 Sureshkumar T <tsureshkumar@novell.com>
1491 * LoadOption.cs: Changed the enums. Keeping old values for
1494 * DataTable.cs: Implemented methods Load and its overloads. Also
1495 implemented LoadDataRow.
1497 * DataRowCollection.cs: Added a variation of the Find method to
1498 return a row even if it is of state Deleted. This is required for
1499 DataTable.LoadDataRow method.
1501 * DataRow.cs: Implemented internal helper method Load for loading
1502 values from an object array and given an LoadOption (2.0 feature).
1504 * DataRowAction.cs: Added few more enums for .net 2.0. Sorted
1507 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
1509 * UniqueConstraint.cs : IsNull check is relevant for rows having default row version.
1510 * DataTable.cs : The row should be validated when imported
1511 * DataRowCollection.cs : if the row does not contain Proposed neither Current version, it's irrelevant for validation
1513 2005-04-26 Boris Kirzner <borisk@mainsoft.com>
1515 * UniqueConstraint.cs :
1516 - Add indication whenever the constraint belongs to collection.
1517 - Calculation of IsPrimaryKey simplified.
1518 - If constraint is based on single column, the column becomes unique.
1519 - Use boolean IsConstraintViolated() instead of AssertConstraint().
1520 - Use Index.Duplicates to proper exception message formatting.
1521 - AssertConstraint(DataRow) changed to suite new indexes interface.
1522 - Added CanRemoveFromCollection method.
1523 - Contains() method renamed to IsColumnContained().
1524 * RelatedDataView.cs : added new class.
1526 - Reset indexes after merge.
1527 - Add new tables when row array is merged into dataset.
1528 - Clean proposed record in MergeRow.
1529 - Inherit nesting on creating new relations in target data set.
1530 - Avoid double loop on constraints collection.
1531 * Locale.cs : added new class.
1532 * ISafeDataRecord.cs : added new interface.
1533 * Index.cs : commented out. Index implementation moved to System.Data.Common.
1534 * ForeignKeyConstraint.cs :
1535 - No more use of childColumnsExtended since new indexes allow duplicate records.
1536 - Constraints can not be created on expression columns.
1537 - Removed unnecessary delegation.
1538 - Use boolean IsConstraintViolated() instead of AssertConstraint().
1539 - Use proper exception message formatting.
1540 - Contains() method renamed to IsColumnContained().
1541 * DataViewRowState.cs : use enum members to simplify notation.
1542 * MergeManager.cs : implemented RelationCollectionChanged().
1543 * DataView.cs : new implementation.
1544 * DataTableCollection.cs :
1545 - Added boundary check in indexer.
1546 - More accurate handling in AddRange().
1547 - Raise event in Remove().
1549 - Hold primary key as constraint.
1550 - Added accurate handling of DefaultView.
1551 - Hold DataRowBuilder per table.
1552 - Proper exception messages if enforce Constraints is violated.
1553 - If there is no rows, Compute() returns DBNull.
1554 - Use DataRow properties instead of private members.
1555 - CopyProperties() fixed.
1556 - Raise proper events in EndInit().
1557 - Proper order of violation checks in EndLoadData().
1558 - Create array of rows using NewRowArray().
1559 - ImportRow handles rows according to their versions.
1560 - LoadDataRow make use of records (instead of raw object array).
1561 - Added and implemented LoadDataRow() that gets IDataRecord as a parameter (used in Fill)
1562 - Select() uses indexes filtering and sorting ability (instead of "loop-throw-sort" approach).
1563 - Removed redundant RowSorter and Sortable column classes.
1564 - ParseSortString() fixed to threat bracketed column names.
1565 - Table holds collection of property descriptors.
1567 - Reset table case sensitive indexes on CaseSensitive change.
1568 - EnforceConstraints update logic moved to internal method (used by DataTable).
1569 - InAddChangedRow first add row and than copy values for proper handling of default values.
1571 - Changed private member names to suite name convention.
1572 - CancelEdit() fixed.
1573 - CreateChildView() delegates to DataView.
1575 - Proper exception messages in indexers.
1576 - RowVersion uses DataView.
1577 - GetProperties() delegates to corresponding table if needed.
1578 * DataRowCollection.cs :
1579 - Common Add() logic moved to AddInternal() (used also by DataTable).
1580 - Removed redundant check from Contains().
1581 - Dalegate Find() calls when possible.
1583 - RomoveAt() delegates to Remove().
1584 - Optimized constraints check in row validation.
1585 * DataRelationPropertyDescriptor.cs : added new class.
1586 * DataRelationCollection.cs :
1588 - Fixed order of actions in AddCore().
1589 - RemoveCore() also delegates to base.
1590 - Add relation to dataset also in AddCore().
1591 - Remove relation from dataset also in RemoveCore().
1592 - InTransition hold a data relation so we can properly identify the "in transition" state.
1593 - Added threat of parent and child table s property descriptors in Add().
1594 - Common Add() logic moved to AddCore().
1596 - Remove() threats "in transition" state properly.
1597 - Remove methods delegate to single implementation.
1598 * DataColumnPropertyDescriptior.cs :
1599 - Added new constructor.
1600 - Commented out redundant method.
1601 * DataColumnCollection.cs :
1602 - Boundary check in indexer.
1603 - RegisterName and UnregisterName become internal (used also by DataColumn).
1605 - Fixed CanRemove().
1606 - Rethrow correct exception in Clear();
1607 - Change in collection resets parent table property descriptors.
1608 - Added PostEndEdit() helper method (used by DataTable).
1610 - Private member names changed to suite name convention.
1611 - Created method for CanAutoIncrement() logic.
1612 - Proper handling of column name update.
1613 - Proper exception messages on expression update.
1614 - Proper namespace handling (delegates to table when needed).
1615 - Removed redundant check in Unique update.
1616 - Implemented internal Clone().
1617 - GetParentRalation() and GetChildRelation() become private.
1619 - Added abstract methods (implemented in UniqueConstraint and ForeignKeyConstraint).
1620 - Simplified index update.
1621 * ConstraintCollection.cs :
1622 - Use Locale instead of CaseSensitive in column names comparison.
1624 - Rethrow correct exception type in Add().
1625 - Proper update of table primary key in Add().
1626 - Delegate CanRemove() to constraint.
1627 - Remove table primary key in Clear();
1628 - Delegate "can remove" check to constraint in Remove().
1629 - Removed unnecessary methods and properties.
1631 - RowSate becomes calculated property.
1632 - Use properties instead of private members where possible.
1634 - Fixed order of actions in ItemArray update.
1635 - Fixed DetachRow().
1636 - Added ImportRecord() method.
1637 - Removed redundant SetValuesFromDataRecord().
1638 - Fixed IndexFromVersion().
1639 - Added VersionFromIndex() method. Returns row version the passed record index corresponds to.
1640 - Fixed AcceptChanges().
1641 - Fixed creating proposed version in BeginEdit();
1642 - Added record disposal in Delete().
1643 - Fixed CheckChildRows().
1644 - EndEdit() fixed. Checks for readonly. Uses straight flow instead of "try and fix if fail" approach.
1645 - GetChildRows() and GetPrarentRows() rewrited. Use records and indexes for rows lookup.
1646 - GetColumnError() delegates to another implementation.
1647 - HasVersion() fixed.
1648 - RejectCahnges checks on child rows before passing through.
1649 - SetParentRow() fixed. Create relation collection if needed. Use typed data container value copy.
1650 - CopyErrors() logic moved to separate method (used also by DataTable).
1651 * ExpressionElement.cs : added new class.
1652 * Res.cs : added new class.
1654 2005-04-20 Jordi Mas i Hernandez <jordi@ximian.com>
1656 * DataViewManager.cs: implements TypedList.GetListName used in SWF
1658 2005-04-19 Atsushi Enomoto <atsushi@ximian.com>
1660 * DataRowView.cs : indexer should access to DataRow with proper
1661 DataRowVersion. Fixed bug #74650.
1663 2005-04-18 Sureshkumar T <tsureshkumar@novell.com>
1665 * DataRow.cs: if there are no mapping fields, fill with default
1668 2005-04-17 Atsushi Enomoto <atsushi@ximian.com>
1670 * DataView.cs : Delete() should not try to remove row twice.
1673 2005-04-13 Atsushi Enomoto <atsushi@ximian.com>
1675 * DataTable.cs : Use GetRowType() for the base of the returning array
1676 type of Select(). Fix by Gerhard Rittweger.
1677 * CustomDataClassGenerator.cs : Fixed slightly harmless wrong code.
1679 2005-04-13 Atsushi Enomoto <atsushi@ximian.com>
1681 * CustomDataClassGenerator.cs : custom relation was not added to
1682 Relations property. The second entry of bug #69276 was fixed.
1683 Patch by Daniel Rodriguez.
1685 2005-04-07 Lluis Sanchez Gual <lluis@novell.com>
1687 * DataRowCollection.cs: Fix the signature of the Add method
1690 2005-03-16 Atsushi Enomoto <atsushi@ximian.com>
1692 * DataRow.cs : on importing row, it was copying data from incorrect
1693 DataRow. This fixes bug #73288.
1695 2005-03-07 Jackson Harper <jackson@ximian.com>
1697 * DataViewManagerListItemTypeDescriptor.cs: Implement missing
1698 features. These are needed for System.Windows.Forms databinding.
1700 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
1702 * DataColumn.cs : setting negative value on MaxLength of SimpleContent
1703 column is still valid.
1705 2005-02-15 Atsushi Enomoto <atsushi@ximian.com>
1707 * XmlSchemaWriter.cs : new file for outputting XmlSchema.
1708 * DataSet.cs : removed rewritten code in XmlSchemaWriter.
1709 * XmlConstants.cs : added UseCurrentCulture constant.
1711 Use new Xml Schema writer.
1712 Use XmlSchemaDataImporter as we use in DataSet.
1714 2005-02-10 Atsushi Enomoto <atsushi@ximian.com>
1716 * DataView.cs, DataRowView.cs : Fixed bug #72421. CreateChildView()
1717 should target only child rows.
1719 2005-02-03 Atsushi Enomoto <atsushi@ximian.com>
1721 * DataViewManager.cs: misuse of ReadStartElement(string).
1722 * DataRowView.cs : removed some MonoTODO.
1724 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
1725 Ankit Jain <radical@corewars.org>
1727 * DataColumn.cs: throw exception if the column is part of a
1728 relationship, when chaning the data type. Added methods
1729 "GetParentRelation ()" and "GetChildRelation ()" get the relation
1730 which contains the current column
1731 * DataRelation.cs: Added method "Contains (DataColumn)" to check
1732 whether the relation contains the given column.
1734 fixes nunit failure: DataRelationTest.InvalidConstraintException2.
1736 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
1738 * DataColumnCollection.cs: implemented todo item "check for
1739 constraints" when removing columns from table.
1740 * DataRowCollection.cs: Clear (): don't have to throw child key
1741 constraint exception when the child table does not have any
1742 rows. safe to remove parent rows.
1743 * UniqueConstraint.cs: added method "Contains (DataColumn)" to
1744 check whether a column is part of UniqueConstraint.
1745 * ForeignKeyConstraint.cs: added method "Contains (DataColumn,
1746 lookInParent)" to check whether a column is part of foreignkey.
1748 fixes nunit failure: DataTableTest.ClearTest ()
1750 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
1752 * ForeignKeyConstraint.cs: validating columns: move checking
1753 "tables are of same dataset" before "checking column types".
1755 fixes nunit failure: ForeignKeyConstraint.CtorExceptions.
1757 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1759 * DataViewManager.cs : let's just use StringWriter instead of
1760 XmlTextWriter (to avoid empty tag string mismatch annoyance.)
1761 * DataView.cs : implemented BeginInit() and EndInit(). Don't update
1762 rows during init phase until EndInit() is invoked. During init phase,
1763 just hold properties such as Sort that affects on rows.
1765 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1767 * DataTableCollection.cs : (RemoveAt) just use IndexOutOfRangeException.
1769 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1771 * DataView.cs : DataRowView.EndEdit() raises ItemMoved event.
1772 set_Table clears Sort and RowFilter.
1774 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1777 - Clear() should clear AddNew cache.
1778 - Open() invokes Reset().
1779 - ConstraintCollectionChanged() itself does not invoke OnListChanged().
1780 - Reset() does not Open, Close and Update Index.
1781 - UpdateIndex() can be invoked even if it has no table.
1782 - Reset event is invoked always after actual query to table.
1783 - set_Table should raise PropertyDescriptorChanged event.
1785 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1787 * DataView.cs : ColumnCollectionChanged() is the event invoker (i.e.
1788 when overriden, no column change events are fired).
1790 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1792 * DataView.cs : CancelEditRowView() and DeleteRowView() was incorrectly
1793 checking target tables. They also should raise events if required.
1795 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1797 * DataView.cs : simplify code with UnsortedList.
1799 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
1801 * DataView.cs : Mostly reimplemented.
1802 - UpdateIndex() is invoked only when it is required (results in
1803 significant performance improvement).
1804 - Use SortedList and wrapper OptionalSortedList which switches
1805 between SortedList (with Sort) and UnsortedList (without Sort).
1806 - DataView itself now contains two collections for rowviews:
1807 Table rows based pool and AddNew() based cache. Consider those
1808 two collections in every members.
1809 - Reset() does not clear rows. Just invokes UpdateIndex().
1810 - Hook RowDeleting, ColumnChanging and ColumnChanged events in table
1811 which is required to handle state changes.
1812 - Reimplemented Find() and FindRows() because of internal changes.
1814 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
1816 * DataTable.cs : Fixed row comparer. Even if every of the sort target
1817 columns are identical for two rows, they should not be regarded as
1818 the same unless they are Object.ReferenceEquals.
1820 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
1822 * DataRowCollection.cs : on adding a row, should raise
1823 ChangingDataRow() as well as ChangedDataRow().
1825 2005-01-31 Sureshkumar T <tsureshkumar@novell.com>
1827 * DataRow.cs: SetParentRow (): use relation.ParentColumns &
1828 relation.ChildColumns instead of relation.ChildKeyConstraint.*
1829 because createConstrains flag may be false when creating data
1830 relations. Hack along with Ankit Jain.
1832 2005-01-31 Atsushi Enomoto <atsushi@ximian.com>
1834 * DataView.cs :some interface implementations.
1836 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1838 * DataView.cs : Add to table only when the row is not in the table.
1840 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1842 * DataView.cs : implemented FindRows() (btw we should not use
1843 DataTable since there are detached rows by AddNew().)
1845 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1848 Code cleanup: privatify some members, remove unused methods.
1849 Some event-based invocation methods should not raise NotImplemented.
1851 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1853 * DataSet.cs : ReadXml() became closer to MS behavior, being hacky.
1855 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1857 * XmlSchemaDataImporter.cs : empty element is not regarded as a column.
1859 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1861 * UniqueConstraint.cs : mostly reverted the previous patch + check
1862 IsPrimaryKey before validation.
1864 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1866 * DataView.cs : Fixed duplicate insertion to Hashtable.
1867 * UniqueConstraint.cs : Unique constrained pair of columns could be
1870 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1873 Don't do anything for Sort/ApplyDefaultSort/RowFilter/RowStateFilter
1874 when the same value is being set.
1875 Examined UpdateIndex() and marked FIXME where MS does not invoke it.
1876 Removed unused OnColumnChanged().
1877 Now store rowViewPool and reuse DataRowView objects.
1878 Optimized UpdateIndex() - avoid ArrayList. Avoid Haashtable.Rehash().
1880 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1882 * DataViewSettings.cs : no MonoTODO anymore.
1883 * DataViewManager.cs : pass itself to new DataView() (new ctor).
1884 * DataRowView.cs : GetHashCode() returns its Row's hash.
1885 * DataTablePropertyDescriptor.cs : use new ctor().
1886 * DataView.cs : added new ctor()s that accept DataViewManager.
1888 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1890 * DataView.cs, DataRowView.cs : AddNew() should not add the row to table
1891 (it is still detached). So handle those rows differntly.
1892 CancelEdit(), EndEdit() and Delete() propagates those events to
1893 DataView (and handle row collection).
1894 Eliminate "throw new Exception()".
1895 Don't catch all the exception thrown in ListChanged event.
1896 * DataTable.cs : made RowSorter as internal and use it in DataView.
1897 no need to pass DataRow[] to .ctor().
1899 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1901 * DataTable.cs : don't create DefaultView unless it is required. It
1902 significantly improves performance. (i.e. DataView perf. is sick ;-)
1904 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1906 * DataViewSetting.cs,
1907 DataViewSettingCollection.cs,
1908 DataViewManager.cs : implemented basic members.
1910 2005-01-26 Atsushi Enomoto <atsushi@ximian.com>
1912 * Node.cs, DataColumnPropertyDescriptor.cs, DataTable.cs :
1913 Eliminate "throw new Exception".
1915 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1917 * DataRow.cs : (set_Item) RowNotInTableExeption check should be done
1918 regardless of index existence.
1920 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1922 * DataTable.cs : use new IExpression.EvalBoolean() to avoid extraneous
1925 2005-01-25 Sureshkumar T <tsureshkumar@novell.com>
1927 * DataTable.cs: ImportRow :Do not add to rows collection if the
1928 import row is in detached state.
1930 2005-01-25 Sureshkumar T <tsureshkumar@novell.com>
1932 * DataRow.cs: CopyValuesToRow : set the column value with the
1933 default version of the given row.
1934 * DataTable.cs: ImportRow: Copy values before adding row.
1935 * DataSet.cs: AddChangedRow: Add the row to the table after
1938 Fixes bug #67317. Patch by Ankit Jain.
1940 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1942 * DataRowView.cs : Fixed IsEdit to reflect correct status of DataRow.
1943 * DataRow.cs : Expose editing status internally.
1945 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1947 * DataView.cs : missing attributes.
1949 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
1951 * DataRowView.cs : implemented CreateChildView().
1953 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
1955 * DataTable.cs, DataView.cs :
1956 Optimized DataView to compile only once RowFilter and Sort when
1957 those properties are set. To make it possible, extracted
1958 SortableColumn out of DataTable and added internal DataTable.Select()
1959 that accepts precompiled IExpression and SortableColumns[].
1961 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
1963 * DataColumn.cs : set_MaxLength is not allowed when it is mapped to
1964 SimpleContent. (However, it is weird but it never fails when we set
1965 ColumnMapping = MappingType.SimpleContent when we fhave MaxLength.)
1967 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
1969 * DataRow.cs : more Current -> Default fixes. Check if it should throw
1970 VersionNotFoundException. Patch by Ankit Jain.
1972 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
1974 * DataRow.cs : Default selects the right version for the current
1975 state of the row. Current is not always available. Also change
1976 that for GetParentRow(). Patch by Ankit Jain.
1978 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
1980 * DataTable.cs : CopyColumn() should copy AutoIncrement after
1981 DefaultValue, or it will raise an error in some cases.
1983 2005-01-20 Atsushi Enomoto <atsushi@ximian.com>
1985 * ConstraintCollection.cs : Add() should throw ArgumentException when
1986 the argument constraint fails validation.
1987 DataTable.cs : set_PrimaryKey should throw ArgumentException when
1988 the argument contains constraints which fail validation.
1990 2005-01-19 Sureshkumar T <tsureshkumar@novell.com>
1992 * DataRelationCollection.cs:
1994 Method Remove : Donot throw exception if DataRelation argument is
1995 null in DataRelationCollection.Remove method.
1997 Method RemoveAt : Exception should be IndexOutOfRangeException if
1998 row index is not in list range.
2000 Fixes nunit failures DataRelationCollection.Remove and
2001 DataRelationCollection.RemoveAt.
2003 2005-01-19 Sureshkumar T <tsureshkumar@novell.com>
2005 * ConstraintCollection.cs: Donot throw exception if constraints
2006 are null in AddRange method. Check for null before using the
2011 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
2013 * XmlDataInferenceLoader.cs,
2014 XmlDataReader.cs : Check if the XmlReader (node) represents DataSet
2015 or a table, reusing code block in XmlDataInferenceLoader.
2016 This fixes bug #60118.
2018 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
2020 * XmlDiffLoader.cs : Ankit Jain <radical@imt.ac.in> has a conflicting
2021 patches and some good catches. Some attributes should be skipped,
2022 and loaded value must be typed.
2024 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
2027 XmlDataInferenceLoader.cs,
2028 XmlDataReader.cs : use common const for http://www.w3.org/2000/xmlns/.
2029 * XmlDiffLoader.cs : It was not handling attributes. Fixed bug #70961.
2031 2005-01-18 Sureshkumar T <tsureshkumar@novell.com>
2033 Fix for bug #66838. This patch is submitted by "Ankit Jain"
2034 <radical@corewars.org> and refactored.
2036 * DataRow.cs: Allows to set a parent row even if the row is in
2039 * DataRelation.cs: method "UpdateConstraints" is added to check
2040 and create missing keys when adding a relation. This is refactored
2041 approach from DataRelationCollection.Add method.
2043 * DataRelationCollection.cs: AddCore methods of all relation types
2044 are synchronized. A Check for existing constraints is
2045 done. Relation is added to the list only if all checks are passed.
2047 2004-01-18 Atsushi Enomoto <atsushi@ximian.com>
2049 * DataColumnCollection.cs : Clear() throws ArgumentException that
2050 wraps thrown innerException.
2051 * XmlSchemaDataImporter.cs : removed FIXMEs.
2053 2004-01-12 Atsushi Enomoto <atsushi@ximian.com>
2055 * DataSet.cs : When serializing DataTable, BuildSchema() is passed
2056 null relation collections.
2057 Quick fix for XmlSerializer deserialization. It does not require
2058 XML Schema included.
2060 2004-01-11 Atsushi Enomoto <atsushi@ximian.com>
2063 CustomDataClassGenerator.cs :
2064 In DataSet class, IXmlSerializable.GetSchema() returns null.
2065 In strongly-typed class, it returns schema.
2067 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
2069 * XmlDataInferenceLoader.cs : test driver class should be excluded.
2071 2004-12-01 Miguel de Icaza <miguel@ximian.com>
2073 * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
2076 2004-11-10 Atsushi Enomoto <atsushi@ximian.com>
2078 * CustomDataClassGenerator.cs : generated foreign key constraint
2079 construction code was creating empty child columns and thus it
2080 was invalid. This fixes bug #69276 (patch by Martin Voelkle).
2082 2004-11-02 Atsushi Enomoto <atsushi@ximian.com>
2084 * CustomDataClassGenerator.cs : custom DataTable ctor should call
2085 InitializeFields(), and those DataColumns created by that method
2086 should take data type. This should fix bug #68972.
2088 2004-10-15 Atsushi Enomoto <atsushi@ximian.com>
2090 * DataSet.cs : Also clear UnhandledAttributes ArrayList before
2091 generating next attribute column schema. This fixes bug #68432.
2093 2004-10-14 Umadevi S <sumadevi@novell.com>
2094 * DataTable.cs : Corrected the Clone method to use Activator.CreateInstance so that the
2095 correct subclass is returned. This fixes bug #67631
2097 2004-10-14 Umadevi S <sumadevi@novell.com>
2098 * DataSet.cs : Corrected the Clone method to use Activator.CreateInstance so that the
2099 correct subclass is returned. This fixes bug #67627
2101 2004-10-13 Atsushi Enomoto <atsushi@ximian.com>
2103 * DataSet.cs : clear UnhandledAttributes ArrayList before generating
2104 next element column schema. This fixes bug #68256.
2106 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
2108 * DataSet.cs : now xs:schema contains xmlns="".
2109 This fixes bug #68008.
2111 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
2113 * DataSet.cs : DBNull attribute column should not be written as
2114 empty attribute. This fixes bug #68007.
2116 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
2118 * DataSet.cs, XmlConstant.cs, XmlSchemaDataImporter.cs:
2119 DataColumn.ReadOnly was not handled. This fixes bug #68005.
2120 Attribute defaultValue was not handled too.
2122 2004-10-07 Atsushi Enomoto <atsushi@ximian.com>
2125 - When AllowDBNull is false on attribute DataColumn, its schema
2126 should contain use="required". This fixes bug #66792.
2127 - If MaxLength is set on attribute DataColumn, the mapped schema
2128 type should contain maxLength facet. This fixes bug #66793.
2130 2004-10-04 Atsushi Enomoto <atsushi@ximian.com>
2132 * DataSet.cs : For a row, when a relation is not nested, then it is
2133 still output target since it won't be written as a child of its
2134 parent. It fixes bug #66379.
2136 2004-10-03 Atsushi Enomoto <atsushi@ximian.com>
2138 * DataSet.cs : Attribute constraint field XPath must be written as
2139 @blah. This fixes bug #66366.
2141 2004-09-28 Umadevi S <sumadevi@novell.com>
2142 * DataRow.cs - checked for Enforceconstraints, while using indices to search for related rows
2144 2004-09-24 Sureshkumar T <tsureshkumar@novell.com>
2146 * DataSet.cs : Don't check constraints for dataset clear
2147 * DataRowCollection.cs : check for EnforceConstraints flag
2148 before checking foriegn key constraints in Clear method
2149 * DataTable.cs : Redundant checking removed in Clear method as it is
2150 checked in DataRowCollection.Clear method.
2153 2004-09-19 Sureshkumar T <tsureshkumar@novell.com>
2154 * DataRow.cs : while deserialization of dataset, adding a current row precedes the original row.
2155 hence, adding a row cache is necessary if the original row happens to be current.
2158 2004-08-23 Martin Baulig <martin@ximian.com>
2160 * XmlDataInferenceLoader.cs (Driver): Make this class internal,
2163 2004-08-18 Umadevi S <sumadevi@novell.com>
2164 * DataView.cs - Completed most of the event handling.
2165 Thanks to Punit Todi <punit_todi@da-iict.org> for implementing most of it.
2166 Thanks to Boris Kirzner <borisk@mainsoft.com> for commenting and suggesting changes to the implementation.
2167 * DataTable.cs - Changed Access modifiers of class/methods since it was used by DataView.
2169 2004-08-06 Atsushi Enomoto <atsushi@ximian.com>
2171 * DataSet.cs : DataSet's ExtendedProperties were not XmlConverted.
2173 2004-08-05 Atsushi Enomoto <atsushi@ximian.com>
2175 * XmlConstants.cs : Added constants for "msprop" support.
2176 * DataSet.cs : ExtendedProperties should be written in the schema.
2177 This fixes bug #61233.
2179 2004-07-27 Atsushi Enomoto <atsushi@ximian.com>
2181 * DataSet.cs : on serialization to XmlWriter, XmlConvert should be
2182 used. There were also some culture dependency problems to write int.
2184 2004-06-27 Atsushi Enomoto <atsushi@ximian.com>
2186 * XmlDataInferenceLoader.cs : It was not always filling relation
2187 child table information correctly. This fixes bug #60742.
2189 2004-06-23 Umadevi S <sumadevi@novell.com>
2190 * UniqueConstraint.cs :changed a ifdef true to ifdef NET_1_1
2192 2004-06-22 Atsushi Enomoto <atsushi@ximian.com>
2194 * DataSet.cs : Fixed ReadXml(). When ReadMode is ReadSchema and the
2195 schema is inside the document element (as created in XmlWriteMode
2196 .WriteSchema), it should read schema from that non-document element.
2197 This fixes one case reported in bug #60470.
2199 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
2201 * XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
2202 inference target. For bug #60470. (MS does not support schema
2203 document inference and results in unconsistent dataset structure.)
2205 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
2207 * DataTableCollection.cs : reset the table's DataSet to null when
2208 removing a table from this collection.
2209 * DataTable.cs : When Namespace is not specified explicitly, its
2210 Namespace property reflects DataSet's Namespace if exist.
2211 This fixes bug #60469.
2213 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
2215 * DBConcurrentcyException.cs: CRLF to LF
2216 * DataViewSetting.cs: CRLF to LF
2218 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
2220 * DataViewSetting.cs: renamed fields to match MS.NET
2222 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
2224 * DBConcurrencyException.cs: fixed serialization compatibility with
2227 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2229 * ChangeLog : Fix for misspelled words.
2231 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2233 * DataRowCollection.cs : Removed onColumnRemoved since it is not in use.
2235 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2238 - Table stores default values for columns in special default values row.
2239 It is allocated once (in NewRow).
2240 - DataTable.Copy rewrited. It works with uninitialized rows for better perfomance.
2241 - OnRemoveColumn has nothing to perform by now.
2243 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2246 - Changed access of original, current and proposed indexes to internal.
2247 - ColumnErrors reviewed : now column errors stored in ArrayList and allocated on demand only.
2248 - Added new DataRow constructor that creates uninitialized DataRow (used in DataTable.Copy).
2249 - Use DataContainer.CopyValue and default values row for faster set of default values in row.
2250 - SetColumnValue become CheckValue. Now it does not changes the value, but only checks for its correctness.
2251 Care about Null and DBNull values is now in DataContainer.
2252 - Use DataColumn.AutoIncrementValue and GetInt64 for faster set of autoincrement value.
2253 - Use Datacontainer.CopyValue and default values row to speed up CheckChildRows.
2254 - Fix in CopyState : clone column errors.
2255 - Removed CollectionChanged and onColumnRemoved since we are not using both of them anymore.
2257 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2259 * DataColumnCollection.cs :
2260 - Fix : Add() now delegates to Add(DataColumn).
2261 - autoIncrement list holds DataColumn objects, and not just column names.
2263 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2266 - AutoIncrementValue fixes. Now AutoIncrement uses DataContainer.GetInt64 to avoid boxing.
2267 - DefaultValue fixes. Default value from now on is also stored in special record in
2268 DataTable, so we're able to set default value for the column faster (typed).
2271 2004-06-15 Atsushi Enomoto <atsushi@ximian.com>
2273 * DataSet.cs : children of non-root rows were not properly written.
2276 2004-06-10 Umadevi S <sumadevi@novell.com>
2277 * DataRelation.cs - Constructor
2278 - The datatypes of the parentcolumn(s) and the childcolumn(s) should match
2280 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
2282 * XmlSchemaDataImporter.cs : We should fill Namespace for DataTable.
2284 2004-06-04 Gert Driesen <drieseng@users.sourceforge.net>
2286 * Constraint.cs: marked methods internal to fix public API
2287 * ConstraintCollection.cs: to fix public API, use
2288 DataTable.fInitInProgress to check whether initialization
2289 of DataTable is in progress
2290 * DataColumn.cs: added stubs for missing methods
2291 * DataRowBuilder.cs: marked Table property internal to
2293 * DataSet.cs: removed extra empty destructor, marked
2294 OnMergeFailed internal to fix public API
2295 * DataTable.cs: use fInitInProgress field to hold init
2296 status, to match MS.NET
2297 * DataView.cs: added missing attributes on IsOpen
2299 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
2301 * DataSet.cs : Use NameTable.Get() before calling LookupNamespace()
2302 in XmlNamespaceManager.
2304 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
2306 * DataSet.cs : complex table content child was not properly added
2307 when it is the only one child in the parent table. Fixed bug #53959.
2309 2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
2310 * DataTableTypeConverter.cs: added
2311 * DataView.cs: added missing attribute on Table property
2312 * DataViewManager.cs: moved attribute to correct property
2313 * UniqueConstraint.cs: removed extra ReadOnly attribute from
2314 IsPrimaryKey property
2316 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
2318 * DataRow.cs : ColumnsChanged event is not required in .ctor().
2320 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
2322 * XmlDataReader.cs : type change is required before setting value
2325 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
2327 * DataSet.cs : Loop-break of the last fix was incorrect.
2329 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
2331 * DataSet.cs : When a row has no parent row but the table has parent
2332 relation(s), that row had been always ignored.
2334 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
2336 * XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
2337 rejected same-named tables in different hierarchy. Thanks to Boris.
2339 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
2341 * XmlDiffLoader.cs : Added some Skip() that is required not to go to
2342 infinite loop. Thanks to Boris for this fix.
2344 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
2346 * XmlDataInferenceLoader.cs : XmlSchema elements should not be infered.
2347 Thanks to Boris for this fix.
2349 2004-05-30 Atsushi Enomoto <atsushi@ximian.com>
2351 * DataTable.cs : serialization .ctor() should use XmlReadMode.DiffGram
2352 for ReadXml(). Thanks to Boris.
2354 2004-05-27 Boris Kirzner <borisk@mainsoft.com>
2356 - CheckReadOnlyStatus : use typed (and faster comparing).
2357 - EndEdit : bug fix - do not dispose record if it holds original version.
2358 - SetValuesFromDataRecord : Take care about autoincrement columns.
2361 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2363 * MergeManager.cs : don't output debug message to Console.
2365 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2367 * XmlDataInferenceLoader.cs : Namespace are not imported to the table
2368 structure. Thanks to Boris Kirzner for the fix.
2370 2004-05-27 Umadevi S <sumadevi@novell.com>
2371 * DataRelationCollection.cs - fixed nunit test errors
2373 2004-05-27 Umadevi S <sumadevi@novell.com>
2374 * DataTableCollection.cs - fixed nunit test errors
2376 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
2378 * DataColumnCollection.cs : NullReferenceException was thrown when
2379 the table was not found.
2380 * DataRowCollection.cs :
2381 Find() just returns null for null value under MS.NET 1.1.
2382 RemoveAt() should also avoid to call AcceptChanges() like Remove().
2383 * UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
2384 directly under MS.NET (for nunit test).
2386 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
2388 * XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf()
2389 caused problem on qualified name to get schema Field name.
2391 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
2393 * XmlDataReader.cs : Now data reader is namespace aware in all places.
2394 When table's namespace is different, it entered to infinite loop.
2396 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
2397 * MergeManager.cs : AdjustSchema now updates by reference new created table,
2398 so in Merge you do not need to lookup for it (were unable to do this for unnamed tables).
2401 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
2403 * DataColumn.cs : In set_Item[int] - if autoincrement, adjust next autoincrement value.
2404 * DataColumnCollection.cs : fixed parantethes.
2406 - AcceptChanges : do nothing if row state is unchanged.
2407 - GetChildRows, GetParentRows : bug fix (use correct index).
2408 * DataRowCollection.cs : bug fix (compare all row's values).
2409 * DataTable.cs : bug fix (use correct row version).
2411 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
2413 * XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
2414 When content type is Mixed, text column is not required (it is
2415 required only when the complex type has no particle).
2416 "Repeated element" column is also created (considering maxOccurs=0
2417 and complex content extension).
2419 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
2421 * XmlSchemaDataImporter.cs : XmlSchemaGroupBase was not handled
2424 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
2426 * XmlSchemaDataImporter.cs : Removed unused code and extra MonoTODO.
2427 Fixed relation inference to consider attribute XPath.
2429 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
2431 * DataColumn.cs : Fixed set_Item[int]. Convert.ToInt64(DBNull.Value)
2434 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
2436 * DataColumn.cs - removed default member attribute.
2438 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
2441 DataColumnChangeEventArgs.cs,
2442 DataColumnCollection.cs,
2444 DataRowCollection.cs,
2446 Index.cs : Data storage in the row is redesigned. Now data is stored in
2447 typed containers inside DataColumn. Row holds its versions as indexes inside
2448 each of data container, accessed through the row that holds it.
2450 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
2452 * UniqueConstraint.cs - added comment.
2454 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
2456 * XmlDataInferenceLoader.cs : Don't add already-existing DataTable to
2459 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
2462 XmlDataInferenceLoader.cs,
2464 XmlSchemaDataImporter.cs : XmlDecode every local name to read and
2465 XmlEncode every local name to write. This should fix bug #58268.
2467 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
2469 * DataSet.cs : Implemented ignored namespaces in InferXmlSchema().
2470 Supported repeated elements. Removed MonoTODOs.
2471 * XmlDataInferenceLoader.cs : Design change to support ignored
2472 namespace and repeated elements.
2473 * XmlSchemaDataImporter.cs : Added mapping support classes.
2475 2004-05-15 Atsushi Enomoto <atsushi@ximian.com>
2477 * CustomDataClassGenerator.cs :
2478 Added property parent "[foo]Row" and children "Get[foo]Row" support
2479 for custom DataRow classes.
2480 Fixed DataColumn property accessibility (public --> internal).
2482 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
2484 * CustomDataClassGenerator.cs :
2485 - Put classes inside custom DataSet class.
2486 - Added automatic DataRelation creation support.
2487 - Added Constraints creation support. That is done separate from
2488 relations, since they might be independently created.
2489 - Added non-MS public DataRelation fields.
2490 - Removed extraneous "DataRelation type generation" code.
2491 - Fixed custom_dataset.Initialize() not to create "c" field that
2492 was created more than once.
2493 - Implemented AddxxxRow() that takes parameters for every column.
2495 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
2497 * XmlSchemaDataImporter.cs : When primary key is used more than once,
2498 DataRelation borked because of empty parent column name.
2500 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
2502 * XmlSchemaDataImporter.cs : When Creating constraints with related
2503 to DataRelation creation, also set PrimaryKey to the parent table.
2505 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
2507 * XmlSchemaDataImporter.cs :
2508 Design change to add indirect table and relation structures.
2509 Support for "relation" annotation for local element.
2510 Support for repeatable simple element column (maxOccurs > 1).
2511 Fixed handling of Nested property on DataRelation (for globally
2512 annotated relation, Nested is false).
2514 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
2516 * DataRow.cs : Added DataElement property to avoid storing every row-
2517 element mapping. It stored even for nodes that should be removed.
2519 2004-05-13 Umadevi S <sumadevi@novell.com>
2521 * RelationshipConverter.cs - Stubbed this class
2522 * DataRelation.cs - added TypeConveterAttribute
2524 2004-05-13 Umadevi S <sumadevi@novell.com>
2526 * DataColumnCollection.cs - Added ResDescriptionAttribute
2527 * DataRelation.cs - Added TypeConverterAttribute
2528 * DataRelationCollection.cs - Added DefaultPropertyAttribute
2529 * DataRowView.cs - Added GetHashCode method with a TODO tag
2530 * DataSet.cs - Added DesignerAttribute
2531 * DataView.cs - Added DesignerAttribute
2532 * DataViewManager.cs - Added DesignerAttribute
2533 * DataViewSetting.cs - Added TypeConverterAttribute
2535 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
2537 * DataRow.cs : Added XmlDataElement initialization code.
2539 2004-05-11 Atsushi Enomoto <atsushi@ximian.com>
2541 * XmlDataInferenceLoader.cs :
2542 It now requires XmlDocument as input. Improved identification of
2543 DataSet element. Removed extra lines.
2544 Moved boresome design notes to bottom of the source and
2545 added standalone runnable driver (not included on build).
2547 Update with related to the change above.
2548 WriteXml() should call Flush() after writing. This fixes bug #58327.
2549 * XmlSchemaDataImporter.cs :
2550 Improved indentification of DataSet element.
2552 2004-05-11 Gert Driesen (drieseng@users.sourceforge.net)
2553 * DataTable: marked initStatus enum internal
2555 2004-05-09 Gert Driesen (drieseng@users.sourceforge.net)
2556 * DataTable.cs: removed TypeConverterAttribute, marked RowsExist
2558 * DataRowView.cs: removed extra Error property
2559 * DataRow.cs: reduced accessibility of CollectionChanged method
2561 * DataColumnPropertyDescriptor.cs: made class internal
2562 * DataColumn.cs: removed extra TypeConvertorAttribute
2563 * ConstrainCollection.cs: marked PostEndInit method internal
2565 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
2568 In WriteXmlSchema(), when complex type contains simple type content
2569 attributes must not added to XmlSchemaComplexType directly. It
2570 causes schema compilation error.
2571 DataRelation should not be output when related columns are hidden.
2573 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
2575 * XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
2576 also expected to do ReadXml(), but I will remove that feature and
2577 support column reordering).
2578 * XmlSchemaDataImporter.cs : Always initialize dataset name.
2579 Always set Nested and primary key for parent table.
2580 * XmlDataReader.cs : Now it is used.
2581 Top level element might not match to dataset name nor any table
2582 name, but still possible to read content tables.
2583 Handle empty element correctly in some places.
2584 Handle Fragment mode (read up XmlReader to the end).
2585 * DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
2586 XmlDataInferenceLoader and XmlDataReader.
2588 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
2591 Eliminated CRLF injection.
2592 More clear message in Clear().
2593 Updates reflecting XmlSchemaDataImporter change.
2594 Added duplicate check for XmlSerializerNamespaces in BuildSchema().
2595 Don't use xmlns attribute for UnhandledAttributes (its not mandatory
2596 but that depends on different behavior from ms.net).
2597 Set locale also for DataTable.
2598 Add xs:element only when target namespace matches to the
2599 element's namespace. Otherwise, add xs:import for external namespace.
2600 Put xs:sequence for dataset element's particle _only when_ actual
2603 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
2605 * XmlDataReader.cs : Added. This class will work better when our
2606 schema inference and schema read engine gets improved. (It contains
2607 standalone testable Driver class.)
2609 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
2611 * ForeignKeyConstraint.cs : Check step change. Existence then column
2612 validity. just for tests.
2613 * XmlSchemaDataImporter.cs : code simplification. reduced extraneous
2616 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2618 * DataSet.cs : Ignore empty content only when output type is diffgram.
2620 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2622 * CustomDataClassGenerator.cs : Modified that DataSet contains each
2623 DataTable field so that each table property can access them directly.
2624 (plus, modified standalone code driver code: shouldn't affect)
2626 2004-05-05 Boris Kirzner <borisk@mainsoft.com>
2628 * DataView.cs , DataRowView.cs : Added implementation to basic methods and properties.
2630 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2632 * XmlSchemaDataImporter.cs :
2633 SimpleContent column support.
2634 Annotated relation support.
2635 Top-level element is counted only when its type is complex.
2636 xs:anyType is no longer treated as complex type.
2637 dataset existence is mandatory now.
2638 Improved DataType and DefaultValue support.
2639 Attribute namespace is properly handled now.
2640 Prohibited attribute is now treated as hidden column.
2641 Reject list or union simple type.
2643 Still incomplete 1) to read relationship in some cases, 2) to
2644 determine whether an element is dataset or table, 3) thus to
2645 exclude extraneous column, 4) to remove extraneous *_Id column.
2647 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2650 We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
2651 serialization .ctor() (thus schema read/inference should be easier).
2652 DataRowSorter should consider Table's Locale.
2654 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2656 * DataColumnCollection.cs : We already had AutoIncrementValue(), so
2657 use it instead of duplicating logic.
2659 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2661 * ConstraintCollection.cs :
2662 Use Table.CaseSensitive and Table.Locale to compare strings.
2663 Duplicate constraint name exception does not occur under .NET 1.1.
2665 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
2667 * XmlSchemaDataImporter.cs: Added little type check.
2669 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
2671 * DataSet.cs: Implemented support for runtime serialization. Fixed support
2672 for xml serialization.
2673 * XmlDiffLoader.cs: Skip diffgram element when it is empty.
2675 2004-04-30 Umadevi S <sumadevi@novell.com>
2676 * DataColumnCollection.cs : Fixed nunit test errors, removed TODOs
2677 * DataTableCollection.cs : Tested and removed TODO
2678 * TypedDataSetGeneratorException.cs : Fixed a couple of TODOs
2680 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
2682 * DataRow.cs : My previous patch unintentionally reverted Boris patch.
2684 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2686 * UniqueConstraint.cs : Constraint columns becaomes unique after adding constraint ifand only if
2687 constraint is defined on single column.
2689 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
2691 * DataRowCollection.cs : .NET 1.1 throws InvalidConstaintException,
2692 not ArgumentException (maybe changed after 1.1).
2694 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
2696 * DataRow.cs : When Column was added and it was AutoIncrement column,
2697 it extended the item object array incorrectly.
2698 (Plus tiny comment and incorrect indentation fix.)
2700 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2702 * MergeManager.cs : added ( incomplete yet ) support for merging DataSet schema.
2704 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2706 * DataRow.cs : Bug fix in CopyValuesToRow().
2708 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2710 * UniqueConstraint.cs : There is no reason to mark constraint's columns as unique, because
2711 each of the columns should not be unique, but only all the constraint's columns together.
2713 2004-04-28 Boris Kirzner <borisk@mainsoft.com>
2716 - Added using of list of autoIncrement columns
2717 - SetColumnValue receives also DataColumn to avoid duplicate lookup in DatacolumnCollection
2718 - Fix in CheckNullConstraints
2719 - Fix in this[] and HasVersion() : when evaluating an expression deleted rows values can be accessed.
2720 - Fix in SetColumnValue() , added CanAccess() method to avoid case of accessing internal array values berore it actually allocated.
2721 - Added onColumnRemoved() method to threat column removal accurately.
2723 * DataRowCollection.cs :
2724 - Added using of DataRow._nullConstraintViolation (for perfomance fix in EndLoadData())
2725 - Added method onColumnRemoved() - calls each row's onColumnRemoved() (to ensure column removal is treated accurately)
2728 - Call DataRowCollection.onColumnRemoved() in OnRemoveColumn() (to ensure column removal is treated accurately)
2730 * DataColumnCollection.cs :
2731 - Perfomance fixes :
2732 - collection holds a list of its autoIncrement columns (avoids unnesessary lookup through whole collection)
2733 - collection holds mapping from column names to DataColumn objects (avoids lookup through whole collection).
2734 - automatic creation of column names rewrited (bug fixes + perfomance improvement)
2737 - Uses autoincrement list of a table
2739 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2741 * XmlDataLoader.cs : Even when it should ignore schema, it was
2743 * XmlSchemaDataImporter.cs : DataRelation creation support.
2744 Improved "DataSet" element handing. When attributes are on the
2745 element, it is not a "DataSet" element.
2746 Fixed parent key column name.
2747 Unique name creation is not required. Just raise an error.
2748 Fill facet also for attribute types.
2750 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2752 * DataRow.cs : Null check for CheckReadOnlyStatus() and
2753 CheckNullConstraints(), with some coding guideline fixes.
2754 Type check should be done by Type instance comparison.
2756 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2758 * DataColumnCollection.cs : When add a column to the collection, fill
2759 auto-increment column.
2761 2004-04-26 Boris Kirzner <borisk@mainsoft.com>
2763 * DataColumn.cs : Small perfomance fix (avoid unnesessary string concatenation).
2765 2004-04-26 Atsushi Enomoto <atsushi@ximian.com>
2767 * CustomDataClassGenerator.cs : Added.
2768 * TypedDataSetGenerator.cs : Implemented Generate().
2769 Changed GenerateIdName() to call CustomDataClassGenerator.MakeSafeName
2770 * XmlSchemaDataImporter.cs : Table Locale should be supplied.
2772 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
2774 * DataTable.cs : Small perfomance fix (avoid unnesessary string concatenation).
2776 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
2778 * Constraint.cs : Small perfomance fix (avoid unnesessary string concatenation).
2780 2004-04-23 Umadevi S (sumadevi@novell.com)
2781 * DataRow.cs: Checked BeginEdit,EndEdit,CancelEdit and Delete methods
2782 - Added error handling to the above methods
2784 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
2786 * DataSet.cs : Data should be read when mode is IgnoreSchema (well,
2787 the support is incomplete yet).
2788 * XmlDataLoader.cs :
2789 Reverted ReadModeSchema() argument change. XmlReadMode would be
2790 useful to handle IgnoreSchema.
2791 Don't overwrite DataSetName when mode is not such kind.
2792 Set Prefix and Namespace as well as DataSetName.
2793 AllowDBNull looks set false by default for element column.
2794 Set unique constraint as primary key when infering the table schema.
2796 2004-04-21 Atsushi Enomoto <atsushi@ximian.com>
2799 Never set null string for Prefix and Namespace.
2800 In InferXmlSchema() when null XmlReader is passed, just do nothing.
2801 In WriteXmlSchema(string), earlier try block.
2802 In BuildSchema(), try to add serialization namespaces for each
2803 namespaces in DataSet/DataTable/DataColumn.
2804 Removed namespace argument from WriteColumnAsElement() and don't
2805 overwrite when namespace is "". This fixes bug #57330.
2806 * DataColumn.cs : For Namespace and Prefix, never set null.
2808 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2810 * XmlSchemaMapper.cs : Check for not null unique constraint in ReadXmlSchemaKeyref()
2811 before creating and adding foreign key constraint and relation.
2813 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2815 * MergeManager.cs : In AdjustSchema() source table clone should be added
2816 and not the table itself.
2818 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2821 - CaseSensitive : Additional fix (removed unnesessary assignment).
2822 - CopyProperties : Do not try to copy ExtendedProperties if the collection is empty.
2824 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2826 * DataTable.cs : Ensure that DataSet property is not null before using it in Clear().
2828 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
2831 - EndLoadData() : perfomance fix in case of null constraint violation
2832 during data load (also in DataRow.cs).
2833 - CaseSensitive : If DataTable belongs to DataSet it should always use
2834 DataSet.CaseSensitive untill explicitly changed.
2835 - CopyProperties() : do not try to copy ExtendedProperties if the collection is empty.
2838 - Pefromance fix in case of null constraint violation
2839 during data load (also in DataTable.cs).
2840 - CollectionChanged() : use correct column number after new DataColumn was added
2841 (differs in case some DataColumn was previosly removed).
2842 - EndEdit() - throw away proposed values only after CheckChildRows() complete.
2844 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
2846 * DataColumnCollection.cs : Since unique constraint is added now
2847 in DataColumn.SetTable() the additional creation of constraint in
2848 DataColumnCollection.Add() is redundant and causes exception - fixed.
2850 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
2852 * XmlDataLoader.cs : Added "never add data rows" mode.
2853 Removed unused code. However, it is temporary fixes to unify
2854 ReadXml() and InferXmlSchema().
2855 * DataSet.cs : Implemented InferXmlSchema(), though it is incomplete.
2857 I'll create another XmlDataLoader since there are many problems
2858 such that 1) it is too waste to read the entire xml into an
2859 XmlDocument, 2) it does not handle attributes correctly, and 3) it
2860 must handle "ignored namespaces".
2862 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
2864 * Added XmlSchemaDataImporter.cs (new schema reader).
2865 * DataSet.cs : Use XmlSchemaDataImporter (right now for DataSet only)
2866 for ReadXmlSchema().
2867 Let schema reading work to ReadXmlSchema().
2868 Don't return ReadSchema when argument read mode was DiffGram.
2870 2004-04-15 Umadevi S (sumadevi@novell.com)
2871 * Updated Clone/Copy methods in DataSet along with Testcase
2872 * ForeignKeyConstraint.cs - special ctor implemented
2873 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).
2874 * Changes in ConstraintCollection.cs for the above
2875 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.
2878 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
2880 * XmlSchemaMapper.cs : set parent key and foreign key info to
2881 DataRelation when reading refkey constraints.
2882 Supply constraint name for fkey.
2884 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
2886 * XmlDataLoader.cs : Don't overwrite existing DataSetName. When read
2887 mode is Auto, just ignore the schema if there is already schema info.
2888 * DataSet.cs : Similarly ignore schema info for XmlReadMode = Auto.
2890 2004-04-14 Atsushi Enomoto <atsushi@ximian.com>
2893 - In MS output, XML declaration looks to have standalone decl (yes).
2894 - ReadXml(reader) just calls to ReadXml(reader, XmlReadMode.Auto)
2895 - ReadXml(reader, mode)
2896 1) return originally specified mode, instead of (always) Auto.
2897 2) Check empty reader.
2898 3) Check diffgram schema and content separately.
2899 4) When diffgram exists, remaining (the same-level) contents
2901 5) Similar fact should be applied, but somewhat different.
2902 InferSchema and IgnoreSchema just skips, Fragment reads both
2903 schema and content, others just reads schema.
2904 - Removed unused code.
2905 * XmlDataLoader.cs :
2906 - Read() should skip in some ReadMode.
2907 - Don't compare schema element name as case-insensitive (well,
2908 should schemas be checked here?)
2909 - Avoided BuildDocument() not to create confusing DataSet
2911 - Don't add any tables when reader has single element.
2912 * XmlDiffLoader.cs :
2913 When target table was not found, MS.NET doesn't raise an error.
2914 * XmlSchemaMapper.cs :
2915 When XmlSchema.Read() left xml reader at </xs:schema>, read once.
2917 2004-04-13 Atsushi Enomoto <atsushi@ximian.com>
2920 - InferXmlSchema(): Throw explicit NotImplementedException now.
2921 - Don't put XML declaration everywhere. Write just for filename arg.
2922 - xmlns="" should not be written. Maybe WebService problem is
2923 because default namespace is overwritten. This patch will keep
2924 the WS problem away and actually fixes some unit tests (i.e. use
2925 explicit String.Empty for null namespace in WriteStartElement()).
2926 - MoveToContent() should always be called, not only when
2927 LocalName="xml". It will ignore prolog (DTD, PI, comment etc.).
2928 - Even XmlReadMode is DiffGram, reader might not be "diffgram"
2929 element. As to MSDN, diffgram does not contain schema.
2931 2004-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2933 * DataTable.cs: made _initStatus private so that System.Data is CLS
2936 2004-04-13 Umadevi S <sumadevi@novell.com>
2937 * UniqueConstraint.cs:
2938 * ConstraintCollection.cs:
2940 - Implemented a Constructor for UniqueConstraint.cs
2941 - Used EndInit on DataTable to call a delegate which adds the
2942 constraints passed to the most recent call of AddRange().Used
2943 AddRange() on ConstraintCollection to check whether
2944 DataTable.BeginInit has occurred. If yes, save the argument
2945 constraint collection passed, then return. If no, Check whether the
2946 constraints are of type UniqueConstraint and initialized with the
2947 special constructor If yes Initialized the table property of this
2948 UniqueConstraint object with table assosciated with the current
2949 instance of ConstraintCollection class.
2951 2004-04-07 Marek Safar <marek.safar@seznam.cz>
2953 * Constraint.cs: changed ClsCompliant to CLSCompliant, build fix.
2955 2004-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2958 * DataColumnCollection.cs:
2959 * DataRelationCollection.cs:
2960 * DataRowCollection.cs:
2961 * DataTableCollection.cs:
2962 * InternalDataCollectionBase.cs:
2963 * Node.cs: CLS compliance for System.Data. Patch by Gert Driesen.
2966 2004-04-05 Jackson Harper <jackson@ximian.com>
2968 * DataTable.cs: Add rows to the row list if there is no filter.
2970 2004-03-31 Juraj Skripsky <juraj@hotfeet.ch>
2972 * DataColumn.cs : Setting Caption to null sets it to the empty string
2973 (ms.net behaviour, testcase is in DataColumnTest).
2975 * DataRow.cs : Evaluate DataColumn.Expression when such a column's
2978 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
2980 * DataColumn.cs: In Expression setter, set the expression member even if
2981 it is an empty string.
2982 * DataSet.cs: Support serialization of byte[] columns.
2983 * XmlDataLoader.cs: Support deserialization of Guid columns.
2984 Set MappingType.Attribute to columns infered from attributes.
2986 2004-03-29 Juraj Skripsky <juraj@hotfeet.ch>
2988 * ExpressionElements.cs : remove
2989 * DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
2990 Integration of new Mono.Data.SqlExpressions classes used in
2991 DataTable.{Select, Compute}.
2992 Fixes bug #55503 and lots of failures in DataTableTest.cs.
2994 2004-03-28 Juraj Skripsky <juraj@hotfeet.ch>
2996 * Index.cs: Simple fix in ComparePartialRowNonUnique.
2997 This fixes bugs #56129 and #56014.
2999 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
3001 * DataSet.cs: In WriteXml (string filename, XmlWriteMode mode), close the
3002 stream after writing the dataset. This fixes bug #52581.
3003 Also added several writer.Close into finally blocks, so writers are properly
3004 closed in case of an exception.
3006 2004-03-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
3008 * Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
3009 * DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
3010 * ColumnTypeConverter.cs: Added stub
3011 * DefaultValueTypeConverter: Added stub
3012 * ConstraintConverter.cs: Added stub
3014 2004-03-04 Eran Domb <erand@mainsoft.com>
3016 * XmlDataLoader.cs : Xml reading reviewed. Added support for additional xml formats as described
3017 in MS.NET documentation (missing DataSet element etc).
3019 2004-03-04 Eran Domb <erand@mainsoft.com>
3022 * Index.cs : Rollback last changes.
3024 2004-03-03 Atsushi Enomoto <atsushi@ximian.com>
3026 * Index.cs : justa build fix.
3028 2004-03-03 Eran Domb <erand@mainsoft.com>
3031 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint, ConstraintCollection.cs, DataColumn.cs,
3032 DataRow.cs, DataRowCollection.cs, DataSet.cs, DataTable.cs : Changes made for using indexes on tables.
3033 This changes made for performance improvement.
3035 2004-02-08 Eran Domb <erand@mainsoft.com>
3037 * XmlSchemaMapper.cs : Read columns is they were written as SimpleContent or as Attributes.
3039 2004-02-08 Eran Domb <erand@mainsoft.com>
3041 * DataSet.cs: Fix some bugs in ReadXml().
3043 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
3045 * DataSet.cs: Added missing method that broke the build.
3047 2004-02-04 Eran Domb <erand@mainsoft.com>
3049 * DataRowCollection.cs (InsertAt): Add a check for null row. Replace check of IndexOf with RowId for
3051 * DataSet.cs (GetTableSchema) : Add supprot for simple content columns. Change the condition for a case
3052 when all column are attributes (elements count is 0), we still want to add the relations. No relations
3053 can be on simple contents.
3054 (AddUniqueConstraints) Check that the column of the constraint are not hidden.
3055 (AddForeignKeys) Check that the relation has constraints attach to it.
3056 * XmlConstants.cs : Added constant.
3058 2004-02-04 Eran Domb <erand@mainsoft.com>
3060 * DataSet.cs : GetSchemaSerializable() return null and not BuildSchema().
3061 DoWriteXmlSchema calls BuildSchema ().
3063 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
3065 * DataRow.cs: Added SetOriginalValue(), which is used to set the original
3067 * DataRowCollection.cs: In InsertAt(), perform the correct checks and
3069 * DataSet.cs: Fixed method GetChanges(): Parent rows of modified rows must
3070 also be added to the dataset.
3071 In WriteTable(), do not write unchanged rows when writing the original
3072 version of the table.
3073 Added WriteIndividualTableContent(), for writing the contents of a single
3075 Changed BuildSchema and related methods, so it can generate a schema for
3076 any set of tables, not just the tables of the dataset (needed for
3077 single datatable serialization).
3078 * DataTable.cs: Implemented serialization constructor and GetObjectData method.
3079 Also implemented some ReadXmlSchema methods.
3080 * XmlDiffLoader.cs: Read and process the xml document directly from XmlReader,
3081 instead of loading the full dataset in an XmlDocument. It is faster and
3082 saves memory. Also fixed several problems when generating the changes.
3083 * XmlSchemaMapper.cs: Support reading schemas for single tables (used by
3084 table serialization).
3086 2004-02-02 Eran Domb <erand@mainsoft.com>
3088 * DataSet.cs : Add indentation to the xml serialization only if we create the XmlWriter.
3089 Add the namespace attribute even if namespace is an empty string for inteoperability with MS.NET.
3090 * DataTable.cs (NewRow): Create only one DataRowBuilder.
3091 Initiate new row with row id -1.
3092 * DataRow.cs : Add RowId property.
3093 * DataRowBuilder.cs : Add _rowId member.
3094 * DataRowCollection.cs (Add) : Use the RowId property of the new row to check if it is already exists in the collection.
3096 2004-01-26 Eran Domb <erand@mainsoft.com>
3098 * XmlConstants.cs : Added some constants.
3099 * DataColumn.cs : Added a method to retrive AutoIncrement value.
3100 * XmlDataLoader.cs : Set the value of the foriegn key column, according to the value of the
3101 parent table column.
3102 * XmlDiffLoader.cs : Convert the value comming from the xml.
3103 * XmlSchemaMapper.cs (Read) : Set the DataSet namespace.
3104 (ReadXmlSchemaSequence) : Change the logic that decides if this element is a column or a table.
3105 (ReadXmlSchemaElement) : Set the locale of the dataset.
3106 (ReadColumn) : Set the column type. Find if the column is AutoIncrement.
3107 (GetColumnType) : New method to get the column type from the attribute value.
3108 (ReadXmlSchemaUnique) : Improve parsing of XPath. Set the constraint as a PK if needed,
3109 and add the constraint to the table.
3110 (ReadXmlSchemaKeyref) : Improve parsing of XPath. Create the FK constraint and add it to
3112 * DataSet.cs : Improving writing of unique constraints, and foriegn key constraint. Givving them the correct names.
3113 Writing more information to the schema for interoperability with ms.net.
3114 Improve diffgarm writing mode.
3117 2004-01-21 Atsushi Enomoto <atsushi@ximian.com>
3119 * TypedDataSetGenerator.cs : Implemented GenerateIdName().
3121 2004-01-21 Eran Domb <erand@mainsoft.com>
3123 * XmlDataLoader.cs (AddRowToTable) : Give thre new relation correct name.
3124 Do not set the child column to be AutoIncrement.
3125 Create the new column for the relation as MappingType.Hidden so they will not be serialized
3126 when writing the dataset to xml.
3128 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
3130 * Added missing TypedDataSetGenerator.cs.
3132 2004-01-08 Eran Domb <erand@mainsoft.com>
3134 * XmlSchemaMapper.cs : Fix a bug. Check if table already in DataSet before adding it.
3135 * DataSet.cs (ReadXml) : Fix bugs. Read correctly the xml file with XmlReadMode of DiffGram,
3136 InferSchema, ReadSchema and IgnoreSchema.
3137 * XmlDataLoader.cs : All modes use the same logic.
3138 * XmlDiffLoader.cs : Adding BuildXmlDocument method to the class.
3140 2004-01-06 Eran Domb <erand@mainsoft.com>
3142 * DataRelationCollection.cs : Use IndexOf in indexer.
3143 * DataSet.cs : Adding support for WriteXml with diffgram. Code style changes.
3144 * XmlDataLoader.cs : Set the DataSet.enforceConstraints to false before loading the tables.
3145 * XmlDiffLoader.cs : Reading nested tables.
3146 * XmlSchemaMapper.cs : Reading the relation.
3147 * XmlConstants.cs : Adding some constants.
3149 2004-01-05 Jackson Harper <jackson@ximian.com>
3151 * DataView.cs: Set readonly property of property descriptor. This
3154 2004-01-01 Sanjay Gupta <gsanjay@novell.com>
3156 * DataRelationCollection.cs : Fixed incorrect generation of default
3158 * DataSet.cs : Added missing functionality in WriteXml().
3159 * XmlConstants.cs : Added new constants.
3161 2003-12-27 Atsushi Enomoto <atsushi@ximian.com>
3163 * DataSet.cs : Fixed incorrect WriteXml() signature.
3165 2003-12-18 Jackson Harper <jackson@ximian.com>
3167 * DataView.cs: Implement AddNew, Delete, and OnListChanged.
3169 2003-12-17 Atsushi Enomoto <atsushi@ximian.com>
3171 * DataSet.cs, XmlDataLoader.cs : Table name should be encoded before
3172 they take shape of xml. This fixed bug #52240
3174 2003-12-16 Tim Coleman <tim@timcoleman.com>
3175 * KeyRestrictionBehavior.cs:
3176 New stubs added for .NET 1.2
3180 2003-12-08 Eran Domb <erand@mainsoft.com>
3181 * DataColumn.cs (Expression) : Validate the expression.
3183 * DataRelationCollection.cs (IndexOf) : Added new method sensetive to case differences in relation name.
3184 (Contains, IndexOf, this[], Add) : Call new IndexOf when needed.
3186 * DataRow.cs (this[]) : Fix the condition for throwing RowNotInTableException.
3187 (RejectChanges) : Detach row when state was Added.
3188 (CollectionChanged) : Fix a bug.
3190 * ExpressionElement (ValidateExpression) : Fix a bug.
3192 * ForeignKeyConstraint.cs (AssertConstraint) : Added implementation. Check all rows from child table have
3193 a parent row in the parent table.
3194 (_validateColumns) : Fix bugs.
3196 * MergeManager.cs (AdjustSchema) : Fix a bug.
3198 * XmlDataLoader.cs (ReadModeInferSchema) : Change implementation. Now we can read nested xml, and we generate the relations
3201 2003-11-30 Eran Domb <erand@mainsoft.com>
3202 * DataColumnCollection.cs (this[string name]) : Use IndexOf to find the column.
3203 (Add) : Find if the new column name is the same as the one found in IndexOf.
3204 (IndexOf) : New method.
3205 (Contains) : Use new IndexOf.
3206 (IndexOf) : Use new IndexOf.
3208 * DataRelationCollection.cs (DataRelationCollection.AddCore) : Add The Relation to the collection.
3209 (DataSetRelationCollection.AddCore) : First add the UniqueConstraint.
3211 * DataRow.cs (this[int columnIndex, DataRowVersion version]) : Change exceptions.
3212 (Delete) : Detach row if the RowState was Added.
3213 (GetChildRows) : Get the array form the ChildTable.
3214 (GetParentRows) : Get the array from the ParenTable.
3216 * DataRowCollection.cs (Remove) : Check if row state is Detached to avoid exception.
3218 * DataSet.cs (IXmlSerializable.ReadXml) : Do not call MoveToContent and ReadEndElement - the XmlSerializationReader does it.
3220 * DataTable.cs (PrimaryKey) : Fix bugs.
3221 (Compute) : First call Select. Then create ExpressionAggregate to aggregate the Select result.
3223 * DataTableCollection.cs (Add) : Fix a bug.
3225 * ExpressionElement.cs (ValidateExpression) : Turning ValidateExpression to static.
3226 (Result) : Added new interface to AggregateExpression that get DataRow[] as a param.
3227 Some code style changes (tab instead of whit spaces, alignment, etc...).
3229 * ForeignKeyConstraint.cs (_validateColumns) : Throw correct exception.
3231 * MergeManager.cs (AdjustSchema) : Fix a bug.
3235 2003-11-26 Miguel de Icaza <miguel@ximian.com>
3237 * DataSet.cs: Add a few more missing methods, code style updated
3240 2003-11-26 Tim Coleman <tim@timcoleman.com>
3242 * ConflictOptions.cs DataAdapterException.cs DataTableReader.cs
3243 * DbMetaData.cs FillOptions.cs IDataReader2.cs IDataRecord2.cs
3244 * IDataUpdatableRecord.cs IDbAsyncCommand.cs IDbAsyncConnection.cs
3245 * IDbExecutionContext.cs IGetTypedData.cs ISetTypedData.cs
3246 * LoadOption.cs OperationAbortedException.cs ResultSetOptions.cs
3247 * ResultSetSensitivity.cs StatementCompletedEventArgs.cs
3248 * StatementCompletedEventHandler.cs UpdateOptions.cs:
3249 New classes added for NET_2_0
3250 * DBConcurrencyException.cs DataRelation.cs DataSet.cs DataTable.cs
3251 * DataTableCollection.cs DataView.cs ForeignKeyConstraint.cs:
3252 Modifications to add new NET_2_0 functions
3254 2003-11-25 Tim Coleman <tim@timcoleman.com>
3258 2003-11-21 Pedro Martinez Julia <yoros@wanadoo.es>
3260 * DataRow.cs: Detached row can be accesible (new rows from data
3261 table are detached). Closes but #51263.
3263 2003-11-19 Eran Domb <erand@mainsoft.com>
3264 * DataRow.cs : Throw exceptions if Row is Detached.
3265 (EndEdit) : Check that we are not in middle of ChangeEvent.
3266 (AcceptChanges) : Detach the row.
3268 * DataRelation.cs : throw correct exception.
3269 *UniqueConstraint.cs : throw correct exception.
3272 2003-11-09 Pedro Martinez Julia <yoros@wanadoo.es>
3274 * DataRow.cs: Use RemoveInternal instead of Remove because the last
3275 one uses Delete and AcceptChanges.
3277 * DataRowCollection.cs: When removing, Delete and AcceptChanges
3278 method from the row are called. Added an internal method that will
3279 be used by DataRow to "physically" remove the row from the list.
3281 2003-11-09 Pedro Martinez Julia <yoros@wanadoo.es>
3283 * DataRowCollection.cs: To follow the specification: Remove and
3284 RemoveAt should remove the row. But needed to call DeletingDataRow
3285 to prepare the deleting.
3287 * DataRow.cs: Don't call DeletingDataRow when it is called by the
3288 method Table.Rows.Remove.
3290 2003-11-09 Pedro Martinez Julia <yoros@wanadoo.es>
3292 * DataRowCollection.cs: Make the row be deleted by itself. If not,
3293 it fails because we need to call OnRowDeleting and OnRowDeleted. It
3294 is full implemented inside DataRow.
3296 2003-11-05 Eran Domb <erand@mainsoft.com>
3297 * DataView.cs (ctor) : Changing default RowStateFilter to CurrentRow.
3299 2003-11-04 Eran Domb <erand@mainsoft.com>
3300 * DataRow.cs (CheckChildRows) : Improving the implementation - checking child for all FK, and not
3302 (GetChildRows) : Adding some checks.
3303 (GetParentRows) : Adding some checks. Fix a bug in implementation.
3304 (SetParentRow) : Added implementation.
3306 * DataRowCollection.cs (Add) : Added more checks on the row added to the collection.
3307 * DataTable.cs (Copy) : Set the During Loading flag to save unnecessary assertions.
3308 * ForeignKeyConstraint.cs (AssertConstraint) : Fixing bugs in implementation. Checking for DBNull values in the row.
3309 * MergeManager.cs : Check that the target table is not null.
3311 2003-10-27 Eran Domb <erand@mainsoft.com>
3312 * DataColumn.cs (DefaultValue) : Changing null value to DBNull. Checking that the type of the new default value
3313 can be converted to the column type.
3315 * DataRelationCollection.cs (AddCore) : Give the new FK the name of the relation.
3317 * DataRow.cs (EndEdit) : Check if we need to validate the constraints.
3318 (GetParentRows, GetChildRows) : Checking that the row has the wanted version, before accessing the row's value.
3320 * DataRowCollection.cs (Add) : Fixing a bug.
3321 (Clear) : Before clearing the array check that there is no violation of FK constraint.
3323 * DataSet.cs (Prefix) : If value is null chage it to empty string.
3324 (GetXml) : Removing the Processing Instructions from the xml string as in MS ADO.NET.
3326 * ExpressionElement : Adding support for IN expresion.
3328 * DataTable (CopyConstraints) : New method that copy the tables constraints to the copy table.
3329 (Select) : Adding support for DataViewwRowState.
3331 * ForeignKeyConstraint.cs (AssertConstraint) : Adding implementation.
3333 * MergeManager.cs (MergeRow) : Fix bugs.
3335 2003-10-27 Eran Domb <erand@mainsoft.com>
3336 * DataRow.cs (SetColumnValue): Donot check null value when in midle of loading data.
3337 check null values when ending loading data.
3339 * DataSet.cs (RejectChanges) : Imlementation.
3340 (Prefix) : If prefix was changed fire event. Check that the prefix is not null - if null,
3341 change it to empty string.
3343 * DataTable.cs (BeginLoadData, EndLoadData) : Impemantation.
3345 2003-10-22 Eran Domb <erand@mainsoft.com>
3346 * MergeManager.cs : Fixing bugs. Adding check for PrimaryKey matching.
3348 * ConstraintCollection.cs (RamoveAt): Change implemntation.
3350 * DataTableCollection (CanRemove): Removing cast to Constraint.
3352 2003-10-22 Eran Domb <erand@mainsoft.com>
3353 * DataRelationCollection.cs (AddCore): The unique constraint was added even if the createConstraints flag was false.
3354 (Clear): The collection was cleared without removing the relation from the parent and child tables.
3356 * DataSet.cs (Copy, Clone): The Relations of the DataSet were not copy.
3357 (HasChanges, Reset): Imlementation.
3359 * DataTable.cs (HasErrors): There is no flag for errors, instead the table ask her row if they have any errors.
3360 This is because the we do not no when to turn off the flag.
3361 (Locale): Changing implementation to behave like ADO.NET.
3362 (AcceptChanges): Fix bug.
3363 (Clear): Check that this table is not referenced from a foreign key constraint.
3364 (Copy): Do not try to access a deleted row.
3365 (CopyProperties): Copy the PrimaryKey.
3366 (GetChanges, ImportRow): Implementation.
3367 (LoadDataRow): Adding implementation if the table has PrimaryKey.
3368 (ToString): Changing implementation to behave like ADO.NET.
3370 * UniqueConstraint.cs (AssertConstraint): support for Multiple DataColumns in the constraint.
3372 * DataRow.cs (Ctor): In the constructor we initiate the current array, but we should initiate only the proposed array for new rows.
3373 (HasErrors): Implementation.
3374 (Delete): Added checking for child rows of the deleted row.
3375 (EndEdit): Added checking for child row and firing events.
3376 (GetColumnError): Added a check that the method will not return null, as in ADO.NET(an empty string is returned).
3377 (GetColumnsInError): Added a check for null values in column error.
3378 (HasVersion): Added special treatment for special RowState.
3379 (CollectionChanged): More checks to avoid NullReferenceException.
3381 * DataRowCollection.cs (Remove): Fix a bug.
3384 2003-10-01 Duncan Mak <duncan@ximian.com>
3386 More patches from Eran Domb <erand@mainsoft.com>.
3388 * MergeManager.cs: New file.
3390 * DataRelationCollection.cs (AddCore): Check that a
3391 UniqueConstraint is already exists. It loops over the Relations
3392 instead of the Constraints.
3393 (Add, AddCore): The relation was added twice.
3395 * DataSet.cs (Merge, GetChanges, HasChanges): Implemented.
3397 2003-09-30 Duncan Mak <duncan@ximian.com>
3399 Patches from Eran Domb <erand@mainsoft.com>.
3401 * DataRelation.cs (constructor): When the name of the relation is
3402 null, it should return an empty, not "Relation".
3404 * DataRow.cs (AcceptChanges): Added special case for
3406 (CancelEdit): Set editing flag to false.
3407 (IsNull): Check that the value is DBNull.
3409 * DataRowCollection.cs (Add): There was no check that the table of
3410 the collection is owned by a DataSet.
3412 * DataSet.cs (OnMergeFailed): Added.
3414 * UniqueConstraint.cs (AssertConstraint): There was no check that
3415 values in the row are not null, where it is a primary key
3416 column. Also check that the row has a proposed version, if not,
3417 get the current version when we compare the rows.
3419 2003-09-25 Duncan Mak <duncan@ximian.com>
3421 Patches from Eran Domb <erand@mainsoft.com>.
3423 * DataColumn.cs (Unique): Implemented.
3426 * ConstraintCollection.cs:
3427 * ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
3428 an Exception thrown. Details:
3429 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html
3431 * DataRowCollection.cs (Add): There is no checking that there is
3432 no violation of the unique constrains.
3434 * UniqueConstraint.cs (AssertConstraint): There is no checking on
3435 all columns in the constraint.
3437 * DataTableCollection (Add): Correctly throw an Exception, more
3439 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002117.html
3440 (Remove, RemoveAt): Implemented.
3442 2003-07-31 Duncan Mak <duncan@ximian.com>
3444 * DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
3446 2003-07-25 Ravi Pratap <ravi@ximian.com>
3448 * DataRelation.cs (OnPropertyChanging): Calling the 'Invoke'
3449 method on a delegate is disallowed - fix this.
3451 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
3453 * DataSet.cs: Implemented IXmlSerializable interface. Added basic support for
3454 xml serialization. Modified method of writing schema. Now it creates
3455 a XmlSchema object and serializes it using XmlSerializer.
3456 * XmlConstants.cs: Added constants for data type names.
3457 * XmlDataLoader.cs: Fixed deserialization of data. Now converts data to the
3458 type specified in the column.
3460 2003-04-20 Alan Tam <Tam@SiuLung.com>
3462 * DataRelationCollection.cs: Fix a bug that prevent relations
3463 from being added via DataSet.
3465 2003-04-12 Ville Palo <vi64pa@kolumbus.fi>
3467 * UniqueConstraint.cs: one tiny fix.
3469 2003-04-05 Ville Palo <vi64pa@kolumbus.fi>
3471 * DataTable.cs: Remove UniqueConstraints when adding new ones
3473 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
3475 * DataColumnCollection.cs: Little 'case sensitive' fix
3477 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
3479 * DataRow.cs: AutoIncrement handling to Constructor
3480 * DataRowCollection.cs: This doesnt need anymore AutoIncrements
3482 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
3484 * DataTable.cs: Some fixes to PrimaryKey etc...
3485 * UniqueConstraint.cs: Little clean up
3487 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
3489 * DataTable.cs: Tiny fix to ToString () -method
3491 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
3493 * ConstraintCollection.cs: Little fix.
3494 * DataColumn.cs: Added new internal method SetUnique()
3495 * UniqueConstraint.cs: some little fixes
3497 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
3499 * DataRowCollection.cs: Bugfixes, implementation,...
3501 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
3503 * DataColumn.cs: If DataType if set to something else than short, int
3504 or long and AutoIncrement is true, AutoIncrement is must set to false.
3506 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3509 (BeginEdit): fixed array bound problem when a column has been added.
3510 (EndEdit): just assign proposed to current as proposed is set to null.
3511 This also fixes another array boudn problem.
3513 2003-03-21 Alan Tam <Tam@SiuLung.com>
3515 * DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
3516 EndEdit and AcceptChanges to act correctly according to DataRowState
3518 * DataRowCollection.cs: Call AttachRow and DetachRow when a row is
3519 attached and detached from the collection.
3521 2003-03-20 Alan Tam <Tam@SiuLung.com>
3523 * DataColumn.cs: Store empty string for Expression when null is passed in.
3524 Classes generated by XSD.exe passes null by default.
3526 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
3528 * DataColumnCollection.cs: Tiny clean up
3530 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
3532 * DataColumn.cs: little fixes.
3533 * DataColumnCollection.cs: Lots of little fixes and improvments.
3535 2003-03-12 Alan Tam <Tam@SiuLung.com>
3537 * DataSet.cs: Fixed a bug that the file written does not close correctly.
3539 2003-03-08 Alan Tam <Tam@SiuLung.com>
3541 * DataRelationCollection.cs: Removed the mis-overridden methods
3542 * DataRow.cs: Fixed an attribute
3543 * DataSet.cs: Fixed the modifiers
3545 2003-03-06 Aleksey Demakov <avd@openlinksw.com>
3547 * DataTableCollection.cs: The Contains (string name),
3548 IndexOf (string name) methods, and item[string name] indexer
3549 now behave more like .NET with respect to case-sensitivity.
3550 That is if there is an exactly matching item then this one is used.
3551 If there is only one item differing in case then it used.
3552 If there are more than one item differing in case then
3553 Contains returns false, IndexOf returns -1, and item[]
3554 throws an ArgumentException.
3556 2003-02-28 Ville Palo <vi64pa@kolumbus.fi>
3558 * ExpressionElement.cs: More implementation.
3560 2003-02-28 Alan Tam <Tam@SiuLung.com>
3561 * DataSet.cs: Changed WriteTable so that it now calls the newly written
3562 WriteObjectXml to direct the call to the respective XmlConvert method.
3563 This fixes the wrong format written to XML files of bool, float,
3564 double, DateTime and TimeSpan types.
3566 2003-02-25 Alan Tam <Tam@SiuLung.com>
3568 * DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
3569 * DataRelationCollection.cs: Implemented AddRange and Contains.
3570 Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
3571 Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
3572 Reimplemented most Add methods to eliminate duplicated checks.
3573 Centralized RelationName generation procedure in GetNextDefaultRelationName.
3575 2003-02-25 Alan Tam <Tam@SiuLung.com>
3577 * DataColumn.cs: Fixed wrong storage representation of Expression
3578 (using empty string instead of null) so that ToString() returns nothing.
3579 * DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
3580 auto column naming now works as expected. Reimplemented some Add methods
3581 to eliminate code duplication.
3583 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
3585 * DataTable.cs: DataTable.CaseSensitive follows parent
3586 DataSet.CaseSensitive property if DataTable.CaseSensitive has never
3587 been changed directly from DataTable
3589 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
3591 * DataSet.cs: When CaseSensitive property is changed all of the Tables
3592 of DataSet have to change too
3594 2003-02-19 Daniel Morgan <danmorg@sc.rr.com>
3596 * InternalDataCollectionBase.cs: revert change to field
3599 * DataViewManager.cs
3602 * DataSet.cs: commented use of DesignerAttribute
3603 because it broke the build. According to MSDN,
3604 DesignerAttribute does not have a zero-argument constructor
3606 2003-02-18 Ville Palo <vi64pa@kolumbus.fi>
3608 * DataColumnCollectin.cs: Little fix for indexer and case sensitivity
3610 2003-02-18 Alan Tam <Tam@SiuLung.com>
3612 * DataRow.cs: Implemented GetParentRow and GetParentRows.
3613 * DataSet.cs: Added stub for HasChanges, InferXmlSchema,
3614 OnPropertyChanging, OnRemoveRelation, OnRemoveTable,
3615 RaisePropertyChanging.
3616 * DataTable.cs: Implemented NewRowArray.
3617 * DataTablePropertyDescriptor: Fixed a modifier.
3618 * InternalDataCollectionBase.cs: Fixed modifiers. Implemented SyncRoot.
3619 * PropertyCollection.cs: Minor fix.
3620 * ConstraintCollection.cs DataColumn.cs DataColumnCollection.cs
3621 * DataRelation.cs DataRelationCollection.cs DataRow.cs
3622 * DataRowCollection.cs DataRowState.cs DataSet.cs DataTable.cs
3623 * DataTableCollection.cs DataTablePropertyDescriptor.cs DataView.cs
3624 * DataViewManager.cs DataViewRowState.cs DataViewSettingCollection.cs
3625 * ForeignKeyConstraint.cs InternalDataCollectionBase.cs
3626 * PropertyCollection.cs UniqueConstraint.cs: Added missing attributes
3628 2003-02-08 Ville Palo <vi64pa@koti.soon.fi>
3630 * ExpressionElement.cs: More implementation
3632 2003-02-05 Alan Tam <Tam@SiuLung.com>
3634 * DataSet.cs: Added framework for DataSet.Update Implemented missing
3635 methods GetSchemaSerializable, GetSerializationData,
3636 ReadXmlSerializable, ShouldSerializeRelations and ShouldSerializeTables
3638 * DataTable.cs: Implemented missing methods CreateInstance and
3639 GetRowType for DataTable
3641 2003-02-03 Ville Palo <vi64pa@koti.soon.fi>
3643 * DataSet.cs: Implemented private method MapType for
3644 mapping datatypes for XmlSchema
3646 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3648 * DataView.cs: implemented Dispose.
3650 2003-01-30 Ville Palo <vi64pa@koti.soon.fi>
3652 * ExpressionElement.cs: Added new file. This file is for parsing
3653 and DataData.Select () -methods and DataColumn.Expression -property
3654 * DataTable.cs: Implemented Select(string) -method
3656 2003-01-28 Ville Palo <vi64pa@koti.soon.fi>
3658 * DataSet.cs: One little fix to writing xml
3660 2003-01-27 Ville Palo <vi64pa@koti.soon.fi>
3662 * XmlSchemaMapper.cs: Some fixes.
3663 * DatSet.cs: Some XmlFixes and BeginInit ()/ EndInit () -fix
3666 2003-01-24 Ville Palo <vi64pa@koti.soon.fi>
3668 * UniqueConstraint.cs: Do not set columns Unique property true
3670 * ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table
3672 2003-01-18 Ville Palo <vi64pa@koti.soon.fi>
3674 * DataTableCollection.cs: Now names new DataTable if it doesn't
3675 already have a name.
3677 2003-01-17 Ville Palo <vi64pa@koti.soon.fi>
3679 * XmlSchemaMapper.cs: Improvments.
3680 * XmlConstaints.cs: Added more constants.
3681 * DataSet.cs: Improvments of reading and writing xml
3682 * DataColumn.cs: Added default values of properties.
3684 2003-01-14 Ville Palo <vi64pa@koti.soon.fi>
3686 * XmlSchemaMapper.cs: Some improvments
3688 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
3690 * DataRowCollection.cs: Added IndexOutOfRangeException
3691 * DataTableCollection.cs: Added OnCollectionChanging and
3692 OnCollectionChanged events.
3693 * DataSet.cs: Many fixes. Implemented Clone () and Copy () -methods
3694 * DataTable.cs: Implemented Copy () and Clone () methods.
3695 * XmlDataLoader.cs: some fixes.
3696 * XmlSchemaMapper.cs: comments.
3698 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3700 * DataColumnPropertyDescriptor.cs: store columnIndex in the .ctor.
3702 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3704 * DataColumnPropertyDescriptor.cs: fixed typo.
3705 * DataViewManagerListItemTypeDescriptor.cs: added new internal property
3706 to get the DataViewManager and removed TablePD class.
3707 * DataTablePropertyDescriptor.cs: TablePD class is now this one as
3708 suggested by danmorg.
3710 2003-01-06 Ville Palo <vi64pa@koti.soon.fi>
3712 * XmlDataLoader.cs: Moved diffgram stuff to new internal class
3714 * XmlDiffLoader.cs: new class for diffgrams. Added handling of
3715 diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
3717 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3719 * DataView.cs: made dataViewManager internal.
3720 * DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
3721 properties of the object, but the values of the columns present in a
3724 * DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
3725 which returns a PropertyDescriptorCollection. Created a new class
3726 derived from PropertyDescriptor that treats Table as an object whose
3727 properties are DataRowView.
3729 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
3731 * XmlSchemaMapper.cs: Added handling for Constraints, Attributes.
3733 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
3735 * DataColumn.cs: ExtendedProperties is by default !null-
3737 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
3739 * DataColumnCollection.cs: Add (DataColumn Column) -method didn't
3740 set column's ordinal.
3742 2003-01-02 Ville Palo <vi64pa@koti.soon.fi>
3745 * XmlDataLoader.cs: XmlReader closing fixes.
3746 * XmlSchemaReader.cs: Added support for ref=
3748 2003-01-01 Ville Palo <vi64pa@koti.soon.fi>
3751 - Added XmlReader and XmlWriter Closing.
3752 - Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
3753 * XmlSchemaMapper.cs
3754 - Much better way IMHO to map xmlschema than the old one in
3755 DataSet.cs. Its, more flexible, cleaner, ...
3757 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
3759 * XmlDataLoader.cs: Reading diffgrams.
3761 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
3763 * DataRow.cs: Little fix to indexer and DataColumnCang* trigger fixes.
3764 * DataTable.cs: Added ChanginDataColumn () for triggering
3765 DataColumnChanging event
3767 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
3769 * DataSet.cs: Indentations to WriteXmlSchema () and one little fix
3771 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
3773 * DataSet.cs: Indentations to WriteXml ()
3775 2002-12-27 Ville Palo <vi64pa@koti.soon.fi>
3778 * XmlDataLoader.cs: Moved ReadXml -stuff from DataSet.cs to new
3779 class XmlDataLoader.cs
3781 2002-12-19 Ville Palo <vi64pa@koti.soon.fi>
3783 * DataSet.cs Implemented ReadXml with XmlReadMode.ReadSchema
3785 2002-12-18 Ville Palo <vi64pa@koti.soon.fi>
3787 * DataSet.cs: Started to implement ReadXml-methods.
3789 2002-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3791 * DataSet.cs: implemented DefaultViewManager and GetList.
3793 * DataViewManager.cs: a bit of work on IList and ITypedList needed by
3794 DataList in System.Web.
3796 * DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
3799 2002-12-16 Ville Palo <vi64pa@koti.soon.fi>
3802 * DataTable.cs: Fixed NullException (rollback -event)
3803 * DataSet.cs: WriteXml -method does not anymore write <?xml... row.
3805 2002-12-15 Ville Palo <vi64pa@koti.soon.fi>
3808 * DataRowCollection.cs: Moved event triggering from DataRow to
3811 2002-12-09 Ville Palo <vi64pa@koti.soon.fi>
3813 * DataSet.cs: Little fix to WriteTable () -method
3814 and DoReadXmlSchema () -method.
3816 2002-12-06 Ville Palo <vi64pa@koti.soon.fi>
3818 * DataSet.cs: Clean up to reading xmlschema. This looks much better
3819 now (work better too), but it not working correctly yet.
3821 2002-12-04 Ville Palo <vi64pa@koti.soon.fi>
3824 * DataRowCollection.cs: Added some event handlins stuff.
3825 * DataSet.cs: Some fixes.
3826 * DataTable.cs: Added event handlers.
3828 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
3830 * DataRowChangeEventArgs.cs: Implemented Action and Row properties
3832 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
3834 * System.Data/DataRow.cs: Added internal property XmlDataID
3836 2002-11-29 Ville Palo <vi64pa@koti.soon.fi>
3838 * DataSystem.Data.DataTableCollection.cs:
3839 Removed HashTable. There could be situations where DataTable
3840 is added to collection before it hava TableName. So using
3841 HashTable is impossible.
3843 2002-11-19 Carlos Guzman Alvarez <carlosga@telefonica.net>
3845 * DataRow.cs: an object that is equal to null
3846 should be allowed to be set in this indexer too
3849 2002-11-06 Daniel Morgan <danmorg@sc.rr.com>
3851 * DataColumnPropertyDescriptor.cs: added file
3853 * System.Data/DataRowView.cs: started implementation
3855 * DataTable.cs: stubbed more interfaces. Implemented
3856 IListSource.GetList()
3858 * DataView.cs: stubbed more interfaces. Implemented
3859 some properties and methods: GetEnumerator(),
3860 ITypedList.GetItemProperties, Item indexer, CopyTo()
3862 2002-05-18 Nick Drochak <ndrochak@gol.com>
3864 * DataRow.cs: Fix typo.