1 2008-09-27 Raja R Harinath <harinath@hurrynot.org>
3 * DataView.cs: Convert into a partial class and sequester
4 interface-implementations and NET_2_0 pieces into separate parts.
6 2008-09-16 brandin claar <brandin.claar@gmail.com>
7 Raja R Harinath <harinath@hurrynot.org>
9 * DataTable.cs (BinarySerialize): Handle empty DataTables.
10 (DeserializeRecords): Likewise.
11 (BinaryDeserializeTable): Allow DefaultValue to be set to any value.
13 2008-09-12 Raja R Harinath <harinath@hurrynot.org>
15 * DataTable.cs (NewRowAdded): Make into partial method.
16 (DataTableClearing, DataTableCleared): New partial methods.
19 * DataTable.cs: Sequester ISupportInitializationNotification
20 pieces into separate part.
21 (DataTableInitialized): Turn into a 'partial method' to avoid #ifs.
23 * DataTable.cs (AssertNotNullConstraints): Hoist out a more useful
24 loop-invariant by inverting loops.
25 (RowExists): Outdent. Rewrite for slightly better clarity.
26 (BeginLoadData): Outdent.
27 (GetChanges): Outdent. Replace GetEnumerator/while with foreach.
29 * DataTable.cs: Convert to a partial class, sequester NET_2_0
30 specific and IXmlSerializable specific pieces into separate parts.
32 2008-09-07 Raja R Harinath <harinath@hurrynot.org>
34 * DataSet.cs: Convert to a partial class and sequester NET_2_0
35 pieces into a separate part.
37 * DataRowView.cs: Convert to a partial class, and sequester
38 NET_2_0 parts into a separate part. Use partial classes instead
39 of ugly #region directives.
40 (Item): Remove redundant attributes. Cleanup slightly.
42 2008-09-05 Raja R Harinath <harinath@hurrynot.org>
44 * DataRowCollection.cs (RemoveInternal): Update RowIDs of rows
45 after the deleted row.
46 (IndexOf): Avoid loop to search for a row, since we already know
47 where a row is: its RowID.
48 (Remove): Use IndexOf rather than List.Contains.
50 * DataRowCollection.cs (InsertRow): Delegate setting of RowId
51 to the row itself. Use 'row.AttachAt' instead of 'row.AttachRow'.
52 (AddInternal): Likewise. Also delegate handling of
53 ChangeCurrentAndOriginal to AttachAt.
54 * DataRow.cs (AttachAt): Rename from AttachRow. Set rowId from
55 passed-in id. Handle ChangeCurrentAndOriginal and ChangeOriginal
58 * DataRow.cs (_hasParentCollection): Remove. Implied by _rowId >= 0.
59 (HasParentCollection): Remove.
60 * DataRowCollection.cs (AddInternal, InsertAt): Update to changes.
62 * DataTable.cs (NewRowArray): Special case size == 0 to avoid
63 creating a lot of garbage.
65 * DataRow.cs (Detach): Rename from DetachRow. Make private.
66 Simplify code to be more uniform. Move common prefix code here ...
67 (AcceptChanges) [Deleted]: ... from here ...
68 (Delete) [Added]: ... and here ...
69 (RejectChanges) [Added]: ... and here.
71 2008-09-04 Raja R Harinath <harinath@hurrynot.org>
73 * DataRow.cs (CheckChildRows) <1-arg variant>: Remove excessive
75 (CheckChildRows) <3-arg variant>: Likewise. Move/split loop
77 (EndEdit): Out-dent some code.
78 (IsNullColumns): Simplify slightly.
80 * DataRelationCollection.cs (CanRemove): Simplify slightly.
82 * DataRelation.cs (CheckStateForProperty): Use the childColumn to
85 * DataColumn.cs (AllowDBNull.set): Rearrange code to be more readable.
86 (AutoIncrement.set): Likewise.
88 (SetDefaultValue): Likewise.
90 2008-08-28 Raja R Harinath <harinath@hurrynot.org>
92 * Constraint.cs (SetExtendedProperties): New internal method.
94 (ExtendedProperties.set): ... here. Kill a #ifdef.
95 * DataTable.cs (DeserializeConstraints): Update to changes.
97 2008-08-27 Raja R Harinath <harinath@hurrynot.org>
99 * ConstraintCollection.cs (Item) <string variant>: Don't incur
100 additional check for index that's returned by 'IndexOf'.
101 (_createNewConstraintName): Improve readability of code.
102 (_isDuplicateConstraintName): Perform cheaper test first.
104 * ConstraintCollection.cs: Reduce some #ifdef by using partial
105 classes. Move 'sealed' and '[Serializable]' to appropriate
106 partial class declarations.
107 * DataRowCollection.cs: Likewise.
109 2008-08-13 Marek Habersack <mhabersack@novell.com>
111 * DataRow.cs: do not check whether a column is read-only when
114 2008-08-08 Raja R Harinath <harinath@hurrynot.org>
116 * DataColumn.cs: Update to changes in DataCollection.
118 2008-07-29 Veerapuram Varadhan <vvaradhan@novell.com>
121 * XmlDataReader.cs (ReadElementElement): Handle custom reference types sanely.
123 2008-07-20 Gert Driesen <drieseng@users.sourceforge.net>
125 * DataColumnCollection.cs (IndexOf): Include name of column - for which
126 there are multiple matches in a different case - in the exception
128 * DataRow.cs (this [int]): On 2.0 profile, throw ArgumentException if
129 value is null and datatype of column is a value type. On 1.0 profile,
130 only allow null value if datatype of column is string. Do not replace
131 value with DBNull.Value if value is null.
133 2008-07-04 Gert Driesen <drieseng@users.sourceforge.net>
135 * DataRow.cs: Use indexer of DataColumnCollection instead of IndexOf.
136 Cosmetic changes to exception message.
137 * DataColumnCollection.cs: Fixed off by one error in index check. Added
138 null check in name indexer. In Clear, also reset columnNameCount and
141 2008-07-03 Gert Driesen <drieseng@users.sourceforge.net>
143 * DataRow.cs: Added missing null checks. Cosmetic changes to exception
146 2008-07-03 Marek Habersack <mhabersack@novell.com>
148 * DataRow.cs (this []): Use DBNull instead of throwing an exception
150 2008-07-01 Rodrigo Kumpera <rkumpera@novell.com>
152 * DataTable.cs: Kill some foreach loops.
156 2008-07-01 Marek Safar <marek.safar@gmail.com>
158 * DataColumnCollection.cs: Made few simple optimizations.
160 2008-06-28 Zoltan Varga <vargaz@gmail.com>
162 * DataTable.cs (NewRowArray): Avoid using reflection if possible.
164 2008-06-19 Atsushi Enomoto <atsushi@ximian.com>
166 * DataRelation.cs : keep createConstraints flag for cloning in
167 DataSet.Merge(). Use different flag for initialization instead.
168 * MergeManager.cs : When cloning DataRelation, createConstraints
169 flag should depend on the source.
170 * XmlSchemaDataImporter.cs : create constraints when creating
173 2008-06-18 Atsushi Enomoto <atsushi@ximian.com>
175 * DataSet.cs : when InferSchema mode, ReadXml() should do "merging
177 * XmlDataInferenceLoader.cs : fixed primary key processing in
178 merging inference mode. Reuse existing one, instead of rejecting
181 2008-06-17 Atsushi Enomoto <atsushi@ximian.com>
183 * XmlSchemaWriter.cs, DataSet.cs, XmlTableWriter.cs, DataTable.cs,
184 XmlDataInferenceLoader.cs, XmlSchemaDataImporter.cs:
185 fix xsd output on msdata:Locale and msdata.UseCurrentCulture.
186 Output explicit Locale only when it is explicitly specified.
187 On the other hand, ReadXml/ReadXmlSchema fills Locale as en-US
188 by default (on .NET).
189 Some code unification in DataTable.WriteXmlSchema() overloads.
191 2008-06-16 Atsushi Enomoto <atsushi@ximian.com>
193 * DataColumn.cs : replaced Activator.CreateInstance() with
194 returning explicit Null member for each SqlXxx type.
196 2008-06-13 Atsushi Enomoto <atsushi@ximian.com>
199 DefaultValue can be non-DBNull. For SqlXxx type, it becomes
200 SqlXxx.Null. Also, changing DataType may change DefaultValue
201 to be consistent with the new type (say, having int DefaultValue
202 for new string DataType is wrong).
205 This should be fixed to take non-DBNull default value into
208 2008-06-12 Atsushi Enomoto <atsushi@ximian.com>
210 * DataSet.cs, DataTable.cs, XmlSchemaDataImporter.cs : constraints
211 on missing tables are ignored when reading a DataTable schema.
212 Fixes part of DataTableTest.ReadXmlSchema() test.
214 2008-05-30 Marek Habersack <mhabersack@novell.com>
216 * Constraint.cs: do not use synthetized event accessors (to avoid
219 2008-05-29 Marek Habersack <mhabersack@novell.com>
221 * DataColumn.cs: do not use synthetic methods for events - this
222 avoids unnecessary locking, especially for internal events.
224 2008-04-21 Gert Driesen <drieseng@users.sourceforge.net>
226 * DataRowView.cs: Modified argument names to match MS. Use
227 String.Empty instead of "". Code formatting.
229 2008-04-16 Veerapuram Varadhan <vvaradhan@novell.com>
231 * XmlDataInferenceLoader.cs (ReadXml): Make sure the name of
232 reference key column(s) in child tables are unique.
234 * XmlSchemaWriter.cs (WriteSchema, WriteDataSetElement,
235 WriteTableType, WriteChildRelations): Handle the scenario wherein
236 we have a relation and only one table. This can occur when we
237 have an XML with same parent/child table names.
239 2008-03-31 Veerapuram Varadhan <vvaradhan@novell.com>
241 * DataView.cs: Reverting rev#98474 changes - as it broke quite a
244 2008-03-23 Gert Driesen <drieseng@users.sourceforge.net>
246 * DataSet.cs: Corcompare fix.
247 * IDataRecord.cs: Corcompare fix.
249 2008-03-22 Gert Driesen <drieseng@users.sourceforge.net>
251 * DataViewSettingCollection.cs: Corcompare fixes and code formatting.
252 * SyntaxErrorException.cs: Corcompare fixes and code formatting.
253 * EvaluateException.cs: Corcompare fixes and code formatting.
254 * StrongTypingException.cs: Coecompare fixes and code formatting.
255 * ReadOnlyException.cs: Corcompare fixes and code formatting.
256 * DataTableCollection.cs: Corcompare fixes and code formatting.
257 * MissingPrimaryKeyException.cs: Corcompare fixes and code formatting.
258 * DeletedRowInaccesibleException.cs: Corcompare fixes and code
260 * DataSet.cs: Corcompare fixes and code formatting.
261 * DuplicateNameException.cs: Corcompare fixes and code formatting.
262 * DataView.cs: Corcompare fixes and code formatting.
263 * VersionNotFoundException.cs: Corcompare fixes and code formatting.
264 * MergeFailedEventArgs.cs: Corcomare fixes and code formatting.
265 * InvalidExpressionException.cs: Corcompare fixes and code formatting.
266 * DBConcurrencyException.cs: Corcompare fixes and code formatting.
267 * DataRowView.cs: Corcompare fixes and code formatting.
268 * DataViewManager.cs: Corcompare fixes and code formatting.
269 * ConstraintException.cs: Corcompare fixes and code formatting.
270 * InvalidConstraintException.cs: Corcompare fixes and code formatting.
271 * IDataRecord.cs: Corcompare fixes.
272 * RowNotInTableException.cs: Corcompare fixes and code formatting.
273 * TypeDataSetGeneratorException.cs: Corcompare fixes and code
275 * InRowChangingEventException.cs: Corcompare fixes and code formatting.
276 * NoNullAllowedException.cs: Corcompare fixes and code formatting.
277 * DataException.cs: Corcompare fixes and code formatting.
279 2008-03-17 Veerapuram Varadhan <vvaradhan@novell.com>
281 ** Fixes part1 of #357947
282 * DataView.cs: (OnRowDeleted): Don't call update, instead delete the row
283 directly from Index. Peformance fix submitted by Hubert FONGARNAND
284 <informatique.internet@fiducial.fr>.
286 2008-02-04 Arina Itkes <arinai@mainsoft.com>
288 * DataTable.cs: Fix for IXmlSerializable.ReadXml.
290 2008-01-28 Arina Itkes <arinai@mainsoft.com>
292 * DataTable.cs: Fix for IXmlSerializable.WriteXml.
294 2007-10-21 Gert Driesen <drieseng@users.sourceforge.net>
296 * DataColumn.cs: Fixed ParamName of ArgumentNullException. Modified
297 exception message for invalid DateTimeMode value to match MS. Code
300 2007-10-19 Nagappan <anagappan@novell.com>
302 * DataRelation.cs: Removed bogus TODO.
304 2007-09-27 Nagappan A <anagappan@novell.com>
306 * DataRelationCollection.cs: Added LAME spec comment as there is no
307 relevant event. Removed MonoTODO too.
309 2007-09-26 Nagappan A <anagappan@novell.com>
311 * DataView.cs (ToTable): Added params keyword.
313 * DataTable.cs: Added XmlSchemaProvider attribute.
315 2007-09-25 Konstantin Triger <kostat@mainsoft.com>
317 * DataSet.cs: correct WriteAttributeString while writing xml with
318 XmlWriteMode.WriteSchema.
320 2007-09-25 Nagappan A <anagappan@novell.com>
322 * DataTable.cs: Code alignment.
324 2007-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
326 * DataColumnCollection.cs: refactoring, fixed columnNameCount comparer
327 to remove culture sensitive ToLower() calls
329 2007-07-22 Nagappan A <anagappan@novell.com>
331 * DataRow.cs: Added internal set property for Table in 2.0
334 * DataColumn.cs: Added internal set property for Table in 2.0
337 2007-07-01 Gert Driesen <drieseng@users.sourceforge.net>
339 * DataRowCollection.cs: Only override Count on 2.0 profile.
340 * RelatedDataView.cs: Fixed line endings.
341 * XmlDataInferenceLoader.cs: Fixed line endings.
343 2007-06-30 Gert Driesen <drieseng@users.sourceforge.net>
345 * DataTableCollection.cs: CopyTo is 2.0 only. Removed extra tabs,
346 and changed spaces to tabs.
348 2007-06-06 Nagappan A <anagappan@novell.com>
350 * DataTable.cs (Select): Removed ununsed variable.
352 2007-05-30 Nagappan A <anagappan@novell.com>
354 * DataColumnCollection.cs (CopyTo): Method specific to 2.0
357 * DataRowCollection.cs (Count): Property is overridden in 2.0
360 * TypedDataSetGenerator.cs: Class is obsolete in 2.0 profile.
362 * DataRelationCollection.cs (CopyTo): Method specific to 2.0
365 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
367 * CustomDataClassGenerator.cs: Misc fixes in order to emit correct VB code.
368 CreateDataSetDefaultCtor: we're creating a delegate, not an object, so use a DelegateCreateExpression.
369 CreateDataSetSchemaChanged: we're comparing value types, use the correct equality operator.
370 CreateTableGetEnumerator: explicity state that the method is an implementation of IEnumerable.GetEnumerator.
371 CreateTableEventStarter: we're invoking a delegate, so use a DelegateInvokeExpression.
372 Several changes to not generate members with names that only differ by case.
374 2007-05-18 Chris Toshok <toshok@ximian.com>
376 * DataColumnCollection.cs (Add ()): handle the default name case
378 (Add (string)): same - let Add(DataColumn) handle the default name
380 (Add (DataColumn)): in the 1.1 case, we need to add the column's
381 PropertyChanged handler *before* possibly setting the column name
382 to the default so we emit the right events (Changed/Added). In
383 the 2.0 case, we add the event handler after the name is set, and
384 therefore only emit the Added event.
386 2007-05-07 Adar Wesley <adarw@mainsoft.com>
388 * ConstraintCollection.cs: added CopyTo method with strongly typed Constraint[]
391 * DataTable.cs: added implementation of IXmlSerializable. Added missing
392 method ReadXmlSerializable.
394 2007-04-19 Chris Toshok <toshok@ximian.com>
396 * DataColumnCollection.cs (Add): the Element in our
397 CollectionChangedEventArgs should be the column, not the
398 collection. Also, add an event handler for the column's
399 PropertyChanged event so we can propagate metadata changes.
400 (Remove): Analogous change to the CollectionChangedEventArgs as in
401 Add. Also, unhook the column's PropertyChanged event.
402 (OnCollectionmetaDataChanged): emit our new event.
403 (ColumnPropertyChanged): called when the column's ColumnName
404 property changes. Emit the proper CollectionChangeEvent.
406 * DataView.cs (ColumnCollectionChanged): fix up the comment about
407 CollectionChangeAction.Refresh, and make explicit what generates
409 (RegisterEventHandlers): hook up
410 DataColumnCollectoin.CollectionMetaDataChanged.
411 (RegisterEventHandlers): unhook
412 DataColumnCollectoin.CollectionMetaDataChanged.
414 2007-02-23 Nagappan A <anagappan@novell.com>
416 * DataRow.cs (Item): Checks whether this DataRow exist in the
417 DataRowCollection, then compute the expression. Fixes bug #
420 * DataRowCollection.cs (IndexOf): Modified as internal method for
423 * XmlDataReader.cs (StringToObject): DataTables containing
424 System.Type throw exception on deserializing. Fixes bug # 80596.
426 * XmlDataLoader.cs (StringToObject): DataTables containing
427 System.Type throw exception on deserializing. Fixes bug # 80596.
429 2007-02-20 Konstantin Triger <kostat@mainsoft.com>
431 * XmlSchemaDataImporter.cs: ensure the tables are created in document order.
433 2007-02-19 Konstantin Triger <kostat@mainsoft.com>
435 * XmlDataReader.cs, XmlDataInferenceLoader.cs, XmlDiffLoader.cs:
436 ignore attributes from "http://www.w3.org/XML/1998/namespace".
437 * XmlConstants.cs: add constant for "http://www.w3.org/XML/1998/namespace".
438 * XmlDataInferenceLoader.cs: track the added elements index to fix the
439 added column ordinal.
441 2006-12-11 Chris Toshok <toshok@ximian.com>
443 * DataView.cs: GetItemProperties should return an empty collection
444 if we have no data table. Presently we NRE.
446 2006-12-08 Nagappan A <anagappan@novell.com>
448 * DataTable.cs (ReadXml): Removed if condition, as it should not
449 check the exception string.
451 2006-12-07 Chris Toshok <toshok@ximian.com>
453 * DataView.cs: add CollectionChangeEventHandler's on the
454 ChildRelations and ParentRelations collections, and emit
455 ListChanged events with PropertyDescriptor.Added/Deleted/Changed
458 2006-12-07 Nagappan A <anagappan@novell.com>
460 * DataTable.cs (ReadXml): Integrated the implementation of
461 ReadXml, patch provided by deepak_2603@yahoo.com.
463 2006-12-05 Nagappan A <anagappan@novell.com>
465 * DataTable.cs (WriteXmlSchema): Using XmlTextWriter instead of
466 XmlWriter, solved the File Sharing IO Exception.
468 2006-11-28 Hubert FONGARNAND, FrAcdAcric Mestayer <informatique.internet@fiducial.fr>
470 * DataColumnCollection.cs : Improved Column searching when not
471 using exact column name (case sensitivity). Fixes bug # 80075.
473 2006-11-28 Nagappan A <anagappan@novell.com>
475 * XmlSchemaDataImporter.cs: Fixed 2.0 profile compilation
476 warnings. Using AttributeSchemaType instead of AttributeType and
477 ElementSchemaType instead of ElementType.
479 * TypedDataSetGenerator.cs: Modified the profile check from
480 !NET_1_1 to !NET_1_0, as this class is obsolete from 1.1 profile.
482 * DataRelationCollection.cs (Item): Modified the property Item as
483 abstract and implemented it in DataSetRelationCollection and
484 DataTableRelationCollection classes.
486 * DataRowView.cs: Remove bogus MonoTODOs.
488 * ForeignKeyConstraint.cs (ForeignKeyConstraint): Implemented
489 2.0 profile's missing constructor.
491 * XmlDataLoader.cs (StringToObject): Modify XmlConvert.ToDateTime
492 to use XmlDateTimeSerializationMode, as the default ToDataTime
495 * XmlDataReader.cs (StringToObject): Modify XmlConvert.ToDateTime
496 to use XmlDateTimeSerializationMode, as the default ToDataTime
499 * DataView.cs (IsInitialized): Added browsable attribute.
501 * DataViewSettingCollection.cs (CopyTo): Implemented missing 2.0
504 * DataRelation.cs (DataRelation): Added 2.0 profile constructor to
505 take parentTableNameSpace and childTableNameSpace as argument.
506 (FinishInit): Update parentTableNameSpace and childTableNameSpace,
507 when the string is not empty in 2.0 profile.
509 * DataRowCollection.cs: Implemented Count public property.
510 Added !NET_2_0 for List protected property, as it has been removed
512 (IndexOf): Implemented new public method.
513 (CopyTo): Implemented new public override method.
514 (GetEnumerator): Implemented new public override method.
516 * DataTable.cs (Load): Throw ArgumentNullException, when reader
518 (WriteXmlSchema): Throw InvalidOperationException, when table name
519 is empty. When DataSet Namespace is set, append that with '_x003A_'
521 (IsInitialized): Added browsable attribute.
523 * DataSet.cs (Load): Throw ArgumentNullException, when reader
525 (IsInitialized): Added browsable attribute.
526 (WriteObjectXml): Modify XmlConvert.ToDateTime to use
527 XmlDateTimeSerializationMode, as the default ToDataTime method id
530 * XmlSchemaWriter.cs (WriteSchema): Modified UseCurrentCulture to
532 (WriteDataSetElement): Added minOccurs attribute.
533 (WriteConstraints): Check for tables length, if > 1 then add the
534 relations to XmlSchema.
536 2006-11-21 Nagappan A <anagappan@novell.com>
538 * DataView.cs: Added public event Initialized.
539 (IsInitialized): Implemented public function to check whether a
540 dataview is initialized or not.
542 * DataSet.cs: Added ISupportInitializeNotification for .NET 2.0
544 (RemotingFormat): Set the default value attribute as
545 SerializationFormat.Xml.
546 (IsInitialized): Implemented public function to check whether a
547 table is initialized or not.
548 (CreateDataReader): Added params keyword in argument.
549 (Load): Implemented all Load overloaded functions.
550 (GetObjectData): Modified to public for .NET 2.0 implementation.
551 (IsBinarySerialized): Implemented the public API to check whether
552 the given stream is binary serialized or not.
553 * DataTable.cs: Added ISupportInitializeNotification for .NET 2.0
556 2006-11-15 Nagappan A <anagappan@novell.com>
558 * DataTable.cs (RemotingFormat): Set the default value attribute
559 as SerializationFormat.Xml.
560 (OnTableNewRow, NewRowAdded): Implemented new function to raise an
561 event when a new row is added to the table.
562 (DataTableInitialized, OnTableInitialized): Implemented new
563 function to raise an event when a table is initialized.
564 (IsInitialized): Implemented public function to check whether a
565 table is initialized or not.
566 (OnTableClearing): Raise an event before the table is cleared.
567 (GetObjectData): Modified to public for .NET 2.0 implementation.
568 (Load): Implemented missing API to call the registered delegate
569 function on load exception.
570 (WriteXmlSchema): Implemented overloaded function to write the
571 hierarchy with XML Schema.
573 2006-11-15 Konstantin Triger <kostat@mainsoft.com>
575 * DataTable.cs: Fixed LoadDataRow scenarios.
576 * DataRowCollection.cs: Added override for AddInternal taking DataRowAction parameter.
578 2006-11-14 Konstantin Triger <kostat@mainsoft.com>
580 * DataColumn.cs: consider row version wen checking row.IsNull().
582 2006-10-18 Nagappan A <anagappan@novell.com>
584 * ForeignKeyConstraint.cs (_validateColumns): Parent and child
585 columns can't be the same column - Exception, bug # 79689
587 2006-10-13 Nagappan A <anagappan@novell.com>
589 * DataTable.cs (DeserializeConstraints): Fine tuned the
590 serialization and deserialization of constraints.
592 * DataRelationCollection.cs (Contains): Fixes bug
593 #79233. DuplicateNameException when two relations for different
594 DataTables in DataSet are defined
596 2006-10-06 Patrick Earl <mono@patearl.net>
598 * DataTable.cs, XmlTableWriter.cs, XmlSchemaWriter.cs, DataSet.cs:
599 Implemented DataTable.WriteXml
601 2006-09-26 Nagappan A <anagappan@novell.com>
603 * DataTable.cs, DataSet.cs, DataColumn.cs, Constraint.cs,
604 DataRow.cs: Implementation of Binary Serialization /
607 * DataTable.cs (RowsExist): Check rows based on version.
609 * DataRow.cs: Raise exception same as MS.NET. Thanks to
610 Hubert FONGARNAND <informatique.internet@fiducial.fr> for
611 providing this patch.
613 2006-09-07 Vladimir Krasnov <vladimirk@mainsoft.com>
615 * DataSet.cs: added 2.0 stubs to solve typed dataset porting issues
617 2006-08-30 Nagappan A <anagappan@novell.com>
619 * DataRow.cs (EndEdit): DataRow.EndEdit emits RowChanged too
620 often. Fixes bug # 78885.
622 2006-08-14 Konstantin Triger <kostat@mainsoft.com>
624 * DataTableCollection.cs, DataRelationCollection.cs, DataRowCollection.cs,
625 DataColumnCollection.cs: implemented specialized CopyTo() method.
627 2006-07-26 Nagappan A <anagappan@novell.com>
629 * DataTable.cs (GetIndex): Fixes memory explode on
630 DataTable.Select - Bug # 77691.
632 2006-07-25 Nagappan A <anagappan@novell.com>
634 * DataView.cs (OnRowCollectionChanged): On DataTable.Clear,
635 setting rowCache to empty DataRowView. Fixes bug # 78610.
637 * DataTable.cs (AcceptChanges): Raises Reset event. Fixes bug #
640 2006-07-20 Senganal T <tsenganal@novell.com>
643 - Merge : moved the columntypecheck to AdjustSchema,
644 Remove the unncessary calls to Table.ResetIndexes.
645 - AdjustSchema : check for columntypes
646 Thanks to Deepak Kr Valechha for the patch
648 2006-07-17 Senganal T <tsenganal@novell.com>
651 - ToTable : Implemented all the overloads
652 - Equals : Implemented
653 - IBindingListView : Implemented the interface
655 2006-07-15 Senganal T <tsenganal@novell.com>
657 * DataTableCollection.cs :
658 - Contain,IndexOf,Remove,Add,Indexer : support for table
659 namespace. Remove redundant checks in Remove/Add.
661 2006-07-14 Senganal T <tsenganal@novell.com>
664 - SetOrdinal : Implemented
665 - Ordinal : added internal set
666 * DataColumnCollection.cs :
667 - Add : Set the column ordinals
668 - MoveColumn : Changes the position of column in the
671 2006-07-14 Senganal T <tsenganal@novell.com>
674 - Merge - Implement the merge methods
675 - Clone - Ensure column's DateTimeMode property is also copied
677 - DateTimeMode : Implemement
678 - DataTypeMatches : Added. In 2.0 profile, test DateTime
679 property when verifying column types.
681 - ctr : For DateTime columns, check DateTimeMode property
682 * ForeignKeyConstraint.cs :
683 - _validateColumns : For DateTime columns, check DateTimeMode
686 - Merge : Added. Overload to merge two tables
687 - ResolveColumns : Change the method to use a table instead of
689 - Renamed AdjustSchema to AdjustSchemaRelations
691 2006-07-13 Senganal T <tsenganal@novell.com>
694 - WriteTables : Remove some commented out code
695 - WriteTable : Fix the logic to skip the table data when the
696 table has a nested relation.
699 2006-07-12 Senganal T <tsenganal@novell.com>
701 * ConstraintCollection.cs :
702 - Remove (string): If constraint name is not found, throw exception
703 - Remove (Constraint): Set the ConstraintCollection of the removed
705 Thanks to Deepak Kr Velachha for reporting the bug.
707 2006-07-12 Senganal T <tsenganal@novell.com>
710 - LoadColumnChildren : If schema name is missing, skip the
712 Thanks to Deepak Kr Velachha for identifying the bug.
714 2006-07-11 Senganal T <tsenganal@novell.com>
716 * XmlSchemaWriter.cs :
717 - WriteTableType : If Relation.Nested is true, then nest the
718 table schemas. Correct the xml to add the table element within
719 the <Sequence> element.
720 - WriteChildRelations : Correct the Xml element name and
721 attributes. Close the attribute correctly.
723 * XmlSchemaDataImporter.cs :
724 - GenerateRelationship : When creating the relations, if
725 ParentColumn exists but Corr ChildCol is null, create a child
726 Column with the same name and type as the parent column.
727 - Renamed DataSetDefinesPrimaryKey to DataSetDefinesKey
728 - DataSetDefinesKey : if either xsd:key or xsd:keyref is
729 defined for the dataset, do not manually create the relations.
730 - AddParentKeyColumn : if Columnname already exists, use
731 colname_0 instead of throwing an exception.
732 - FillDataColumnRepeatedSimpleElement : Do not set the Unique
733 value as it creates a constraint by default. The unique value
734 is automatically set when pk is set.
735 - CreateChildColumns : Added. Creates a ChildColumn duplicating
736 ParentColumn properties.
738 2006-06-30 Senganal T <tsenganal@novell.com>
741 - SetAdded, SetModified : new methods in 2.0
743 2006-06-30 Senganal T <tsenganal@novell.com>
744 * SerializationFormat.cs, DataSetDateTime.cs, DataTableNewRowEventArgs.cs,
745 DataTableNewRowEventHandler.cs : Added
746 * SyntaxErrorException.cs EvaluateException.cs StrongTypingException.cs
747 IsolationLevel.cs ReadOnlyException.cs DataTableCollection.cs
748 DataRowState.cs MissingPrimaryKeyException.cs DeletedRowInaccessibleException.cs
749 DuplicateNameException.cs PropertyAttributes.cs StatementType.cs
750 VersionNotFoundException.cs FillErrorEventHandler.cs DataRowChangeEventHandler.cs
751 XmlWriteMode.cs InvalidExpressionException.cs StateChangeEventHandler.cs
752 DbType.cs DataColumnChangeEventHandler.cs KeyRestrictionBehavior.cs
753 ConnectionState.cs SchemaType.cs MergeFailedEventHandler.cs SqlDbType.cs
754 DataRowVersion.cs ForeignKeyConstraint.cs DBConcurrencyException.cs
755 OperationAbortedException.cs MissingSchemaAction.cs DataTableClearEventHandler.cs
756 DataRowView.cs DataRowAction.cs ConstraintCollection.cs DataTableReader.cs
757 LoadOption.cs InvalidConstraintException.cs InternalDataCollectionBase.cs
758 ParameterDirection.cs AcceptRejectRule.cs UpdateRowSource.cs XmlReadMode.cs
759 TypedDataSetGenerator.cs RowNotInTableException.cs TypeDataSetGeneratorException.cs
760 InRowChangingEventException.cs MissingMappingAction.cs NoNullAllowedException.cs
761 CommandBehavior.cs PropertyCollection.cs CommandType.cs
762 UpdateStatus.cs ConflictOption.cs DataViewRowState.cs Rule.cs
763 DataColumnCollection.cs :
766 2006-06-27 Senganal T <tsenganal@novell.com>
768 * DataSet.cs, DataTable.cs : implement CreateDataReader methods
769 * InternalDataCollectionBase.cs
770 - ToArray () : helper method
771 * DataTableReader.cs :
772 - GetSchemaTable : set the schema info correctly
773 - GetProvider*, GetChars, GetBytes, GetValues :
774 Implemented the methods
775 - GetName : return the name of corresponding schema.
776 - ValidateSchemaIntact, OnColumnCollectionChanged,
778 Listen and raise expception if schema changes
780 2006-06-21 Chris Toshok <toshok@ximian.com>
782 * DataView.cs: update the index after we successfully add the new
783 row. This keeps the dataview's row view count in sync with the
786 2006-06-20 Chris Toshok <toshok@ximian.com>
788 * DataView.cs: the PropertyDescriptorCollection returned by
789 ITyepdList.GetItemProperties should include the child relations of
790 our table, in order to match MS's behavior.
792 * DataViewManager.cs: ICollection.Count property is always 1.
794 2006-06-15 Senganal T <tsenganal@novell.com>
797 - Select : If Sort String is not provided, sort the result
798 DataRows in Ascending Order of the Columns used in the filter
800 2006-06-15 Senganal T <tsenganal@novell.com>
803 - InternalEnforceConstraints : Check if any null constraints
804 are violated. Throw ConstraintException only after all the errors
807 - EnforceConstraints : Move away the logic to check for
808 NullConstraintViolation.
809 - AssertNotNullConstraint : Checks for Null Constraint
811 - EndLoadData : Do not throw any exceptions here. All the
812 errors have to be found and RowErrors set before throwing the
815 - ImportRecrod : Check the values of the row for any null
817 - SetColumnError : If the error for column is already set,
818 do not add a new error but edit the existing error.
819 - CheckValue : Set the NullConstraintViolation flag if either
820 table is being loaded or if EnforceConstraints is set to
822 * Constraint.cs : Do not throw exception when EnforceConstraints is
823 set to false or table is being loaded.
824 * UniqueConstraint.cs : Correct the error message. Set ColumnErrors
825 along with the RowError.
827 2006-05-31 Gert Driesen <drieseng@users.sourceforge.net>
829 * DataTable.cs: Renamed initInProgress to fInitInProgress. BeginInit
830 and EndInit must only be virtual in 2.0 profile. Set eol-style to CRLF.
832 2006-05-31 Senganal T <tsenganal@novell.com>
834 * XmlDataInferenceLoader.cs :
835 - InferTableElement : Repeated element should result in a single
837 Patch from Deepak Kr Velachha
839 2006-04-21 Senganal T <tsenganal@novell.com>
841 * DataRowCollection.cs :
842 - Find : If search on the table using PrimaryKey fails and if
843 index is not being maintained (during table load), search the
845 - Find (int) : Removed. Deadcode.
847 - Not necessary to delete each row from the Index.
848 Just reset the Indexes after cleaning up the row
850 - Simplify dependency check for child tables
853 - Do not use DataRowCollection.Find to search for
854 existing records as this wud check even newly loaded rows.
856 - Do not add new records to Index. Update Index only
857 if an existing record is modified. New records will be
858 taken care by EndLoadData.
860 2006-04-19 Senganal T <tsenganal@novell.com>
862 * XmlHelper.cs : A helper class for encoding/decoding schema names.
863 Caches the Schema names to minimize encoding/decoding operations and
864 duplicate strings created.
866 - Use XmlHelper for encoding/decoding schema names.
867 - Encode ConstraintNames when writing as xml.
870 * XmlDataInferenceLoader.cs
871 * XmlSchemaDataImporter.cs
872 - Use XmlHelper for encoding/decoding schema names.
873 * DataTableCollections : Minor code refactor.
874 * DataRow.cs : Create XmlElement only if required.
876 2006-04-07 Senganal T <tsenganal@novell.com>
879 - InternalEnforceConstraints() : Reset Indexes of all tables
880 before validating constraints. Fixes #78010
882 2006-03-04 Boris Kirzner <borisk@mainsoft.com>
883 * TypeDataSetGeneratorException.cs: fix .Net Soap serialization compatibility.
885 2006-03-25 Senganal T <tsenganal@novell.com>
888 - RejectChanges : When row is in Deleted state, add the row back to
889 Indexes and Validate the row.
892 2006-03-23 Senganal T <tsenganal@novell.com>
895 - LoadDataRow : Add the row to the indexes, when loading a new row.
897 2006-03-22 Senganal T <tsenganal@novell.com>
900 - PrimaryKey : Set the IsPrimaryKey attribute before Removing from collection.
901 - RemoveUniqueConstraints : Removed. dead code.
904 - If adding/removing constraint fails, retain Unique value
905 - Remove redundant code
906 * UniqueConstraint.cs :
907 - SetIsPrimaryKey : Added. Sets the value of IsPrimaryKey.
908 - RemoveFromConstraintCollectionCleanup : If constraint is on a single column, then
909 set Unique for that column to false.
910 - CanRemoveFromCollection : Do not remove constraint, if its a PrimaryKey
912 2006-03-20 Senganal T <tsenganal@novell.com>
915 - CopyRelations () : When copying the relation, do not add constraints
916 automatically for the relation.
917 - OnMergeFailed () : If merge fails and no handler is set for the MergeFailedEvent,
918 then throw DataException
919 * ConstraintCollection.cs :
920 - Add () : Check if a constraint already exists on the Columns that are being
922 - IndexOf () : Do not check for equivalent constraints, check for the exact instance.
923 * MergeManager.cs ():
925 - Handle the MissingSchemaAction.Error case,
926 - Do not create constraints when mergin the DataRelation
927 - Follow the semantics for schema merge/validation when constraints are already present
928 in the target DataSet.
929 - AdjustPrimaryKeys () :
931 - Verify Order of Columns in the PrimaryKey when merging.
932 - ResolveColumns : Changed the arument to DataSet. Simplifies code elsewhere.
933 - CompareColumnArrays, CompareColumnArrays : Helper funtions.
935 2006-03-09 Senganal T <tsenganal@novell.com>
938 - RejectChanges () : Add the row to index, if it was in deleted state and
939 Update the index if in Modified State.
940 - AcceptChanges () : Do not update the Indexes.
941 - EndEdit () : Update the indexes even if BeginLoadData has been called
942 on the table. Ideally, indexes should not be maintained during DataLoad,
943 but this needs to handled in multiple places correctly. For now, just maintain
944 the index to ensure correct operation.
946 2006-03-05 Senganal T <tsenganal@novell.com>
949 - BeginInit (), EndInit () : Implemented methods
950 - InitInProgress : Added.
952 - EndInit () : Move the adding of columns and constraints
954 - FinishInit () : Added. Adds the Constraints and Columns
956 - InitInProgress : Added.
958 - FinishInit () : Added. Virtual method
959 - InitInProgress : Added. Virtual property
960 * UniqueConstraint.cs
961 * ForeignKeyConstraint.cs
962 - FinishInit () : Added.
963 - InitInProgress : Added.
964 - DataColsNotValidated : Removed.
965 * ConstraintCollection.cs
966 - PostAddRange : Removed event
967 - PostEndEdit () : Renamed to PostAddRange
968 - Add () : Simplified the testing if constraint is initialized
969 - AddRange () : Simplified initializing the constraints
970 * DataTableCollection.cs
971 - PostAddRange () : Added. Adds the tables to the collection
972 * DataColumnColletion.cs
973 - PostEndInit () : Renamed to PostAddRange.Also, add column to
974 the collection only if not null.
976 Added/Implemented methods for design time support. Renamed some methods for consistency
977 in naming across classes for methods serving the same purpose.
979 2006-02-24 Senganal T <tsenganal@novell.com>
981 * UniqueConstraint.cs :
982 - ChildConstraint : Added. Simplifies verifying if constraints are
984 - CanRemoveFromCollection : Fixed the check to verify if constraints is
985 linked to a ForeignKeyConstraint. Fixes #77630
986 * ForeignKeyConstraint.cs :
987 - _validateRemoveParentConstraint : Removed. Not used anymore
988 - ParentConstraint : Added. Simplifies verifying if constraints are
990 2006-02-22 Senganal T <tsenganal@novell.com>
993 - RejectChanges : Do not remove Row from Indexes when state is Deleted.
994 - CheckChildRows : When checking for the ChildRows, use the current value
995 and not the original value.
997 2006-02-18 Atsushi Enomoto <atsushi@ximian.com>
999 * CustomDataClassGenerator.cs : Patch by Marek Habersack. xsd now
1000 outputs AutoIncrement, AutoIncrementSeed, AutoIncrementStep and
1001 ReadOnly properties. This fixes bug #77576.
1003 2006-02-17 Chris Toshok <toshok@ximian.com>
1005 * System.Data/DataSet.cs, System.Data/DataView.cs,
1006 System.Data/ForeignKeyConstraint.cs,
1007 System.Data/DataViewManager.cs, System.Data/DataRow.cs,
1008 System.Data/DataSysDescriptionAttribute.cs,
1009 System.Data/UniqueConstraint.cs, System.Data/DataTable.cs,
1010 System.Data/DataRelation.cs: lots of attribute work, removing
1011 DataSysDescription atributes (and marking the class obsolete) for
1014 2006-02-17 Chris Toshok <toshok@ximian.com>
1016 * DataAdapterException.cs: remove this file.
1018 2006-02-17 Chris Toshok <toshok@ximian.com>
1020 * DataTableReader.cs: Switch to the (bool) form of Dispose to
1021 override, as the no-arg form isn't virtual.
1023 * Constraint.cs: #ifdef out more DataSysDescriptions.
1025 * ConstraintException.cs: add ..ctor (string, Exception) for 2.0.
1027 2006-02-17 Chris Toshok <toshok@ximian.com>
1029 * DataColumn.cs: #ifdef all the DataSysDescriptions !NET_2_0.
1031 * AdapterMappingException.cs: nuke this file.
1033 * IDbAsyncConnection.cs, IDbAsyncCommand.cs, IGetTypedData.cs,
1034 ISetTypedData.cs, IDataReader2.cs, IDataSources.cs,
1035 IDbExecutionContext.cs, IDataRecord2.cs, IDataUpdatableRecord.cs:
1036 remove these 2.0 files.
1038 2006-02-17 Chris Toshok <toshok@ximian.com>
1040 * ConstraintCollection.cs: in 2.0, class is not serializable and
1041 is sealed. make all the "virtuals" #if !NET_2_0 as well.
1043 * Constraint.cs: not serializable in 2.0.
1045 * DataColumnCollection.cs: in 2.0, class is not serializable and
1046 is sealed. make all the "virtuals" #if !NET_2_0 as well.
1048 * DataRelationCollection.cs: not serializable in 2.0.
1050 * DataRelation.cs: not serializable in 2.0.
1052 * DataRowBuilder.cs: class is sealed in 2.0.
1054 * DataRowCollection.cs: in 2.0, class is not serialized and is
1055 sealed. Also, Add isn't virtual in 2.0 (as the class is sealed).
1057 * DataRow.cs: not serializable in 2.0.
1059 * DataSet.cs: remove some DataSysDescriptions from the 2.0 build,
1060 and s/GetDataReader/CreateDataReader.
1062 * DataTableCollection.cs: in 2.0, class is not serializable and is
1063 sealed. make all the "virtuals" #if !NET_2_0 as well.
1065 * DataTableReader.cs: remove VisibleFieldCount property.
1067 * DataViewSettingCollection.cs: not serializable in 2.0.
1069 * DataViewSetting.cs: not serializable in 2.0.
1071 * ForeignKeyConstraint.cs: serializable in 2.0.
1073 * OperationAbortedException.cs: class is sealed and serializable.
1075 * PropertyCollection.cs: serializable in 2.0.
1077 * StatementCompletedEventArgs.cs: class is sealed.
1079 * UniqueConstraint.cs: not serializable in 2.0.
1081 2006-02-16 Senganal T <tsenganal@novell.com>
1084 WriteDataSetElement : Add an annotation element if exists.
1085 WriteDataRelationAnnotation : New. Write a DataRelation as an annotation.
1086 WriteConstraints : Write ForeignKeyConstraint even when not associated with
1087 a DataRelation and add a "ConstraintOnly=true" attribute for such constraints.
1088 * XmlConstants.cs : Add a new constant - ConstraintOnly
1089 * XmlSchemaImporter.cs :
1090 - ConstraintStructure : Add field ,IsConstraintOnly, to distinguish if a foreignkeyconstraint
1091 is related to relation or not.
1092 - GenerateRelation : Handle the case when parentkey and childkey contain multiple columnnames.
1094 2006-02-11 Senganal T <tsenganal@novell.com>
1096 * UniqueConstraint.cs :
1097 - PostAddRange : Check PrimaryKey is not already set for the table
1099 - PrimaryKey : follow ms.net behavior when BeginInit , EndInit is used.
1100 - Add new priamry key only when EndInit is called.
1101 - Incase of an error, retain old primarykey
1103 - Add Constraints after columns are added.
1104 - If both PrimaryKey Property and PrimaryKey Constraint are set,
1105 then the Constraint takes precedence.
1108 2006-02-03 Senganal T <tsenganal@novell.com>
1110 * DataTableCollection.cs :
1111 - Remove () : Check for invalid TableName
1112 - Add () : Verify the table doesn't belong to another dataset
1114 - CompleteLastAdded () : Do not raise ItemAdded Event as it is
1115 already raised in AddNew().
1117 - Expression : Verify that the Column names in the expression are valid
1118 - ResetCollectionInfo : Renamed to ResetColumnInfo
1120 - RejectChanges () : Reorganized the code to do the Right thing.
1121 - Item : Dont check for detached and deleted rows as these are
1123 * DataRowCollection.cs :
1124 - Add () : Check for null value
1126 - PrimaryKey : Set AllowDBNull=false for all the key columns
1127 - ImportRow : Import the row only if it is not in Detached state. if in Deleted
1128 state, perform the validation when AcceptChanges/RejectChanges is called.
1129 * DataColumnCollection.cs :
1130 - Add : Validate the column expression before adding it to the collection.
1131 - GetColumnDependency () : New. Get the dependencies on the column
1132 - CanRemove : Move checks to GetColumnDependency
1133 - Clear () : Simplified code. Remove unncessary checks.Also, dont check Expression col.
1134 - IndexOf - Check argument.
1135 Overall , appropriate error msg's are thrown if Remove/Clear fails. Removed a few
1136 redundant checks performed and moved the common code to GetColumnDependency.
1138 2006-01-31 Senganal T <tsenganal@novell.com>
1140 * DataSet.cs : Modified CopyRelations ()
1141 - Added code to copy ForeignKeyConstraints. Fixes #77411.
1143 2006-01-18 Boris Kirzner <borisk@mainsoft.com>
1144 * DataColumn.cs: added PropertyCchangedEvent handling.
1146 2006-01-17 Senganal T <tsenganal@novell.com>
1149 ItemArray : Modified to raise RowInTableException only if
1150 the concerned row has been removed from the table.Fixes
1153 2006-01-16 Boris Kirzner <borisk@mainsoft.com>
1154 * DataTable.cs: Drop dependend indexes on column removal.
1156 2006-01-16 Atsushi Enomoto <atsushi@ximian.com>
1158 * CustomDataClassGenerator.cs :
1159 When a DataRelation connects the same table as parent and child,
1160 generate parent row property as BlahRowParent. Fixed bug #77248.
1162 2006-01-10 Senganal T <tsenganal@novell.com>
1163 * DataRowCollection.cs
1164 - Added ListChangedEvent to notify reset of the collection.
1166 - Subscribes to the ListChangedEvent of DataRowCollection
1169 2006-01-09 Senganal T <tsenganal@novell.com>
1170 * RelatedDataView.cs
1172 - Resolving a name clash in IExpression
1174 2006-01-06 Senganal T <tsenganal@novell.com>
1177 * DataColumnCollection.cs
1178 - Reset the Parameters of DataColumn to Default Values when
1179 column is removed from the Table's Collection
1181 2006-01-03 Senganal T <tsenganal@novell.com>
1184 - ParseSortString() : Changed the way the sort string is parsed.
1185 Using a regex to parse the string.Fixes bug #77104
1187 2005-12-12 Konstantin Triger <kostat@mainsoft.com>
1189 * DataRow.cs: Added index Updates.
1190 EndEdit() fixed to first update indices and then AssertConstraints
1191 based on those indices.
1192 Added Validate() and AssertConstraints() functions.
1193 * DataRowCollection.cs: Removed ValidateDataRowInternal().
1194 * DataTable: Fixed Clear().
1196 2005-12-06 Atsushi Enomoto <atsushi@ximian.com>
1198 * CustomDataClassGenerator.cs : (InitializeFields) handle AllowDBNull
1199 and DefaultValue as well. Patch by Marek Habersack (bug #76709).
1201 2005-12-01 Miguel de Icaza <miguel@novell.com>
1203 * DataSet.cs: Apply patch from Robert Jordan, to fix #76817
1205 2005-11-26 Konstantin Triger <kostat@mainsoft.com>
1207 * ConflictOption.cs: TARGET_JVM include.
1209 2005-11-11 Senganal T <tsenganal@novell.com>
1211 * ConflictOption.cs (new file)
1212 - Added ConflictOption Enumeration
1213 * DataTableReader.cs
1215 - GetProviderSpecificFieldType : Corrected the method name
1217 2005-11-11 Senganal T <tsenganal@novell.com>
1219 * DataSet.cs : Added the SchemaSerializationMode Property for NET_2_0
1221 * SchemaSerializationMode.cs : Added SchemaSerializationMode Enumeration
1222 for NET_2_0 compatibility.
1226 2005-10-20 Atsushi Enomoto <atsushi@ximian.com>
1228 * XmlSchemaWriter.cs : escape names in the schema with XmlConvert.
1231 2005-10-14 Sureshkumar T <tsureshkumar@novell.com>
1233 * DataView.cs: Correct multiple throwing of events. Patch from
1235 (RowStateFilter): Fire ListChangedEvent.
1236 (ApplyDefaultSort): Fire ListChangedEvent.
1237 (CompleteLastAdded): call UpdateIndex to remove the row from rowCache.
1238 (IBindingList.Find): Implemented.
1240 2005-10-11 Sureshkumar T <tsureshkumar@novell.com>
1242 * DataView.cs (IBindingList): Implemented methods for IBindingList interface.
1244 2005-09-26 Lluis Sanchez Gual <lluis@novell.com>
1246 * DataSet.cs: In IXmlSerializable.GetSchema, return null again for
1247 untyped datasets. Fixes bug #76101.
1249 2005-09-21 Boris Kirzner <borisk@mainsoft.com>
1250 * DataRow.cs: Fixes for index updating.
1252 - Reset case-sensitive indexes also if their filter contains columns
1254 - Use GetIndex instead of FindIndex, so the indexes created in Select()
1256 * RelatedDataView.cs: implement IExpression.Equals() and GetHashCode().
1258 2005-09-20 Sureshkumar T <tsureshkumar@novell.com>
1260 * DataView.cs (Sort): Apply default Sorting Order if Sort property
1261 is reset to null. Sort property handles this. Patch from Marc.
1263 * DataTable.cs (ParseSortString): Patch from Marc Haisenko for
1264 allowing [ & ] in DataView.Sort string.
1266 2005-09-01 Boris Kirzner <borisk@mainsoft.com>
1267 * System.Data/DataRowCollection.cs: indexes should be updated even if
1268 EnforceConstraints is false. Check for EnforceConstraints in
1269 ValidateDataRowInternal.
1271 2005-08-08 Gert Driesen <drieseng@users.sourceforge.net>
1273 * DataView.cs: Changed accessibility of dataTable, rowState and
1274 rowCache field to internal to fix public API. Assigned TypeConverter
1276 * ForeignKeyConstraint.cs: IsConstraintViolated is now internal.
1277 * Constraint.cs: IsConstraintViolated is now internal.
1278 * UniqueConstraint.cs: IsConstraintViolated is now internal.
1280 2005-08-05 Atsushi Enomoto <atsushi@ximian.com>
1282 * XmlSchemaDataImporter.cs : When "dataset element" has identity
1283 constraints, then first reserve constraints room for them and then
1284 process elements, skipping pkey creation if there is already
1285 reserved one. Fixed bug #75711.
1287 2005-08-05 Atsushi Enomoto <atsushi@ximian.com>
1289 * XmlDataInferenceLoader.cs : in GetElementMappingType(), don't guess
1290 the same (QNamed) element again when it was already evaluated as
1291 not simple type. Fixed one part of bug #75711.
1293 2005-08-02 Boris Kirzner <borisk@mainsoft.com>
1294 * XmlSchemaDataImporter.cs : Data relations should be processed after the
1295 keys, so no redundant constraints created while relations processing.
1297 2005-07-25 Boris Kirzner <borisk@mainsoft.com>
1298 * FillOptions.cs, ConflictOptions.cs, UpdateOptions.cs:
1299 added ifdef TARGET_JVM.
1301 2005-07-22 Sureshkumar T <tsureshkumar@novell.com>
1303 * DataViewSettingCollection.cs, DataTableCollection.cs,
1304 DataSet.cs, DataView.cs, DataColumn.cs, ForeignKeyConstraint.cs,
1305 DataRelationCollection.cs, UniqueConstraint.cs, DataTable.cs,
1306 DataColumnCollection.cs, DataRelation.cs, DataSet.cs:
1307 - updated attributes & attribute descriptions to match with
1310 * DataView.cs: changed protected members
1311 rowstate,rowcache,dataTable to protected internal.
1312 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint.cs:
1313 changed InConstraintViolated to protected internal.
1314 * ConflictOptions.cs, UpdateOptions.cs, FillOptions.cs: enclosed
1315 with NET_2_0 define.
1317 2005-07-21 Sureshkumar T <tsureshkumar@novell.com>
1319 * ForeignKeyConstraint.cs:
1320 - IsConstraintViolated (): no matter what EnforceConstraints is,
1321 this function now honestly validates. It is upto the caller to run
1323 - AddToConstraintCollectionSetup (): AssertConstraint according to
1326 2005-07-21 Boris Kirzner <borisk@mainsoft.com>
1327 * ForeignKeyConstraint.cs - IsConstraintViolated() should check also for Table.EnforceConstraints.
1328 * DataTable.cs - EnforceConstraints becomes internal so it can be used by ForeignKeyConstraint.
1330 2005-07-19 Sureshkumar T <tsureshkumar@novell.com>
1332 * DataTable.cs - CopyConstraints (): copy constraints only if it
1335 * DataSet.cs - Copy ():
1336 - use activator.CreateInstance to create a typed dataset.
1337 - copy tables if target does not exist, otherwise, just add rows.
1338 - add relation only if it does not exists.
1340 Typed datasets create the constraints & relations through
1341 constructors. Fixes bug #75211.
1343 2005-07-14 Sureshkumar T <tsureshkumar@novell.com>
1345 * DataView.cs: Patch from Marc Haisenko to throw descriptive error
1346 message when accessing Item, with invalid index.
1348 2005-07-14 Sureshkumar T <tsureshkumar@novell.com>
1350 reapplied patch from Marc Haisenko.
1351 * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
1354 2005-07-13 Sureshkumar T <tsureshkumar@novell.com>
1356 * DataRelationCollection.cs: adding a relation with same set of
1357 parent columns & child columns, should not be allowed.
1359 2005-07-08 Sureshkumar T <tsureshkumar@novell.com>
1361 * DataTableReader.cs: GetSchemaTable: DataType column should be
1362 passed a type of Type.
1364 * DataRow.cs: Load : Fired necessary events.
1366 * DataTable.cs: LoadDataRow (object [], LoadOption): Fired
1369 2005-06-28 Sureshkumar T <tsureshkumar@novell.com>
1371 * DataRow.cs: Delete (): if row is detached, do nothing.
1374 2005-06-22 Sureshkumar T <tsureshkumar@novell.com>
1376 * DataRow.cs: Added method MergeValuesToRow copy merge two rows
1377 according to the merge rules.
1379 * MergeManager.cs: (MergeRow): use MergeValuesToRow
1380 API. CopyValuesToRow simply makes the target row same as source
1381 row. Rather, MergeValuesToRow merges with the target row according
1384 2005-06-19 Konstantin Triger <kostat@mainsoft.com>
1386 * DataSet.cs: Fixed ReadXml to work with IXmlSerializable
1388 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
1390 * DataViewManager.cs: fixes exception and creates DataView
1392 2005-06-15 Sureshkumar T <tsureshkumar@novell.com>
1394 * DataRow.cs: CheckChildRows: cascade parent changes to child rows
1395 only if there is a change in columns of the fk constraint.
1397 2005-06-14 Sureshkumar T <tsureshkumar@novell.com>
1399 * DataSet.cs: GetChanges: if row is deleted, get parent rows based
1400 on original version. fixes bug #75227.
1402 2005-06-13 Sureshkumar T <tsureshkumar@novell.com>
1404 * DataRowCollection.cs: Find (keys, version): Added an overload to
1405 find keys matching given DataViewRowState filter. Used in
1406 DataSet.Merge and DataTable.LoadDataRow.
1408 * DataTable.cs: LoadDataRow (values, LoadOption): Use
1409 DataRowCollection.Find (object [], DataViewRowState) overload.
1412 - CopyValuesToRow: Create target "records" out of loop. Records
1413 should be created once, not for each column. Dispose Unused target
1417 - MergeRow: Find rows with matching original records. If not,
1418 select with current values.
1419 - MergeRow: While adding new row, use NewNotInitializedRow.
1421 * ForeignKeyConstraint.cs: IsConstraintViolated: should not check
1422 if EnforceConstraints is false.
1424 2005-06-10 Sureshkumar T <tsureshkumar@novell.com>
1426 * DataRow.cs: CopyValuesToRow: if orginal == current, don't create
1427 a new current record.
1429 * DataSet.cs: GetChanges :Temporarily disable EnforceConstraints.
1431 * MergeManager.cs: Merge: Temporarily disable
1432 EnforceConstraints. Patch from george.barbarosie@gmail.com (George
1435 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
1437 * DataView.cs: fixes GetListName
1439 2005-06-02 Atsushi Enomoto <atsushi@ximian.com>
1441 * XmlSchemaConstants.cs,
1442 XmlSchemaDataImporter.cs,
1443 XmlSchemaWriter.cs : AutoIncrementStep support. Patch partly by
1444 George Barbarosie. Fixed bug #75121.
1445 * XmlSchemaMapper.cs : it is not used anymore, so just removed.
1447 2005-05-31 Boris Kirzner <borisk@mainsoft.com>
1448 * DataRow.cs : SetParentRow on Detached row with no Default version throws an exception.
1450 2005-05-29 Konstantin Triger <kostat@mainsoft.com>
1452 * This patch fixes #74813
1453 * DataView.cs: rework the CreateChildView to receive the index into the indexed row array, rowState became protected to be initialized from RelatedDataView
1454 * DataRowView.cs: movo the logic of creating the child view to the DataView
1455 * RelatedDataView.cs: perform correct init.
1457 2005-05-25 Sureshkumar T <tsureshkumar@novell.com>
1459 * DataTable.cs: Reworked DataTable.LoadDataRow method after
1460 regressions caused by Index redesign.
1461 * DataRow.cs: Load : reworked.
1463 2005-05-25 Konstantin Triger <kostat@mainsoft.com>
1465 * ISafeDataRecord.cs: Added GetDateTimeSafe method, the interface was made derived from IDataRecord
1467 2005-05-22 Konstantin Triger <kostat@mainsoft.com>
1469 * 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
1471 2005-05-20 Sureshkumar T <tsureshkumar@novell.com>
1473 * DataTable.cs: CreateRecord :value should be set to auto
1474 increment value or default value if the given value is null.
1476 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
1478 * DataTable.cs: In DataTable.LoadDataRow with LoadOption - reverting the search order back to Original -> Current (by Suresh request)
1480 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
1482 * DataRow.cs, DataTable.cs: code under net_2_0 changed to use the new interface
1483 * DataTable.cs: Added CompareRecords, which compares records in column order
1486 2005-05-16 Sureshkumar T <tsureshkumar@novell.com>
1489 * DataTable.cs: quick fix to make build 2.0 profile (follow up for
1490 check in 2005-05-16). Merge with previous changes.
1492 2005-05-11 Sureshkumar T <tsureshkumar@novell.com>
1494 fix for "import row does not import deleted records"
1496 * UniqueConstraint.cs: Make a way to access value even from a
1497 deleted record. deleted records are added to the collection by
1501 - Added restriction-less methods GetValue to fetch a
1502 value even if it is in deleted state.
1503 - If a row is detached, don't try to delete it from indexes.
1504 - sanity check for record_index in CopyValuesToRow method
1506 2005-05-05 Sureshkumar T <tsureshkumar@novell.com>
1508 * DataTableReader.cs: Implemented Delete handler and move the
1509 current pointer accordingly.
1511 2005-05-04 Sureshkumar T <tsureshkumar@novell.com>
1513 * DataTableReader.cs: Added event handlers to make reader stable
1514 when the datasource is modified. Thanks to Umadevi for giving the
1515 review comments for this implementation.
1517 * DataTable.cs: Clear (): Raise TableCleared event.
1519 * DataTableClearEventArgs.cs: Args for DataTableClearEventHandler.
1521 * DataTableClearEventHandler.cs: Handler for DataTable.TableClear
1524 * DataRow.cs: AcceptChanges: raise row changing & row changed
1527 * DataRowCollection.cs: Clear : remove rows from indexes
1529 2005-05-02 Atsushi Enomoto <atsushi@ximian.com>
1531 * XmlSchemaDataImporter.cs : XmlSchemaParicle might be XmlSchemaAny.
1532 This fixes bug #74784.
1534 2005-04-29 Sureshkumar T <tsureshkumar@novell.com>
1536 * DataTableReader.cs: removed use of _first. throw if given index
1537 is out of range of columns. Copy DataTable [] to local array so
1538 that not to be disturbed.
1540 2005-04-27 Sureshkumar T <tsureshkumar@novell.com>
1542 * DataTableReader.cs: Implemented most of the TODO.
1544 2005-04-22 Sureshkumar T <tsureshkumar@novell.com>
1546 * LoadOption.cs: Changed the enums. Keeping old values for
1549 * DataTable.cs: Implemented methods Load and its overloads. Also
1550 implemented LoadDataRow.
1552 * DataRowCollection.cs: Added a variation of the Find method to
1553 return a row even if it is of state Deleted. This is required for
1554 DataTable.LoadDataRow method.
1556 * DataRow.cs: Implemented internal helper method Load for loading
1557 values from an object array and given an LoadOption (2.0 feature).
1559 * DataRowAction.cs: Added few more enums for .net 2.0. Sorted
1562 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
1564 * UniqueConstraint.cs : IsNull check is relevant for rows having default row version.
1565 * DataTable.cs : The row should be validated when imported
1566 * DataRowCollection.cs : if the row does not contain Proposed neither Current version, it's irrelevant for validation
1568 2005-04-26 Boris Kirzner <borisk@mainsoft.com>
1570 * UniqueConstraint.cs :
1571 - Add indication whenever the constraint belongs to collection.
1572 - Calculation of IsPrimaryKey simplified.
1573 - If constraint is based on single column, the column becomes unique.
1574 - Use boolean IsConstraintViolated() instead of AssertConstraint().
1575 - Use Index.Duplicates to proper exception message formatting.
1576 - AssertConstraint(DataRow) changed to suite new indexes interface.
1577 - Added CanRemoveFromCollection method.
1578 - Contains() method renamed to IsColumnContained().
1579 * RelatedDataView.cs : added new class.
1581 - Reset indexes after merge.
1582 - Add new tables when row array is merged into dataset.
1583 - Clean proposed record in MergeRow.
1584 - Inherit nesting on creating new relations in target data set.
1585 - Avoid double loop on constraints collection.
1586 * Locale.cs : added new class.
1587 * ISafeDataRecord.cs : added new interface.
1588 * Index.cs : commented out. Index implementation moved to System.Data.Common.
1589 * ForeignKeyConstraint.cs :
1590 - No more use of childColumnsExtended since new indexes allow duplicate records.
1591 - Constraints can not be created on expression columns.
1592 - Removed unnecessary delegation.
1593 - Use boolean IsConstraintViolated() instead of AssertConstraint().
1594 - Use proper exception message formatting.
1595 - Contains() method renamed to IsColumnContained().
1596 * DataViewRowState.cs : use enum members to simplify notation.
1597 * MergeManager.cs : implemented RelationCollectionChanged().
1598 * DataView.cs : new implementation.
1599 * DataTableCollection.cs :
1600 - Added boundary check in indexer.
1601 - More accurate handling in AddRange().
1602 - Raise event in Remove().
1604 - Hold primary key as constraint.
1605 - Added accurate handling of DefaultView.
1606 - Hold DataRowBuilder per table.
1607 - Proper exception messages if enforce Constraints is violated.
1608 - If there is no rows, Compute() returns DBNull.
1609 - Use DataRow properties instead of private members.
1610 - CopyProperties() fixed.
1611 - Raise proper events in EndInit().
1612 - Proper order of violation checks in EndLoadData().
1613 - Create array of rows using NewRowArray().
1614 - ImportRow handles rows according to their versions.
1615 - LoadDataRow make use of records (instead of raw object array).
1616 - Added and implemented LoadDataRow() that gets IDataRecord as a parameter (used in Fill)
1617 - Select() uses indexes filtering and sorting ability (instead of "loop-throw-sort" approach).
1618 - Removed redundant RowSorter and Sortable column classes.
1619 - ParseSortString() fixed to threat bracketed column names.
1620 - Table holds collection of property descriptors.
1622 - Reset table case sensitive indexes on CaseSensitive change.
1623 - EnforceConstraints update logic moved to internal method (used by DataTable).
1624 - InAddChangedRow first add row and than copy values for proper handling of default values.
1626 - Changed private member names to suite name convention.
1627 - CancelEdit() fixed.
1628 - CreateChildView() delegates to DataView.
1630 - Proper exception messages in indexers.
1631 - RowVersion uses DataView.
1632 - GetProperties() delegates to corresponding table if needed.
1633 * DataRowCollection.cs :
1634 - Common Add() logic moved to AddInternal() (used also by DataTable).
1635 - Removed redundant check from Contains().
1636 - Dalegate Find() calls when possible.
1638 - RomoveAt() delegates to Remove().
1639 - Optimized constraints check in row validation.
1640 * DataRelationPropertyDescriptor.cs : added new class.
1641 * DataRelationCollection.cs :
1643 - Fixed order of actions in AddCore().
1644 - RemoveCore() also delegates to base.
1645 - Add relation to dataset also in AddCore().
1646 - Remove relation from dataset also in RemoveCore().
1647 - InTransition hold a data relation so we can properly identify the "in transition" state.
1648 - Added threat of parent and child table s property descriptors in Add().
1649 - Common Add() logic moved to AddCore().
1651 - Remove() threats "in transition" state properly.
1652 - Remove methods delegate to single implementation.
1653 * DataColumnPropertyDescriptior.cs :
1654 - Added new constructor.
1655 - Commented out redundant method.
1656 * DataColumnCollection.cs :
1657 - Boundary check in indexer.
1658 - RegisterName and UnregisterName become internal (used also by DataColumn).
1660 - Fixed CanRemove().
1661 - Rethrow correct exception in Clear();
1662 - Change in collection resets parent table property descriptors.
1663 - Added PostEndEdit() helper method (used by DataTable).
1665 - Private member names changed to suite name convention.
1666 - Created method for CanAutoIncrement() logic.
1667 - Proper handling of column name update.
1668 - Proper exception messages on expression update.
1669 - Proper namespace handling (delegates to table when needed).
1670 - Removed redundant check in Unique update.
1671 - Implemented internal Clone().
1672 - GetParentRalation() and GetChildRelation() become private.
1674 - Added abstract methods (implemented in UniqueConstraint and ForeignKeyConstraint).
1675 - Simplified index update.
1676 * ConstraintCollection.cs :
1677 - Use Locale instead of CaseSensitive in column names comparison.
1679 - Rethrow correct exception type in Add().
1680 - Proper update of table primary key in Add().
1681 - Delegate CanRemove() to constraint.
1682 - Remove table primary key in Clear();
1683 - Delegate "can remove" check to constraint in Remove().
1684 - Removed unnecessary methods and properties.
1686 - RowSate becomes calculated property.
1687 - Use properties instead of private members where possible.
1689 - Fixed order of actions in ItemArray update.
1690 - Fixed DetachRow().
1691 - Added ImportRecord() method.
1692 - Removed redundant SetValuesFromDataRecord().
1693 - Fixed IndexFromVersion().
1694 - Added VersionFromIndex() method. Returns row version the passed record index corresponds to.
1695 - Fixed AcceptChanges().
1696 - Fixed creating proposed version in BeginEdit();
1697 - Added record disposal in Delete().
1698 - Fixed CheckChildRows().
1699 - EndEdit() fixed. Checks for readonly. Uses straight flow instead of "try and fix if fail" approach.
1700 - GetChildRows() and GetPrarentRows() rewrited. Use records and indexes for rows lookup.
1701 - GetColumnError() delegates to another implementation.
1702 - HasVersion() fixed.
1703 - RejectCahnges checks on child rows before passing through.
1704 - SetParentRow() fixed. Create relation collection if needed. Use typed data container value copy.
1705 - CopyErrors() logic moved to separate method (used also by DataTable).
1706 * ExpressionElement.cs : added new class.
1707 * Res.cs : added new class.
1709 2005-04-20 Jordi Mas i Hernandez <jordi@ximian.com>
1711 * DataViewManager.cs: implements TypedList.GetListName used in SWF
1713 2005-04-19 Atsushi Enomoto <atsushi@ximian.com>
1715 * DataRowView.cs : indexer should access to DataRow with proper
1716 DataRowVersion. Fixed bug #74650.
1718 2005-04-18 Sureshkumar T <tsureshkumar@novell.com>
1720 * DataRow.cs: if there are no mapping fields, fill with default
1723 2005-04-17 Atsushi Enomoto <atsushi@ximian.com>
1725 * DataView.cs : Delete() should not try to remove row twice.
1728 2005-04-13 Atsushi Enomoto <atsushi@ximian.com>
1730 * DataTable.cs : Use GetRowType() for the base of the returning array
1731 type of Select(). Fix by Gerhard Rittweger.
1732 * CustomDataClassGenerator.cs : Fixed slightly harmless wrong code.
1734 2005-04-13 Atsushi Enomoto <atsushi@ximian.com>
1736 * CustomDataClassGenerator.cs : custom relation was not added to
1737 Relations property. The second entry of bug #69276 was fixed.
1738 Patch by Daniel Rodriguez.
1740 2005-04-07 Lluis Sanchez Gual <lluis@novell.com>
1742 * DataRowCollection.cs: Fix the signature of the Add method
1745 2005-03-16 Atsushi Enomoto <atsushi@ximian.com>
1747 * DataRow.cs : on importing row, it was copying data from incorrect
1748 DataRow. This fixes bug #73288.
1750 2005-03-07 Jackson Harper <jackson@ximian.com>
1752 * DataViewManagerListItemTypeDescriptor.cs: Implement missing
1753 features. These are needed for System.Windows.Forms databinding.
1755 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
1757 * DataColumn.cs : setting negative value on MaxLength of SimpleContent
1758 column is still valid.
1760 2005-02-15 Atsushi Enomoto <atsushi@ximian.com>
1762 * XmlSchemaWriter.cs : new file for outputting XmlSchema.
1763 * DataSet.cs : removed rewritten code in XmlSchemaWriter.
1764 * XmlConstants.cs : added UseCurrentCulture constant.
1766 Use new Xml Schema writer.
1767 Use XmlSchemaDataImporter as we use in DataSet.
1769 2005-02-10 Atsushi Enomoto <atsushi@ximian.com>
1771 * DataView.cs, DataRowView.cs : Fixed bug #72421. CreateChildView()
1772 should target only child rows.
1774 2005-02-03 Atsushi Enomoto <atsushi@ximian.com>
1776 * DataViewManager.cs: misuse of ReadStartElement(string).
1777 * DataRowView.cs : removed some MonoTODO.
1779 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
1780 Ankit Jain <radical@corewars.org>
1782 * DataColumn.cs: throw exception if the column is part of a
1783 relationship, when chaning the data type. Added methods
1784 "GetParentRelation ()" and "GetChildRelation ()" get the relation
1785 which contains the current column
1786 * DataRelation.cs: Added method "Contains (DataColumn)" to check
1787 whether the relation contains the given column.
1789 fixes nunit failure: DataRelationTest.InvalidConstraintException2.
1791 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
1793 * DataColumnCollection.cs: implemented todo item "check for
1794 constraints" when removing columns from table.
1795 * DataRowCollection.cs: Clear (): don't have to throw child key
1796 constraint exception when the child table does not have any
1797 rows. safe to remove parent rows.
1798 * UniqueConstraint.cs: added method "Contains (DataColumn)" to
1799 check whether a column is part of UniqueConstraint.
1800 * ForeignKeyConstraint.cs: added method "Contains (DataColumn,
1801 lookInParent)" to check whether a column is part of foreignkey.
1803 fixes nunit failure: DataTableTest.ClearTest ()
1805 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
1807 * ForeignKeyConstraint.cs: validating columns: move checking
1808 "tables are of same dataset" before "checking column types".
1810 fixes nunit failure: ForeignKeyConstraint.CtorExceptions.
1812 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1814 * DataViewManager.cs : let's just use StringWriter instead of
1815 XmlTextWriter (to avoid empty tag string mismatch annoyance.)
1816 * DataView.cs : implemented BeginInit() and EndInit(). Don't update
1817 rows during init phase until EndInit() is invoked. During init phase,
1818 just hold properties such as Sort that affects on rows.
1820 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1822 * DataTableCollection.cs : (RemoveAt) just use IndexOutOfRangeException.
1824 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1826 * DataView.cs : DataRowView.EndEdit() raises ItemMoved event.
1827 set_Table clears Sort and RowFilter.
1829 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1832 - Clear() should clear AddNew cache.
1833 - Open() invokes Reset().
1834 - ConstraintCollectionChanged() itself does not invoke OnListChanged().
1835 - Reset() does not Open, Close and Update Index.
1836 - UpdateIndex() can be invoked even if it has no table.
1837 - Reset event is invoked always after actual query to table.
1838 - set_Table should raise PropertyDescriptorChanged event.
1840 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1842 * DataView.cs : ColumnCollectionChanged() is the event invoker (i.e.
1843 when overriden, no column change events are fired).
1845 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1847 * DataView.cs : CancelEditRowView() and DeleteRowView() was incorrectly
1848 checking target tables. They also should raise events if required.
1850 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1852 * DataView.cs : simplify code with UnsortedList.
1854 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
1856 * DataView.cs : Mostly reimplemented.
1857 - UpdateIndex() is invoked only when it is required (results in
1858 significant performance improvement).
1859 - Use SortedList and wrapper OptionalSortedList which switches
1860 between SortedList (with Sort) and UnsortedList (without Sort).
1861 - DataView itself now contains two collections for rowviews:
1862 Table rows based pool and AddNew() based cache. Consider those
1863 two collections in every members.
1864 - Reset() does not clear rows. Just invokes UpdateIndex().
1865 - Hook RowDeleting, ColumnChanging and ColumnChanged events in table
1866 which is required to handle state changes.
1867 - Reimplemented Find() and FindRows() because of internal changes.
1869 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
1871 * DataTable.cs : Fixed row comparer. Even if every of the sort target
1872 columns are identical for two rows, they should not be regarded as
1873 the same unless they are Object.ReferenceEquals.
1875 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
1877 * DataRowCollection.cs : on adding a row, should raise
1878 ChangingDataRow() as well as ChangedDataRow().
1880 2005-01-31 Sureshkumar T <tsureshkumar@novell.com>
1882 * DataRow.cs: SetParentRow (): use relation.ParentColumns &
1883 relation.ChildColumns instead of relation.ChildKeyConstraint.*
1884 because createConstrains flag may be false when creating data
1885 relations. Hack along with Ankit Jain.
1887 2005-01-31 Atsushi Enomoto <atsushi@ximian.com>
1889 * DataView.cs :some interface implementations.
1891 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1893 * DataView.cs : Add to table only when the row is not in the table.
1895 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1897 * DataView.cs : implemented FindRows() (btw we should not use
1898 DataTable since there are detached rows by AddNew().)
1900 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1903 Code cleanup: privatify some members, remove unused methods.
1904 Some event-based invocation methods should not raise NotImplemented.
1906 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1908 * DataSet.cs : ReadXml() became closer to MS behavior, being hacky.
1910 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1912 * XmlSchemaDataImporter.cs : empty element is not regarded as a column.
1914 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1916 * UniqueConstraint.cs : mostly reverted the previous patch + check
1917 IsPrimaryKey before validation.
1919 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1921 * DataView.cs : Fixed duplicate insertion to Hashtable.
1922 * UniqueConstraint.cs : Unique constrained pair of columns could be
1925 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1928 Don't do anything for Sort/ApplyDefaultSort/RowFilter/RowStateFilter
1929 when the same value is being set.
1930 Examined UpdateIndex() and marked FIXME where MS does not invoke it.
1931 Removed unused OnColumnChanged().
1932 Now store rowViewPool and reuse DataRowView objects.
1933 Optimized UpdateIndex() - avoid ArrayList. Avoid Haashtable.Rehash().
1935 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1937 * DataViewSettings.cs : no MonoTODO anymore.
1938 * DataViewManager.cs : pass itself to new DataView() (new ctor).
1939 * DataRowView.cs : GetHashCode() returns its Row's hash.
1940 * DataTablePropertyDescriptor.cs : use new ctor().
1941 * DataView.cs : added new ctor()s that accept DataViewManager.
1943 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1945 * DataView.cs, DataRowView.cs : AddNew() should not add the row to table
1946 (it is still detached). So handle those rows differntly.
1947 CancelEdit(), EndEdit() and Delete() propagates those events to
1948 DataView (and handle row collection).
1949 Eliminate "throw new Exception()".
1950 Don't catch all the exception thrown in ListChanged event.
1951 * DataTable.cs : made RowSorter as internal and use it in DataView.
1952 no need to pass DataRow[] to .ctor().
1954 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1956 * DataTable.cs : don't create DefaultView unless it is required. It
1957 significantly improves performance. (i.e. DataView perf. is sick ;-)
1959 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1961 * DataViewSetting.cs,
1962 DataViewSettingCollection.cs,
1963 DataViewManager.cs : implemented basic members.
1965 2005-01-26 Atsushi Enomoto <atsushi@ximian.com>
1967 * Node.cs, DataColumnPropertyDescriptor.cs, DataTable.cs :
1968 Eliminate "throw new Exception".
1970 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1972 * DataRow.cs : (set_Item) RowNotInTableExeption check should be done
1973 regardless of index existence.
1975 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1977 * DataTable.cs : use new IExpression.EvalBoolean() to avoid extraneous
1980 2005-01-25 Sureshkumar T <tsureshkumar@novell.com>
1982 * DataTable.cs: ImportRow :Do not add to rows collection if the
1983 import row is in detached state.
1985 2005-01-25 Sureshkumar T <tsureshkumar@novell.com>
1987 * DataRow.cs: CopyValuesToRow : set the column value with the
1988 default version of the given row.
1989 * DataTable.cs: ImportRow: Copy values before adding row.
1990 * DataSet.cs: AddChangedRow: Add the row to the table after
1993 Fixes bug #67317. Patch by Ankit Jain.
1995 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1997 * DataRowView.cs : Fixed IsEdit to reflect correct status of DataRow.
1998 * DataRow.cs : Expose editing status internally.
2000 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
2002 * DataView.cs : missing attributes.
2004 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
2006 * DataRowView.cs : implemented CreateChildView().
2008 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
2010 * DataTable.cs, DataView.cs :
2011 Optimized DataView to compile only once RowFilter and Sort when
2012 those properties are set. To make it possible, extracted
2013 SortableColumn out of DataTable and added internal DataTable.Select()
2014 that accepts precompiled IExpression and SortableColumns[].
2016 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
2018 * DataColumn.cs : set_MaxLength is not allowed when it is mapped to
2019 SimpleContent. (However, it is weird but it never fails when we set
2020 ColumnMapping = MappingType.SimpleContent when we fhave MaxLength.)
2022 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
2024 * DataRow.cs : more Current -> Default fixes. Check if it should throw
2025 VersionNotFoundException. Patch by Ankit Jain.
2027 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
2029 * DataRow.cs : Default selects the right version for the current
2030 state of the row. Current is not always available. Also change
2031 that for GetParentRow(). Patch by Ankit Jain.
2033 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
2035 * DataTable.cs : CopyColumn() should copy AutoIncrement after
2036 DefaultValue, or it will raise an error in some cases.
2038 2005-01-20 Atsushi Enomoto <atsushi@ximian.com>
2040 * ConstraintCollection.cs : Add() should throw ArgumentException when
2041 the argument constraint fails validation.
2042 DataTable.cs : set_PrimaryKey should throw ArgumentException when
2043 the argument contains constraints which fail validation.
2045 2005-01-19 Sureshkumar T <tsureshkumar@novell.com>
2047 * DataRelationCollection.cs:
2049 Method Remove : Donot throw exception if DataRelation argument is
2050 null in DataRelationCollection.Remove method.
2052 Method RemoveAt : Exception should be IndexOutOfRangeException if
2053 row index is not in list range.
2055 Fixes nunit failures DataRelationCollection.Remove and
2056 DataRelationCollection.RemoveAt.
2058 2005-01-19 Sureshkumar T <tsureshkumar@novell.com>
2060 * ConstraintCollection.cs: Donot throw exception if constraints
2061 are null in AddRange method. Check for null before using the
2066 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
2068 * XmlDataInferenceLoader.cs,
2069 XmlDataReader.cs : Check if the XmlReader (node) represents DataSet
2070 or a table, reusing code block in XmlDataInferenceLoader.
2071 This fixes bug #60118.
2073 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
2075 * XmlDiffLoader.cs : Ankit Jain <radical@imt.ac.in> has a conflicting
2076 patches and some good catches. Some attributes should be skipped,
2077 and loaded value must be typed.
2079 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
2082 XmlDataInferenceLoader.cs,
2083 XmlDataReader.cs : use common const for http://www.w3.org/2000/xmlns/.
2084 * XmlDiffLoader.cs : It was not handling attributes. Fixed bug #70961.
2086 2005-01-18 Sureshkumar T <tsureshkumar@novell.com>
2088 Fix for bug #66838. This patch is submitted by "Ankit Jain"
2089 <radical@corewars.org> and refactored.
2091 * DataRow.cs: Allows to set a parent row even if the row is in
2094 * DataRelation.cs: method "UpdateConstraints" is added to check
2095 and create missing keys when adding a relation. This is refactored
2096 approach from DataRelationCollection.Add method.
2098 * DataRelationCollection.cs: AddCore methods of all relation types
2099 are synchronized. A Check for existing constraints is
2100 done. Relation is added to the list only if all checks are passed.
2102 2004-01-18 Atsushi Enomoto <atsushi@ximian.com>
2104 * DataColumnCollection.cs : Clear() throws ArgumentException that
2105 wraps thrown innerException.
2106 * XmlSchemaDataImporter.cs : removed FIXMEs.
2108 2004-01-12 Atsushi Enomoto <atsushi@ximian.com>
2110 * DataSet.cs : When serializing DataTable, BuildSchema() is passed
2111 null relation collections.
2112 Quick fix for XmlSerializer deserialization. It does not require
2113 XML Schema included.
2115 2004-01-11 Atsushi Enomoto <atsushi@ximian.com>
2118 CustomDataClassGenerator.cs :
2119 In DataSet class, IXmlSerializable.GetSchema() returns null.
2120 In strongly-typed class, it returns schema.
2122 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
2124 * XmlDataInferenceLoader.cs : test driver class should be excluded.
2126 2004-12-01 Miguel de Icaza <miguel@ximian.com>
2128 * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
2131 2004-11-10 Atsushi Enomoto <atsushi@ximian.com>
2133 * CustomDataClassGenerator.cs : generated foreign key constraint
2134 construction code was creating empty child columns and thus it
2135 was invalid. This fixes bug #69276 (patch by Martin Voelkle).
2137 2004-11-02 Atsushi Enomoto <atsushi@ximian.com>
2139 * CustomDataClassGenerator.cs : custom DataTable ctor should call
2140 InitializeFields(), and those DataColumns created by that method
2141 should take data type. This should fix bug #68972.
2143 2004-10-15 Atsushi Enomoto <atsushi@ximian.com>
2145 * DataSet.cs : Also clear UnhandledAttributes ArrayList before
2146 generating next attribute column schema. This fixes bug #68432.
2148 2004-10-14 Umadevi S <sumadevi@novell.com>
2149 * DataTable.cs : Corrected the Clone method to use Activator.CreateInstance so that the
2150 correct subclass is returned. This fixes bug #67631
2152 2004-10-14 Umadevi S <sumadevi@novell.com>
2153 * DataSet.cs : Corrected the Clone method to use Activator.CreateInstance so that the
2154 correct subclass is returned. This fixes bug #67627
2156 2004-10-13 Atsushi Enomoto <atsushi@ximian.com>
2158 * DataSet.cs : clear UnhandledAttributes ArrayList before generating
2159 next element column schema. This fixes bug #68256.
2161 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
2163 * DataSet.cs : now xs:schema contains xmlns="".
2164 This fixes bug #68008.
2166 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
2168 * DataSet.cs : DBNull attribute column should not be written as
2169 empty attribute. This fixes bug #68007.
2171 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
2173 * DataSet.cs, XmlConstant.cs, XmlSchemaDataImporter.cs:
2174 DataColumn.ReadOnly was not handled. This fixes bug #68005.
2175 Attribute defaultValue was not handled too.
2177 2004-10-07 Atsushi Enomoto <atsushi@ximian.com>
2180 - When AllowDBNull is false on attribute DataColumn, its schema
2181 should contain use="required". This fixes bug #66792.
2182 - If MaxLength is set on attribute DataColumn, the mapped schema
2183 type should contain maxLength facet. This fixes bug #66793.
2185 2004-10-04 Atsushi Enomoto <atsushi@ximian.com>
2187 * DataSet.cs : For a row, when a relation is not nested, then it is
2188 still output target since it won't be written as a child of its
2189 parent. It fixes bug #66379.
2191 2004-10-03 Atsushi Enomoto <atsushi@ximian.com>
2193 * DataSet.cs : Attribute constraint field XPath must be written as
2194 @blah. This fixes bug #66366.
2196 2004-09-28 Umadevi S <sumadevi@novell.com>
2197 * DataRow.cs - checked for Enforceconstraints, while using indices to search for related rows
2199 2004-09-24 Sureshkumar T <tsureshkumar@novell.com>
2201 * DataSet.cs : Don't check constraints for dataset clear
2202 * DataRowCollection.cs : check for EnforceConstraints flag
2203 before checking foriegn key constraints in Clear method
2204 * DataTable.cs : Redundant checking removed in Clear method as it is
2205 checked in DataRowCollection.Clear method.
2208 2004-09-19 Sureshkumar T <tsureshkumar@novell.com>
2209 * DataRow.cs : while deserialization of dataset, adding a current row precedes the original row.
2210 hence, adding a row cache is necessary if the original row happens to be current.
2213 2004-08-23 Martin Baulig <martin@ximian.com>
2215 * XmlDataInferenceLoader.cs (Driver): Make this class internal,
2218 2004-08-18 Umadevi S <sumadevi@novell.com>
2219 * DataView.cs - Completed most of the event handling.
2220 Thanks to Punit Todi <punit_todi@da-iict.org> for implementing most of it.
2221 Thanks to Boris Kirzner <borisk@mainsoft.com> for commenting and suggesting changes to the implementation.
2222 * DataTable.cs - Changed Access modifiers of class/methods since it was used by DataView.
2224 2004-08-06 Atsushi Enomoto <atsushi@ximian.com>
2226 * DataSet.cs : DataSet's ExtendedProperties were not XmlConverted.
2228 2004-08-05 Atsushi Enomoto <atsushi@ximian.com>
2230 * XmlConstants.cs : Added constants for "msprop" support.
2231 * DataSet.cs : ExtendedProperties should be written in the schema.
2232 This fixes bug #61233.
2234 2004-07-27 Atsushi Enomoto <atsushi@ximian.com>
2236 * DataSet.cs : on serialization to XmlWriter, XmlConvert should be
2237 used. There were also some culture dependency problems to write int.
2239 2004-06-27 Atsushi Enomoto <atsushi@ximian.com>
2241 * XmlDataInferenceLoader.cs : It was not always filling relation
2242 child table information correctly. This fixes bug #60742.
2244 2004-06-23 Umadevi S <sumadevi@novell.com>
2245 * UniqueConstraint.cs :changed a ifdef true to ifdef NET_1_1
2247 2004-06-22 Atsushi Enomoto <atsushi@ximian.com>
2249 * DataSet.cs : Fixed ReadXml(). When ReadMode is ReadSchema and the
2250 schema is inside the document element (as created in XmlWriteMode
2251 .WriteSchema), it should read schema from that non-document element.
2252 This fixes one case reported in bug #60470.
2254 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
2256 * XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
2257 inference target. For bug #60470. (MS does not support schema
2258 document inference and results in unconsistent dataset structure.)
2260 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
2262 * DataTableCollection.cs : reset the table's DataSet to null when
2263 removing a table from this collection.
2264 * DataTable.cs : When Namespace is not specified explicitly, its
2265 Namespace property reflects DataSet's Namespace if exist.
2266 This fixes bug #60469.
2268 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
2270 * DBConcurrentcyException.cs: CRLF to LF
2271 * DataViewSetting.cs: CRLF to LF
2273 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
2275 * DataViewSetting.cs: renamed fields to match MS.NET
2277 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
2279 * DBConcurrencyException.cs: fixed serialization compatibility with
2282 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2284 * ChangeLog : Fix for misspelled words.
2286 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2288 * DataRowCollection.cs : Removed onColumnRemoved since it is not in use.
2290 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2293 - Table stores default values for columns in special default values row.
2294 It is allocated once (in NewRow).
2295 - DataTable.Copy rewrited. It works with uninitialized rows for better perfomance.
2296 - OnRemoveColumn has nothing to perform by now.
2298 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2301 - Changed access of original, current and proposed indexes to internal.
2302 - ColumnErrors reviewed : now column errors stored in ArrayList and allocated on demand only.
2303 - Added new DataRow constructor that creates uninitialized DataRow (used in DataTable.Copy).
2304 - Use DataContainer.CopyValue and default values row for faster set of default values in row.
2305 - SetColumnValue become CheckValue. Now it does not changes the value, but only checks for its correctness.
2306 Care about Null and DBNull values is now in DataContainer.
2307 - Use DataColumn.AutoIncrementValue and GetInt64 for faster set of autoincrement value.
2308 - Use Datacontainer.CopyValue and default values row to speed up CheckChildRows.
2309 - Fix in CopyState : clone column errors.
2310 - Removed CollectionChanged and onColumnRemoved since we are not using both of them anymore.
2312 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2314 * DataColumnCollection.cs :
2315 - Fix : Add() now delegates to Add(DataColumn).
2316 - autoIncrement list holds DataColumn objects, and not just column names.
2318 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2321 - AutoIncrementValue fixes. Now AutoIncrement uses DataContainer.GetInt64 to avoid boxing.
2322 - DefaultValue fixes. Default value from now on is also stored in special record in
2323 DataTable, so we're able to set default value for the column faster (typed).
2326 2004-06-15 Atsushi Enomoto <atsushi@ximian.com>
2328 * DataSet.cs : children of non-root rows were not properly written.
2331 2004-06-10 Umadevi S <sumadevi@novell.com>
2332 * DataRelation.cs - Constructor
2333 - The datatypes of the parentcolumn(s) and the childcolumn(s) should match
2335 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
2337 * XmlSchemaDataImporter.cs : We should fill Namespace for DataTable.
2339 2004-06-04 Gert Driesen <drieseng@users.sourceforge.net>
2341 * Constraint.cs: marked methods internal to fix public API
2342 * ConstraintCollection.cs: to fix public API, use
2343 DataTable.fInitInProgress to check whether initialization
2344 of DataTable is in progress
2345 * DataColumn.cs: added stubs for missing methods
2346 * DataRowBuilder.cs: marked Table property internal to
2348 * DataSet.cs: removed extra empty destructor, marked
2349 OnMergeFailed internal to fix public API
2350 * DataTable.cs: use fInitInProgress field to hold init
2351 status, to match MS.NET
2352 * DataView.cs: added missing attributes on IsOpen
2354 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
2356 * DataSet.cs : Use NameTable.Get() before calling LookupNamespace()
2357 in XmlNamespaceManager.
2359 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
2361 * DataSet.cs : complex table content child was not properly added
2362 when it is the only one child in the parent table. Fixed bug #53959.
2364 2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
2365 * DataTableTypeConverter.cs: added
2366 * DataView.cs: added missing attribute on Table property
2367 * DataViewManager.cs: moved attribute to correct property
2368 * UniqueConstraint.cs: removed extra ReadOnly attribute from
2369 IsPrimaryKey property
2371 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
2373 * DataRow.cs : ColumnsChanged event is not required in .ctor().
2375 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
2377 * XmlDataReader.cs : type change is required before setting value
2380 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
2382 * DataSet.cs : Loop-break of the last fix was incorrect.
2384 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
2386 * DataSet.cs : When a row has no parent row but the table has parent
2387 relation(s), that row had been always ignored.
2389 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
2391 * XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
2392 rejected same-named tables in different hierarchy. Thanks to Boris.
2394 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
2396 * XmlDiffLoader.cs : Added some Skip() that is required not to go to
2397 infinite loop. Thanks to Boris for this fix.
2399 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
2401 * XmlDataInferenceLoader.cs : XmlSchema elements should not be infered.
2402 Thanks to Boris for this fix.
2404 2004-05-30 Atsushi Enomoto <atsushi@ximian.com>
2406 * DataTable.cs : serialization .ctor() should use XmlReadMode.DiffGram
2407 for ReadXml(). Thanks to Boris.
2409 2004-05-27 Boris Kirzner <borisk@mainsoft.com>
2411 - CheckReadOnlyStatus : use typed (and faster comparing).
2412 - EndEdit : bug fix - do not dispose record if it holds original version.
2413 - SetValuesFromDataRecord : Take care about autoincrement columns.
2416 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2418 * MergeManager.cs : don't output debug message to Console.
2420 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2422 * XmlDataInferenceLoader.cs : Namespace are not imported to the table
2423 structure. Thanks to Boris Kirzner for the fix.
2425 2004-05-27 Umadevi S <sumadevi@novell.com>
2426 * DataRelationCollection.cs - fixed nunit test errors
2428 2004-05-27 Umadevi S <sumadevi@novell.com>
2429 * DataTableCollection.cs - fixed nunit test errors
2431 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
2433 * DataColumnCollection.cs : NullReferenceException was thrown when
2434 the table was not found.
2435 * DataRowCollection.cs :
2436 Find() just returns null for null value under MS.NET 1.1.
2437 RemoveAt() should also avoid to call AcceptChanges() like Remove().
2438 * UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
2439 directly under MS.NET (for nunit test).
2441 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
2443 * XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf()
2444 caused problem on qualified name to get schema Field name.
2446 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
2448 * XmlDataReader.cs : Now data reader is namespace aware in all places.
2449 When table's namespace is different, it entered to infinite loop.
2451 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
2452 * MergeManager.cs : AdjustSchema now updates by reference new created table,
2453 so in Merge you do not need to lookup for it (were unable to do this for unnamed tables).
2456 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
2458 * DataColumn.cs : In set_Item[int] - if autoincrement, adjust next autoincrement value.
2459 * DataColumnCollection.cs : fixed parantethes.
2461 - AcceptChanges : do nothing if row state is unchanged.
2462 - GetChildRows, GetParentRows : bug fix (use correct index).
2463 * DataRowCollection.cs : bug fix (compare all row's values).
2464 * DataTable.cs : bug fix (use correct row version).
2466 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
2468 * XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
2469 When content type is Mixed, text column is not required (it is
2470 required only when the complex type has no particle).
2471 "Repeated element" column is also created (considering maxOccurs=0
2472 and complex content extension).
2474 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
2476 * XmlSchemaDataImporter.cs : XmlSchemaGroupBase was not handled
2479 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
2481 * XmlSchemaDataImporter.cs : Removed unused code and extra MonoTODO.
2482 Fixed relation inference to consider attribute XPath.
2484 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
2486 * DataColumn.cs : Fixed set_Item[int]. Convert.ToInt64(DBNull.Value)
2489 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
2491 * DataColumn.cs - removed default member attribute.
2493 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
2496 DataColumnChangeEventArgs.cs,
2497 DataColumnCollection.cs,
2499 DataRowCollection.cs,
2501 Index.cs : Data storage in the row is redesigned. Now data is stored in
2502 typed containers inside DataColumn. Row holds its versions as indexes inside
2503 each of data container, accessed through the row that holds it.
2505 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
2507 * UniqueConstraint.cs - added comment.
2509 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
2511 * XmlDataInferenceLoader.cs : Don't add already-existing DataTable to
2514 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
2517 XmlDataInferenceLoader.cs,
2519 XmlSchemaDataImporter.cs : XmlDecode every local name to read and
2520 XmlEncode every local name to write. This should fix bug #58268.
2522 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
2524 * DataSet.cs : Implemented ignored namespaces in InferXmlSchema().
2525 Supported repeated elements. Removed MonoTODOs.
2526 * XmlDataInferenceLoader.cs : Design change to support ignored
2527 namespace and repeated elements.
2528 * XmlSchemaDataImporter.cs : Added mapping support classes.
2530 2004-05-15 Atsushi Enomoto <atsushi@ximian.com>
2532 * CustomDataClassGenerator.cs :
2533 Added property parent "[foo]Row" and children "Get[foo]Row" support
2534 for custom DataRow classes.
2535 Fixed DataColumn property accessibility (public --> internal).
2537 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
2539 * CustomDataClassGenerator.cs :
2540 - Put classes inside custom DataSet class.
2541 - Added automatic DataRelation creation support.
2542 - Added Constraints creation support. That is done separate from
2543 relations, since they might be independently created.
2544 - Added non-MS public DataRelation fields.
2545 - Removed extraneous "DataRelation type generation" code.
2546 - Fixed custom_dataset.Initialize() not to create "c" field that
2547 was created more than once.
2548 - Implemented AddxxxRow() that takes parameters for every column.
2550 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
2552 * XmlSchemaDataImporter.cs : When primary key is used more than once,
2553 DataRelation borked because of empty parent column name.
2555 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
2557 * XmlSchemaDataImporter.cs : When Creating constraints with related
2558 to DataRelation creation, also set PrimaryKey to the parent table.
2560 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
2562 * XmlSchemaDataImporter.cs :
2563 Design change to add indirect table and relation structures.
2564 Support for "relation" annotation for local element.
2565 Support for repeatable simple element column (maxOccurs > 1).
2566 Fixed handling of Nested property on DataRelation (for globally
2567 annotated relation, Nested is false).
2569 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
2571 * DataRow.cs : Added DataElement property to avoid storing every row-
2572 element mapping. It stored even for nodes that should be removed.
2574 2004-05-13 Umadevi S <sumadevi@novell.com>
2576 * RelationshipConverter.cs - Stubbed this class
2577 * DataRelation.cs - added TypeConveterAttribute
2579 2004-05-13 Umadevi S <sumadevi@novell.com>
2581 * DataColumnCollection.cs - Added ResDescriptionAttribute
2582 * DataRelation.cs - Added TypeConverterAttribute
2583 * DataRelationCollection.cs - Added DefaultPropertyAttribute
2584 * DataRowView.cs - Added GetHashCode method with a TODO tag
2585 * DataSet.cs - Added DesignerAttribute
2586 * DataView.cs - Added DesignerAttribute
2587 * DataViewManager.cs - Added DesignerAttribute
2588 * DataViewSetting.cs - Added TypeConverterAttribute
2590 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
2592 * DataRow.cs : Added XmlDataElement initialization code.
2594 2004-05-11 Atsushi Enomoto <atsushi@ximian.com>
2596 * XmlDataInferenceLoader.cs :
2597 It now requires XmlDocument as input. Improved identification of
2598 DataSet element. Removed extra lines.
2599 Moved boresome design notes to bottom of the source and
2600 added standalone runnable driver (not included on build).
2602 Update with related to the change above.
2603 WriteXml() should call Flush() after writing. This fixes bug #58327.
2604 * XmlSchemaDataImporter.cs :
2605 Improved indentification of DataSet element.
2607 2004-05-11 Gert Driesen (drieseng@users.sourceforge.net)
2608 * DataTable: marked initStatus enum internal
2610 2004-05-09 Gert Driesen (drieseng@users.sourceforge.net)
2611 * DataTable.cs: removed TypeConverterAttribute, marked RowsExist
2613 * DataRowView.cs: removed extra Error property
2614 * DataRow.cs: reduced accessibility of CollectionChanged method
2616 * DataColumnPropertyDescriptor.cs: made class internal
2617 * DataColumn.cs: removed extra TypeConvertorAttribute
2618 * ConstrainCollection.cs: marked PostEndInit method internal
2620 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
2623 In WriteXmlSchema(), when complex type contains simple type content
2624 attributes must not added to XmlSchemaComplexType directly. It
2625 causes schema compilation error.
2626 DataRelation should not be output when related columns are hidden.
2628 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
2630 * XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
2631 also expected to do ReadXml(), but I will remove that feature and
2632 support column reordering).
2633 * XmlSchemaDataImporter.cs : Always initialize dataset name.
2634 Always set Nested and primary key for parent table.
2635 * XmlDataReader.cs : Now it is used.
2636 Top level element might not match to dataset name nor any table
2637 name, but still possible to read content tables.
2638 Handle empty element correctly in some places.
2639 Handle Fragment mode (read up XmlReader to the end).
2640 * DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
2641 XmlDataInferenceLoader and XmlDataReader.
2643 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
2646 Eliminated CRLF injection.
2647 More clear message in Clear().
2648 Updates reflecting XmlSchemaDataImporter change.
2649 Added duplicate check for XmlSerializerNamespaces in BuildSchema().
2650 Don't use xmlns attribute for UnhandledAttributes (its not mandatory
2651 but that depends on different behavior from ms.net).
2652 Set locale also for DataTable.
2653 Add xs:element only when target namespace matches to the
2654 element's namespace. Otherwise, add xs:import for external namespace.
2655 Put xs:sequence for dataset element's particle _only when_ actual
2658 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
2660 * XmlDataReader.cs : Added. This class will work better when our
2661 schema inference and schema read engine gets improved. (It contains
2662 standalone testable Driver class.)
2664 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
2666 * ForeignKeyConstraint.cs : Check step change. Existence then column
2667 validity. just for tests.
2668 * XmlSchemaDataImporter.cs : code simplification. reduced extraneous
2671 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2673 * DataSet.cs : Ignore empty content only when output type is diffgram.
2675 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2677 * CustomDataClassGenerator.cs : Modified that DataSet contains each
2678 DataTable field so that each table property can access them directly.
2679 (plus, modified standalone code driver code: shouldn't affect)
2681 2004-05-05 Boris Kirzner <borisk@mainsoft.com>
2683 * DataView.cs , DataRowView.cs : Added implementation to basic methods and properties.
2685 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2687 * XmlSchemaDataImporter.cs :
2688 SimpleContent column support.
2689 Annotated relation support.
2690 Top-level element is counted only when its type is complex.
2691 xs:anyType is no longer treated as complex type.
2692 dataset existence is mandatory now.
2693 Improved DataType and DefaultValue support.
2694 Attribute namespace is properly handled now.
2695 Prohibited attribute is now treated as hidden column.
2696 Reject list or union simple type.
2698 Still incomplete 1) to read relationship in some cases, 2) to
2699 determine whether an element is dataset or table, 3) thus to
2700 exclude extraneous column, 4) to remove extraneous *_Id column.
2702 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2705 We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
2706 serialization .ctor() (thus schema read/inference should be easier).
2707 DataRowSorter should consider Table's Locale.
2709 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2711 * DataColumnCollection.cs : We already had AutoIncrementValue(), so
2712 use it instead of duplicating logic.
2714 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2716 * ConstraintCollection.cs :
2717 Use Table.CaseSensitive and Table.Locale to compare strings.
2718 Duplicate constraint name exception does not occur under .NET 1.1.
2720 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
2722 * XmlSchemaDataImporter.cs: Added little type check.
2724 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
2726 * DataSet.cs: Implemented support for runtime serialization. Fixed support
2727 for xml serialization.
2728 * XmlDiffLoader.cs: Skip diffgram element when it is empty.
2730 2004-04-30 Umadevi S <sumadevi@novell.com>
2731 * DataColumnCollection.cs : Fixed nunit test errors, removed TODOs
2732 * DataTableCollection.cs : Tested and removed TODO
2733 * TypedDataSetGeneratorException.cs : Fixed a couple of TODOs
2735 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
2737 * DataRow.cs : My previous patch unintentionally reverted Boris patch.
2739 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2741 * UniqueConstraint.cs : Constraint columns becaomes unique after adding constraint ifand only if
2742 constraint is defined on single column.
2744 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
2746 * DataRowCollection.cs : .NET 1.1 throws InvalidConstaintException,
2747 not ArgumentException (maybe changed after 1.1).
2749 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
2751 * DataRow.cs : When Column was added and it was AutoIncrement column,
2752 it extended the item object array incorrectly.
2753 (Plus tiny comment and incorrect indentation fix.)
2755 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2757 * MergeManager.cs : added ( incomplete yet ) support for merging DataSet schema.
2759 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2761 * DataRow.cs : Bug fix in CopyValuesToRow().
2763 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2765 * UniqueConstraint.cs : There is no reason to mark constraint's columns as unique, because
2766 each of the columns should not be unique, but only all the constraint's columns together.
2768 2004-04-28 Boris Kirzner <borisk@mainsoft.com>
2771 - Added using of list of autoIncrement columns
2772 - SetColumnValue receives also DataColumn to avoid duplicate lookup in DatacolumnCollection
2773 - Fix in CheckNullConstraints
2774 - Fix in this[] and HasVersion() : when evaluating an expression deleted rows values can be accessed.
2775 - Fix in SetColumnValue() , added CanAccess() method to avoid case of accessing internal array values berore it actually allocated.
2776 - Added onColumnRemoved() method to threat column removal accurately.
2778 * DataRowCollection.cs :
2779 - Added using of DataRow._nullConstraintViolation (for perfomance fix in EndLoadData())
2780 - Added method onColumnRemoved() - calls each row's onColumnRemoved() (to ensure column removal is treated accurately)
2783 - Call DataRowCollection.onColumnRemoved() in OnRemoveColumn() (to ensure column removal is treated accurately)
2785 * DataColumnCollection.cs :
2786 - Perfomance fixes :
2787 - collection holds a list of its autoIncrement columns (avoids unnesessary lookup through whole collection)
2788 - collection holds mapping from column names to DataColumn objects (avoids lookup through whole collection).
2789 - automatic creation of column names rewrited (bug fixes + perfomance improvement)
2792 - Uses autoincrement list of a table
2794 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2796 * XmlDataLoader.cs : Even when it should ignore schema, it was
2798 * XmlSchemaDataImporter.cs : DataRelation creation support.
2799 Improved "DataSet" element handing. When attributes are on the
2800 element, it is not a "DataSet" element.
2801 Fixed parent key column name.
2802 Unique name creation is not required. Just raise an error.
2803 Fill facet also for attribute types.
2805 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2807 * DataRow.cs : Null check for CheckReadOnlyStatus() and
2808 CheckNullConstraints(), with some coding guideline fixes.
2809 Type check should be done by Type instance comparison.
2811 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2813 * DataColumnCollection.cs : When add a column to the collection, fill
2814 auto-increment column.
2816 2004-04-26 Boris Kirzner <borisk@mainsoft.com>
2818 * DataColumn.cs : Small perfomance fix (avoid unnesessary string concatenation).
2820 2004-04-26 Atsushi Enomoto <atsushi@ximian.com>
2822 * CustomDataClassGenerator.cs : Added.
2823 * TypedDataSetGenerator.cs : Implemented Generate().
2824 Changed GenerateIdName() to call CustomDataClassGenerator.MakeSafeName
2825 * XmlSchemaDataImporter.cs : Table Locale should be supplied.
2827 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
2829 * DataTable.cs : Small perfomance fix (avoid unnesessary string concatenation).
2831 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
2833 * Constraint.cs : Small perfomance fix (avoid unnesessary string concatenation).
2835 2004-04-23 Umadevi S (sumadevi@novell.com)
2836 * DataRow.cs: Checked BeginEdit,EndEdit,CancelEdit and Delete methods
2837 - Added error handling to the above methods
2839 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
2841 * DataSet.cs : Data should be read when mode is IgnoreSchema (well,
2842 the support is incomplete yet).
2843 * XmlDataLoader.cs :
2844 Reverted ReadModeSchema() argument change. XmlReadMode would be
2845 useful to handle IgnoreSchema.
2846 Don't overwrite DataSetName when mode is not such kind.
2847 Set Prefix and Namespace as well as DataSetName.
2848 AllowDBNull looks set false by default for element column.
2849 Set unique constraint as primary key when infering the table schema.
2851 2004-04-21 Atsushi Enomoto <atsushi@ximian.com>
2854 Never set null string for Prefix and Namespace.
2855 In InferXmlSchema() when null XmlReader is passed, just do nothing.
2856 In WriteXmlSchema(string), earlier try block.
2857 In BuildSchema(), try to add serialization namespaces for each
2858 namespaces in DataSet/DataTable/DataColumn.
2859 Removed namespace argument from WriteColumnAsElement() and don't
2860 overwrite when namespace is "". This fixes bug #57330.
2861 * DataColumn.cs : For Namespace and Prefix, never set null.
2863 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2865 * XmlSchemaMapper.cs : Check for not null unique constraint in ReadXmlSchemaKeyref()
2866 before creating and adding foreign key constraint and relation.
2868 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2870 * MergeManager.cs : In AdjustSchema() source table clone should be added
2871 and not the table itself.
2873 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2876 - CaseSensitive : Additional fix (removed unnesessary assignment).
2877 - CopyProperties : Do not try to copy ExtendedProperties if the collection is empty.
2879 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2881 * DataTable.cs : Ensure that DataSet property is not null before using it in Clear().
2883 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
2886 - EndLoadData() : perfomance fix in case of null constraint violation
2887 during data load (also in DataRow.cs).
2888 - CaseSensitive : If DataTable belongs to DataSet it should always use
2889 DataSet.CaseSensitive untill explicitly changed.
2890 - CopyProperties() : do not try to copy ExtendedProperties if the collection is empty.
2893 - Pefromance fix in case of null constraint violation
2894 during data load (also in DataTable.cs).
2895 - CollectionChanged() : use correct column number after new DataColumn was added
2896 (differs in case some DataColumn was previosly removed).
2897 - EndEdit() - throw away proposed values only after CheckChildRows() complete.
2899 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
2901 * DataColumnCollection.cs : Since unique constraint is added now
2902 in DataColumn.SetTable() the additional creation of constraint in
2903 DataColumnCollection.Add() is redundant and causes exception - fixed.
2905 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
2907 * XmlDataLoader.cs : Added "never add data rows" mode.
2908 Removed unused code. However, it is temporary fixes to unify
2909 ReadXml() and InferXmlSchema().
2910 * DataSet.cs : Implemented InferXmlSchema(), though it is incomplete.
2912 I'll create another XmlDataLoader since there are many problems
2913 such that 1) it is too waste to read the entire xml into an
2914 XmlDocument, 2) it does not handle attributes correctly, and 3) it
2915 must handle "ignored namespaces".
2917 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
2919 * Added XmlSchemaDataImporter.cs (new schema reader).
2920 * DataSet.cs : Use XmlSchemaDataImporter (right now for DataSet only)
2921 for ReadXmlSchema().
2922 Let schema reading work to ReadXmlSchema().
2923 Don't return ReadSchema when argument read mode was DiffGram.
2925 2004-04-15 Umadevi S (sumadevi@novell.com)
2926 * Updated Clone/Copy methods in DataSet along with Testcase
2927 * ForeignKeyConstraint.cs - special ctor implemented
2928 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).
2929 * Changes in ConstraintCollection.cs for the above
2930 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.
2933 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
2935 * XmlSchemaMapper.cs : set parent key and foreign key info to
2936 DataRelation when reading refkey constraints.
2937 Supply constraint name for fkey.
2939 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
2941 * XmlDataLoader.cs : Don't overwrite existing DataSetName. When read
2942 mode is Auto, just ignore the schema if there is already schema info.
2943 * DataSet.cs : Similarly ignore schema info for XmlReadMode = Auto.
2945 2004-04-14 Atsushi Enomoto <atsushi@ximian.com>
2948 - In MS output, XML declaration looks to have standalone decl (yes).
2949 - ReadXml(reader) just calls to ReadXml(reader, XmlReadMode.Auto)
2950 - ReadXml(reader, mode)
2951 1) return originally specified mode, instead of (always) Auto.
2952 2) Check empty reader.
2953 3) Check diffgram schema and content separately.
2954 4) When diffgram exists, remaining (the same-level) contents
2956 5) Similar fact should be applied, but somewhat different.
2957 InferSchema and IgnoreSchema just skips, Fragment reads both
2958 schema and content, others just reads schema.
2959 - Removed unused code.
2960 * XmlDataLoader.cs :
2961 - Read() should skip in some ReadMode.
2962 - Don't compare schema element name as case-insensitive (well,
2963 should schemas be checked here?)
2964 - Avoided BuildDocument() not to create confusing DataSet
2966 - Don't add any tables when reader has single element.
2967 * XmlDiffLoader.cs :
2968 When target table was not found, MS.NET doesn't raise an error.
2969 * XmlSchemaMapper.cs :
2970 When XmlSchema.Read() left xml reader at </xs:schema>, read once.
2972 2004-04-13 Atsushi Enomoto <atsushi@ximian.com>
2975 - InferXmlSchema(): Throw explicit NotImplementedException now.
2976 - Don't put XML declaration everywhere. Write just for filename arg.
2977 - xmlns="" should not be written. Maybe WebService problem is
2978 because default namespace is overwritten. This patch will keep
2979 the WS problem away and actually fixes some unit tests (i.e. use
2980 explicit String.Empty for null namespace in WriteStartElement()).
2981 - MoveToContent() should always be called, not only when
2982 LocalName="xml". It will ignore prolog (DTD, PI, comment etc.).
2983 - Even XmlReadMode is DiffGram, reader might not be "diffgram"
2984 element. As to MSDN, diffgram does not contain schema.
2986 2004-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2988 * DataTable.cs: made _initStatus private so that System.Data is CLS
2991 2004-04-13 Umadevi S <sumadevi@novell.com>
2992 * UniqueConstraint.cs:
2993 * ConstraintCollection.cs:
2995 - Implemented a Constructor for UniqueConstraint.cs
2996 - Used EndInit on DataTable to call a delegate which adds the
2997 constraints passed to the most recent call of AddRange().Used
2998 AddRange() on ConstraintCollection to check whether
2999 DataTable.BeginInit has occurred. If yes, save the argument
3000 constraint collection passed, then return. If no, Check whether the
3001 constraints are of type UniqueConstraint and initialized with the
3002 special constructor If yes Initialized the table property of this
3003 UniqueConstraint object with table assosciated with the current
3004 instance of ConstraintCollection class.
3006 2004-04-07 Marek Safar <marek.safar@seznam.cz>
3008 * Constraint.cs: changed ClsCompliant to CLSCompliant, build fix.
3010 2004-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3013 * DataColumnCollection.cs:
3014 * DataRelationCollection.cs:
3015 * DataRowCollection.cs:
3016 * DataTableCollection.cs:
3017 * InternalDataCollectionBase.cs:
3018 * Node.cs: CLS compliance for System.Data. Patch by Gert Driesen.
3021 2004-04-05 Jackson Harper <jackson@ximian.com>
3023 * DataTable.cs: Add rows to the row list if there is no filter.
3025 2004-03-31 Juraj Skripsky <juraj@hotfeet.ch>
3027 * DataColumn.cs : Setting Caption to null sets it to the empty string
3028 (ms.net behaviour, testcase is in DataColumnTest).
3030 * DataRow.cs : Evaluate DataColumn.Expression when such a column's
3033 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
3035 * DataColumn.cs: In Expression setter, set the expression member even if
3036 it is an empty string.
3037 * DataSet.cs: Support serialization of byte[] columns.
3038 * XmlDataLoader.cs: Support deserialization of Guid columns.
3039 Set MappingType.Attribute to columns infered from attributes.
3041 2004-03-29 Juraj Skripsky <juraj@hotfeet.ch>
3043 * ExpressionElements.cs : remove
3044 * DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
3045 Integration of new Mono.Data.SqlExpressions classes used in
3046 DataTable.{Select, Compute}.
3047 Fixes bug #55503 and lots of failures in DataTableTest.cs.
3049 2004-03-28 Juraj Skripsky <juraj@hotfeet.ch>
3051 * Index.cs: Simple fix in ComparePartialRowNonUnique.
3052 This fixes bugs #56129 and #56014.
3054 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
3056 * DataSet.cs: In WriteXml (string filename, XmlWriteMode mode), close the
3057 stream after writing the dataset. This fixes bug #52581.
3058 Also added several writer.Close into finally blocks, so writers are properly
3059 closed in case of an exception.
3061 2004-03-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
3063 * Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
3064 * DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
3065 * ColumnTypeConverter.cs: Added stub
3066 * DefaultValueTypeConverter: Added stub
3067 * ConstraintConverter.cs: Added stub
3069 2004-03-04 Eran Domb <erand@mainsoft.com>
3071 * XmlDataLoader.cs : Xml reading reviewed. Added support for additional xml formats as described
3072 in MS.NET documentation (missing DataSet element etc).
3074 2004-03-04 Eran Domb <erand@mainsoft.com>
3077 * Index.cs : Rollback last changes.
3079 2004-03-03 Atsushi Enomoto <atsushi@ximian.com>
3081 * Index.cs : justa build fix.
3083 2004-03-03 Eran Domb <erand@mainsoft.com>
3086 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint, ConstraintCollection.cs, DataColumn.cs,
3087 DataRow.cs, DataRowCollection.cs, DataSet.cs, DataTable.cs : Changes made for using indexes on tables.
3088 This changes made for performance improvement.
3090 2004-02-08 Eran Domb <erand@mainsoft.com>
3092 * XmlSchemaMapper.cs : Read columns is they were written as SimpleContent or as Attributes.
3094 2004-02-08 Eran Domb <erand@mainsoft.com>
3096 * DataSet.cs: Fix some bugs in ReadXml().
3098 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
3100 * DataSet.cs: Added missing method that broke the build.
3102 2004-02-04 Eran Domb <erand@mainsoft.com>
3104 * DataRowCollection.cs (InsertAt): Add a check for null row. Replace check of IndexOf with RowId for
3106 * DataSet.cs (GetTableSchema) : Add supprot for simple content columns. Change the condition for a case
3107 when all column are attributes (elements count is 0), we still want to add the relations. No relations
3108 can be on simple contents.
3109 (AddUniqueConstraints) Check that the column of the constraint are not hidden.
3110 (AddForeignKeys) Check that the relation has constraints attach to it.
3111 * XmlConstants.cs : Added constant.
3113 2004-02-04 Eran Domb <erand@mainsoft.com>
3115 * DataSet.cs : GetSchemaSerializable() return null and not BuildSchema().
3116 DoWriteXmlSchema calls BuildSchema ().
3118 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
3120 * DataRow.cs: Added SetOriginalValue(), which is used to set the original
3122 * DataRowCollection.cs: In InsertAt(), perform the correct checks and
3124 * DataSet.cs: Fixed method GetChanges(): Parent rows of modified rows must
3125 also be added to the dataset.
3126 In WriteTable(), do not write unchanged rows when writing the original
3127 version of the table.
3128 Added WriteIndividualTableContent(), for writing the contents of a single
3130 Changed BuildSchema and related methods, so it can generate a schema for
3131 any set of tables, not just the tables of the dataset (needed for
3132 single datatable serialization).
3133 * DataTable.cs: Implemented serialization constructor and GetObjectData method.
3134 Also implemented some ReadXmlSchema methods.
3135 * XmlDiffLoader.cs: Read and process the xml document directly from XmlReader,
3136 instead of loading the full dataset in an XmlDocument. It is faster and
3137 saves memory. Also fixed several problems when generating the changes.
3138 * XmlSchemaMapper.cs: Support reading schemas for single tables (used by
3139 table serialization).
3141 2004-02-02 Eran Domb <erand@mainsoft.com>
3143 * DataSet.cs : Add indentation to the xml serialization only if we create the XmlWriter.
3144 Add the namespace attribute even if namespace is an empty string for inteoperability with MS.NET.
3145 * DataTable.cs (NewRow): Create only one DataRowBuilder.
3146 Initiate new row with row id -1.
3147 * DataRow.cs : Add RowId property.
3148 * DataRowBuilder.cs : Add _rowId member.
3149 * DataRowCollection.cs (Add) : Use the RowId property of the new row to check if it is already exists in the collection.
3151 2004-01-26 Eran Domb <erand@mainsoft.com>
3153 * XmlConstants.cs : Added some constants.
3154 * DataColumn.cs : Added a method to retrive AutoIncrement value.
3155 * XmlDataLoader.cs : Set the value of the foriegn key column, according to the value of the
3156 parent table column.
3157 * XmlDiffLoader.cs : Convert the value comming from the xml.
3158 * XmlSchemaMapper.cs (Read) : Set the DataSet namespace.
3159 (ReadXmlSchemaSequence) : Change the logic that decides if this element is a column or a table.
3160 (ReadXmlSchemaElement) : Set the locale of the dataset.
3161 (ReadColumn) : Set the column type. Find if the column is AutoIncrement.
3162 (GetColumnType) : New method to get the column type from the attribute value.
3163 (ReadXmlSchemaUnique) : Improve parsing of XPath. Set the constraint as a PK if needed,
3164 and add the constraint to the table.
3165 (ReadXmlSchemaKeyref) : Improve parsing of XPath. Create the FK constraint and add it to
3167 * DataSet.cs : Improving writing of unique constraints, and foriegn key constraint. Givving them the correct names.
3168 Writing more information to the schema for interoperability with ms.net.
3169 Improve diffgarm writing mode.
3172 2004-01-21 Atsushi Enomoto <atsushi@ximian.com>
3174 * TypedDataSetGenerator.cs : Implemented GenerateIdName().
3176 2004-01-21 Eran Domb <erand@mainsoft.com>
3178 * XmlDataLoader.cs (AddRowToTable) : Give thre new relation correct name.
3179 Do not set the child column to be AutoIncrement.
3180 Create the new column for the relation as MappingType.Hidden so they will not be serialized
3181 when writing the dataset to xml.
3183 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
3185 * Added missing TypedDataSetGenerator.cs.
3187 2004-01-08 Eran Domb <erand@mainsoft.com>
3189 * XmlSchemaMapper.cs : Fix a bug. Check if table already in DataSet before adding it.
3190 * DataSet.cs (ReadXml) : Fix bugs. Read correctly the xml file with XmlReadMode of DiffGram,
3191 InferSchema, ReadSchema and IgnoreSchema.
3192 * XmlDataLoader.cs : All modes use the same logic.
3193 * XmlDiffLoader.cs : Adding BuildXmlDocument method to the class.
3195 2004-01-06 Eran Domb <erand@mainsoft.com>
3197 * DataRelationCollection.cs : Use IndexOf in indexer.
3198 * DataSet.cs : Adding support for WriteXml with diffgram. Code style changes.
3199 * XmlDataLoader.cs : Set the DataSet.enforceConstraints to false before loading the tables.
3200 * XmlDiffLoader.cs : Reading nested tables.
3201 * XmlSchemaMapper.cs : Reading the relation.
3202 * XmlConstants.cs : Adding some constants.
3204 2004-01-05 Jackson Harper <jackson@ximian.com>
3206 * DataView.cs: Set readonly property of property descriptor. This
3209 2004-01-01 Sanjay Gupta <gsanjay@novell.com>
3211 * DataRelationCollection.cs : Fixed incorrect generation of default
3213 * DataSet.cs : Added missing functionality in WriteXml().
3214 * XmlConstants.cs : Added new constants.
3216 2003-12-27 Atsushi Enomoto <atsushi@ximian.com>
3218 * DataSet.cs : Fixed incorrect WriteXml() signature.
3220 2003-12-18 Jackson Harper <jackson@ximian.com>
3222 * DataView.cs: Implement AddNew, Delete, and OnListChanged.
3224 2003-12-17 Atsushi Enomoto <atsushi@ximian.com>
3226 * DataSet.cs, XmlDataLoader.cs : Table name should be encoded before
3227 they take shape of xml. This fixed bug #52240
3229 2003-12-16 Tim Coleman <tim@timcoleman.com>
3230 * KeyRestrictionBehavior.cs:
3231 New stubs added for .NET 1.2
3235 2003-12-08 Eran Domb <erand@mainsoft.com>
3236 * DataColumn.cs (Expression) : Validate the expression.
3238 * DataRelationCollection.cs (IndexOf) : Added new method sensetive to case differences in relation name.
3239 (Contains, IndexOf, this[], Add) : Call new IndexOf when needed.
3241 * DataRow.cs (this[]) : Fix the condition for throwing RowNotInTableException.
3242 (RejectChanges) : Detach row when state was Added.
3243 (CollectionChanged) : Fix a bug.
3245 * ExpressionElement (ValidateExpression) : Fix a bug.
3247 * ForeignKeyConstraint.cs (AssertConstraint) : Added implementation. Check all rows from child table have
3248 a parent row in the parent table.
3249 (_validateColumns) : Fix bugs.
3251 * MergeManager.cs (AdjustSchema) : Fix a bug.
3253 * XmlDataLoader.cs (ReadModeInferSchema) : Change implementation. Now we can read nested xml, and we generate the relations
3256 2003-11-30 Eran Domb <erand@mainsoft.com>
3257 * DataColumnCollection.cs (this[string name]) : Use IndexOf to find the column.
3258 (Add) : Find if the new column name is the same as the one found in IndexOf.
3259 (IndexOf) : New method.
3260 (Contains) : Use new IndexOf.
3261 (IndexOf) : Use new IndexOf.
3263 * DataRelationCollection.cs (DataRelationCollection.AddCore) : Add The Relation to the collection.
3264 (DataSetRelationCollection.AddCore) : First add the UniqueConstraint.
3266 * DataRow.cs (this[int columnIndex, DataRowVersion version]) : Change exceptions.
3267 (Delete) : Detach row if the RowState was Added.
3268 (GetChildRows) : Get the array form the ChildTable.
3269 (GetParentRows) : Get the array from the ParenTable.
3271 * DataRowCollection.cs (Remove) : Check if row state is Detached to avoid exception.
3273 * DataSet.cs (IXmlSerializable.ReadXml) : Do not call MoveToContent and ReadEndElement - the XmlSerializationReader does it.
3275 * DataTable.cs (PrimaryKey) : Fix bugs.
3276 (Compute) : First call Select. Then create ExpressionAggregate to aggregate the Select result.
3278 * DataTableCollection.cs (Add) : Fix a bug.
3280 * ExpressionElement.cs (ValidateExpression) : Turning ValidateExpression to static.
3281 (Result) : Added new interface to AggregateExpression that get DataRow[] as a param.
3282 Some code style changes (tab instead of whit spaces, alignment, etc...).
3284 * ForeignKeyConstraint.cs (_validateColumns) : Throw correct exception.
3286 * MergeManager.cs (AdjustSchema) : Fix a bug.
3290 2003-11-26 Miguel de Icaza <miguel@ximian.com>
3292 * DataSet.cs: Add a few more missing methods, code style updated
3295 2003-11-26 Tim Coleman <tim@timcoleman.com>
3297 * ConflictOptions.cs DataAdapterException.cs DataTableReader.cs
3298 * DbMetaData.cs FillOptions.cs IDataReader2.cs IDataRecord2.cs
3299 * IDataUpdatableRecord.cs IDbAsyncCommand.cs IDbAsyncConnection.cs
3300 * IDbExecutionContext.cs IGetTypedData.cs ISetTypedData.cs
3301 * LoadOption.cs OperationAbortedException.cs ResultSetOptions.cs
3302 * ResultSetSensitivity.cs StatementCompletedEventArgs.cs
3303 * StatementCompletedEventHandler.cs UpdateOptions.cs:
3304 New classes added for NET_2_0
3305 * DBConcurrencyException.cs DataRelation.cs DataSet.cs DataTable.cs
3306 * DataTableCollection.cs DataView.cs ForeignKeyConstraint.cs:
3307 Modifications to add new NET_2_0 functions
3309 2003-11-25 Tim Coleman <tim@timcoleman.com>
3313 2003-11-21 Pedro Martinez Julia <yoros@wanadoo.es>
3315 * DataRow.cs: Detached row can be accesible (new rows from data
3316 table are detached). Closes but #51263.
3318 2003-11-19 Eran Domb <erand@mainsoft.com>
3319 * DataRow.cs : Throw exceptions if Row is Detached.
3320 (EndEdit) : Check that we are not in middle of ChangeEvent.
3321 (AcceptChanges) : Detach the row.
3323 * DataRelation.cs : throw correct exception.
3324 *UniqueConstraint.cs : throw correct exception.
3327 2003-11-09 Pedro Martinez Julia <yoros@wanadoo.es>
3329 * DataRow.cs: Use RemoveInternal instead of Remove because the last
3330 one uses Delete and AcceptChanges.
3332 * DataRowCollection.cs: When removing, Delete and AcceptChanges
3333 method from the row are called. Added an internal method that will
3334 be used by DataRow to "physically" remove the row from the list.
3336 2003-11-09 Pedro Martinez Julia <yoros@wanadoo.es>
3338 * DataRowCollection.cs: To follow the specification: Remove and
3339 RemoveAt should remove the row. But needed to call DeletingDataRow
3340 to prepare the deleting.
3342 * DataRow.cs: Don't call DeletingDataRow when it is called by the
3343 method Table.Rows.Remove.
3345 2003-11-09 Pedro Martinez Julia <yoros@wanadoo.es>
3347 * DataRowCollection.cs: Make the row be deleted by itself. If not,
3348 it fails because we need to call OnRowDeleting and OnRowDeleted. It
3349 is full implemented inside DataRow.
3351 2003-11-05 Eran Domb <erand@mainsoft.com>
3352 * DataView.cs (ctor) : Changing default RowStateFilter to CurrentRow.
3354 2003-11-04 Eran Domb <erand@mainsoft.com>
3355 * DataRow.cs (CheckChildRows) : Improving the implementation - checking child for all FK, and not
3357 (GetChildRows) : Adding some checks.
3358 (GetParentRows) : Adding some checks. Fix a bug in implementation.
3359 (SetParentRow) : Added implementation.
3361 * DataRowCollection.cs (Add) : Added more checks on the row added to the collection.
3362 * DataTable.cs (Copy) : Set the During Loading flag to save unnecessary assertions.
3363 * ForeignKeyConstraint.cs (AssertConstraint) : Fixing bugs in implementation. Checking for DBNull values in the row.
3364 * MergeManager.cs : Check that the target table is not null.
3366 2003-10-27 Eran Domb <erand@mainsoft.com>
3367 * DataColumn.cs (DefaultValue) : Changing null value to DBNull. Checking that the type of the new default value
3368 can be converted to the column type.
3370 * DataRelationCollection.cs (AddCore) : Give the new FK the name of the relation.
3372 * DataRow.cs (EndEdit) : Check if we need to validate the constraints.
3373 (GetParentRows, GetChildRows) : Checking that the row has the wanted version, before accessing the row's value.
3375 * DataRowCollection.cs (Add) : Fixing a bug.
3376 (Clear) : Before clearing the array check that there is no violation of FK constraint.
3378 * DataSet.cs (Prefix) : If value is null chage it to empty string.
3379 (GetXml) : Removing the Processing Instructions from the xml string as in MS ADO.NET.
3381 * ExpressionElement : Adding support for IN expresion.
3383 * DataTable (CopyConstraints) : New method that copy the tables constraints to the copy table.
3384 (Select) : Adding support for DataViewwRowState.
3386 * ForeignKeyConstraint.cs (AssertConstraint) : Adding implementation.
3388 * MergeManager.cs (MergeRow) : Fix bugs.
3390 2003-10-27 Eran Domb <erand@mainsoft.com>
3391 * DataRow.cs (SetColumnValue): Donot check null value when in midle of loading data.
3392 check null values when ending loading data.
3394 * DataSet.cs (RejectChanges) : Imlementation.
3395 (Prefix) : If prefix was changed fire event. Check that the prefix is not null - if null,
3396 change it to empty string.
3398 * DataTable.cs (BeginLoadData, EndLoadData) : Impemantation.
3400 2003-10-22 Eran Domb <erand@mainsoft.com>
3401 * MergeManager.cs : Fixing bugs. Adding check for PrimaryKey matching.
3403 * ConstraintCollection.cs (RamoveAt): Change implemntation.
3405 * DataTableCollection (CanRemove): Removing cast to Constraint.
3407 2003-10-22 Eran Domb <erand@mainsoft.com>
3408 * DataRelationCollection.cs (AddCore): The unique constraint was added even if the createConstraints flag was false.
3409 (Clear): The collection was cleared without removing the relation from the parent and child tables.
3411 * DataSet.cs (Copy, Clone): The Relations of the DataSet were not copy.
3412 (HasChanges, Reset): Imlementation.
3414 * DataTable.cs (HasErrors): There is no flag for errors, instead the table ask her row if they have any errors.
3415 This is because the we do not no when to turn off the flag.
3416 (Locale): Changing implementation to behave like ADO.NET.
3417 (AcceptChanges): Fix bug.
3418 (Clear): Check that this table is not referenced from a foreign key constraint.
3419 (Copy): Do not try to access a deleted row.
3420 (CopyProperties): Copy the PrimaryKey.
3421 (GetChanges, ImportRow): Implementation.
3422 (LoadDataRow): Adding implementation if the table has PrimaryKey.
3423 (ToString): Changing implementation to behave like ADO.NET.
3425 * UniqueConstraint.cs (AssertConstraint): support for Multiple DataColumns in the constraint.
3427 * DataRow.cs (Ctor): In the constructor we initiate the current array, but we should initiate only the proposed array for new rows.
3428 (HasErrors): Implementation.
3429 (Delete): Added checking for child rows of the deleted row.
3430 (EndEdit): Added checking for child row and firing events.
3431 (GetColumnError): Added a check that the method will not return null, as in ADO.NET(an empty string is returned).
3432 (GetColumnsInError): Added a check for null values in column error.
3433 (HasVersion): Added special treatment for special RowState.
3434 (CollectionChanged): More checks to avoid NullReferenceException.
3436 * DataRowCollection.cs (Remove): Fix a bug.
3439 2003-10-01 Duncan Mak <duncan@ximian.com>
3441 More patches from Eran Domb <erand@mainsoft.com>.
3443 * MergeManager.cs: New file.
3445 * DataRelationCollection.cs (AddCore): Check that a
3446 UniqueConstraint is already exists. It loops over the Relations
3447 instead of the Constraints.
3448 (Add, AddCore): The relation was added twice.
3450 * DataSet.cs (Merge, GetChanges, HasChanges): Implemented.
3452 2003-09-30 Duncan Mak <duncan@ximian.com>
3454 Patches from Eran Domb <erand@mainsoft.com>.
3456 * DataRelation.cs (constructor): When the name of the relation is
3457 null, it should return an empty, not "Relation".
3459 * DataRow.cs (AcceptChanges): Added special case for
3461 (CancelEdit): Set editing flag to false.
3462 (IsNull): Check that the value is DBNull.
3464 * DataRowCollection.cs (Add): There was no check that the table of
3465 the collection is owned by a DataSet.
3467 * DataSet.cs (OnMergeFailed): Added.
3469 * UniqueConstraint.cs (AssertConstraint): There was no check that
3470 values in the row are not null, where it is a primary key
3471 column. Also check that the row has a proposed version, if not,
3472 get the current version when we compare the rows.
3474 2003-09-25 Duncan Mak <duncan@ximian.com>
3476 Patches from Eran Domb <erand@mainsoft.com>.
3478 * DataColumn.cs (Unique): Implemented.
3481 * ConstraintCollection.cs:
3482 * ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
3483 an Exception thrown. Details:
3484 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html
3486 * DataRowCollection.cs (Add): There is no checking that there is
3487 no violation of the unique constrains.
3489 * UniqueConstraint.cs (AssertConstraint): There is no checking on
3490 all columns in the constraint.
3492 * DataTableCollection (Add): Correctly throw an Exception, more
3494 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002117.html
3495 (Remove, RemoveAt): Implemented.
3497 2003-07-31 Duncan Mak <duncan@ximian.com>
3499 * DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
3501 2003-07-25 Ravi Pratap <ravi@ximian.com>
3503 * DataRelation.cs (OnPropertyChanging): Calling the 'Invoke'
3504 method on a delegate is disallowed - fix this.
3506 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
3508 * DataSet.cs: Implemented IXmlSerializable interface. Added basic support for
3509 xml serialization. Modified method of writing schema. Now it creates
3510 a XmlSchema object and serializes it using XmlSerializer.
3511 * XmlConstants.cs: Added constants for data type names.
3512 * XmlDataLoader.cs: Fixed deserialization of data. Now converts data to the
3513 type specified in the column.
3515 2003-04-20 Alan Tam <Tam@SiuLung.com>
3517 * DataRelationCollection.cs: Fix a bug that prevent relations
3518 from being added via DataSet.
3520 2003-04-12 Ville Palo <vi64pa@kolumbus.fi>
3522 * UniqueConstraint.cs: one tiny fix.
3524 2003-04-05 Ville Palo <vi64pa@kolumbus.fi>
3526 * DataTable.cs: Remove UniqueConstraints when adding new ones
3528 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
3530 * DataColumnCollection.cs: Little 'case sensitive' fix
3532 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
3534 * DataRow.cs: AutoIncrement handling to Constructor
3535 * DataRowCollection.cs: This doesnt need anymore AutoIncrements
3537 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
3539 * DataTable.cs: Some fixes to PrimaryKey etc...
3540 * UniqueConstraint.cs: Little clean up
3542 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
3544 * DataTable.cs: Tiny fix to ToString () -method
3546 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
3548 * ConstraintCollection.cs: Little fix.
3549 * DataColumn.cs: Added new internal method SetUnique()
3550 * UniqueConstraint.cs: some little fixes
3552 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
3554 * DataRowCollection.cs: Bugfixes, implementation,...
3556 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
3558 * DataColumn.cs: If DataType if set to something else than short, int
3559 or long and AutoIncrement is true, AutoIncrement is must set to false.
3561 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3564 (BeginEdit): fixed array bound problem when a column has been added.
3565 (EndEdit): just assign proposed to current as proposed is set to null.
3566 This also fixes another array boudn problem.
3568 2003-03-21 Alan Tam <Tam@SiuLung.com>
3570 * DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
3571 EndEdit and AcceptChanges to act correctly according to DataRowState
3573 * DataRowCollection.cs: Call AttachRow and DetachRow when a row is
3574 attached and detached from the collection.
3576 2003-03-20 Alan Tam <Tam@SiuLung.com>
3578 * DataColumn.cs: Store empty string for Expression when null is passed in.
3579 Classes generated by XSD.exe passes null by default.
3581 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
3583 * DataColumnCollection.cs: Tiny clean up
3585 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
3587 * DataColumn.cs: little fixes.
3588 * DataColumnCollection.cs: Lots of little fixes and improvments.
3590 2003-03-12 Alan Tam <Tam@SiuLung.com>
3592 * DataSet.cs: Fixed a bug that the file written does not close correctly.
3594 2003-03-08 Alan Tam <Tam@SiuLung.com>
3596 * DataRelationCollection.cs: Removed the mis-overridden methods
3597 * DataRow.cs: Fixed an attribute
3598 * DataSet.cs: Fixed the modifiers
3600 2003-03-06 Aleksey Demakov <avd@openlinksw.com>
3602 * DataTableCollection.cs: The Contains (string name),
3603 IndexOf (string name) methods, and item[string name] indexer
3604 now behave more like .NET with respect to case-sensitivity.
3605 That is if there is an exactly matching item then this one is used.
3606 If there is only one item differing in case then it used.
3607 If there are more than one item differing in case then
3608 Contains returns false, IndexOf returns -1, and item[]
3609 throws an ArgumentException.
3611 2003-02-28 Ville Palo <vi64pa@kolumbus.fi>
3613 * ExpressionElement.cs: More implementation.
3615 2003-02-28 Alan Tam <Tam@SiuLung.com>
3616 * DataSet.cs: Changed WriteTable so that it now calls the newly written
3617 WriteObjectXml to direct the call to the respective XmlConvert method.
3618 This fixes the wrong format written to XML files of bool, float,
3619 double, DateTime and TimeSpan types.
3621 2003-02-25 Alan Tam <Tam@SiuLung.com>
3623 * DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
3624 * DataRelationCollection.cs: Implemented AddRange and Contains.
3625 Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
3626 Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
3627 Reimplemented most Add methods to eliminate duplicated checks.
3628 Centralized RelationName generation procedure in GetNextDefaultRelationName.
3630 2003-02-25 Alan Tam <Tam@SiuLung.com>
3632 * DataColumn.cs: Fixed wrong storage representation of Expression
3633 (using empty string instead of null) so that ToString() returns nothing.
3634 * DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
3635 auto column naming now works as expected. Reimplemented some Add methods
3636 to eliminate code duplication.
3638 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
3640 * DataTable.cs: DataTable.CaseSensitive follows parent
3641 DataSet.CaseSensitive property if DataTable.CaseSensitive has never
3642 been changed directly from DataTable
3644 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
3646 * DataSet.cs: When CaseSensitive property is changed all of the Tables
3647 of DataSet have to change too
3649 2003-02-19 Daniel Morgan <danmorg@sc.rr.com>
3651 * InternalDataCollectionBase.cs: revert change to field
3654 * DataViewManager.cs
3657 * DataSet.cs: commented use of DesignerAttribute
3658 because it broke the build. According to MSDN,
3659 DesignerAttribute does not have a zero-argument constructor
3661 2003-02-18 Ville Palo <vi64pa@kolumbus.fi>
3663 * DataColumnCollectin.cs: Little fix for indexer and case sensitivity
3665 2003-02-18 Alan Tam <Tam@SiuLung.com>
3667 * DataRow.cs: Implemented GetParentRow and GetParentRows.
3668 * DataSet.cs: Added stub for HasChanges, InferXmlSchema,
3669 OnPropertyChanging, OnRemoveRelation, OnRemoveTable,
3670 RaisePropertyChanging.
3671 * DataTable.cs: Implemented NewRowArray.
3672 * DataTablePropertyDescriptor: Fixed a modifier.
3673 * InternalDataCollectionBase.cs: Fixed modifiers. Implemented SyncRoot.
3674 * PropertyCollection.cs: Minor fix.
3675 * ConstraintCollection.cs DataColumn.cs DataColumnCollection.cs
3676 * DataRelation.cs DataRelationCollection.cs DataRow.cs
3677 * DataRowCollection.cs DataRowState.cs DataSet.cs DataTable.cs
3678 * DataTableCollection.cs DataTablePropertyDescriptor.cs DataView.cs
3679 * DataViewManager.cs DataViewRowState.cs DataViewSettingCollection.cs
3680 * ForeignKeyConstraint.cs InternalDataCollectionBase.cs
3681 * PropertyCollection.cs UniqueConstraint.cs: Added missing attributes
3683 2003-02-08 Ville Palo <vi64pa@koti.soon.fi>
3685 * ExpressionElement.cs: More implementation
3687 2003-02-05 Alan Tam <Tam@SiuLung.com>
3689 * DataSet.cs: Added framework for DataSet.Update Implemented missing
3690 methods GetSchemaSerializable, GetSerializationData,
3691 ReadXmlSerializable, ShouldSerializeRelations and ShouldSerializeTables
3693 * DataTable.cs: Implemented missing methods CreateInstance and
3694 GetRowType for DataTable
3696 2003-02-03 Ville Palo <vi64pa@koti.soon.fi>
3698 * DataSet.cs: Implemented private method MapType for
3699 mapping datatypes for XmlSchema
3701 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3703 * DataView.cs: implemented Dispose.
3705 2003-01-30 Ville Palo <vi64pa@koti.soon.fi>
3707 * ExpressionElement.cs: Added new file. This file is for parsing
3708 and DataData.Select () -methods and DataColumn.Expression -property
3709 * DataTable.cs: Implemented Select(string) -method
3711 2003-01-28 Ville Palo <vi64pa@koti.soon.fi>
3713 * DataSet.cs: One little fix to writing xml
3715 2003-01-27 Ville Palo <vi64pa@koti.soon.fi>
3717 * XmlSchemaMapper.cs: Some fixes.
3718 * DatSet.cs: Some XmlFixes and BeginInit ()/ EndInit () -fix
3721 2003-01-24 Ville Palo <vi64pa@koti.soon.fi>
3723 * UniqueConstraint.cs: Do not set columns Unique property true
3725 * ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table
3727 2003-01-18 Ville Palo <vi64pa@koti.soon.fi>
3729 * DataTableCollection.cs: Now names new DataTable if it doesn't
3730 already have a name.
3732 2003-01-17 Ville Palo <vi64pa@koti.soon.fi>
3734 * XmlSchemaMapper.cs: Improvments.
3735 * XmlConstaints.cs: Added more constants.
3736 * DataSet.cs: Improvments of reading and writing xml
3737 * DataColumn.cs: Added default values of properties.
3739 2003-01-14 Ville Palo <vi64pa@koti.soon.fi>
3741 * XmlSchemaMapper.cs: Some improvments
3743 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
3745 * DataRowCollection.cs: Added IndexOutOfRangeException
3746 * DataTableCollection.cs: Added OnCollectionChanging and
3747 OnCollectionChanged events.
3748 * DataSet.cs: Many fixes. Implemented Clone () and Copy () -methods
3749 * DataTable.cs: Implemented Copy () and Clone () methods.
3750 * XmlDataLoader.cs: some fixes.
3751 * XmlSchemaMapper.cs: comments.
3753 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3755 * DataColumnPropertyDescriptor.cs: store columnIndex in the .ctor.
3757 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3759 * DataColumnPropertyDescriptor.cs: fixed typo.
3760 * DataViewManagerListItemTypeDescriptor.cs: added new internal property
3761 to get the DataViewManager and removed TablePD class.
3762 * DataTablePropertyDescriptor.cs: TablePD class is now this one as
3763 suggested by danmorg.
3765 2003-01-06 Ville Palo <vi64pa@koti.soon.fi>
3767 * XmlDataLoader.cs: Moved diffgram stuff to new internal class
3769 * XmlDiffLoader.cs: new class for diffgrams. Added handling of
3770 diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
3772 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3774 * DataView.cs: made dataViewManager internal.
3775 * DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
3776 properties of the object, but the values of the columns present in a
3779 * DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
3780 which returns a PropertyDescriptorCollection. Created a new class
3781 derived from PropertyDescriptor that treats Table as an object whose
3782 properties are DataRowView.
3784 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
3786 * XmlSchemaMapper.cs: Added handling for Constraints, Attributes.
3788 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
3790 * DataColumn.cs: ExtendedProperties is by default !null-
3792 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
3794 * DataColumnCollection.cs: Add (DataColumn Column) -method didn't
3795 set column's ordinal.
3797 2003-01-02 Ville Palo <vi64pa@koti.soon.fi>
3800 * XmlDataLoader.cs: XmlReader closing fixes.
3801 * XmlSchemaReader.cs: Added support for ref=
3803 2003-01-01 Ville Palo <vi64pa@koti.soon.fi>
3806 - Added XmlReader and XmlWriter Closing.
3807 - Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
3808 * XmlSchemaMapper.cs
3809 - Much better way IMHO to map xmlschema than the old one in
3810 DataSet.cs. Its, more flexible, cleaner, ...
3812 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
3814 * XmlDataLoader.cs: Reading diffgrams.
3816 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
3818 * DataRow.cs: Little fix to indexer and DataColumnCang* trigger fixes.
3819 * DataTable.cs: Added ChanginDataColumn () for triggering
3820 DataColumnChanging event
3822 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
3824 * DataSet.cs: Indentations to WriteXmlSchema () and one little fix
3826 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
3828 * DataSet.cs: Indentations to WriteXml ()
3830 2002-12-27 Ville Palo <vi64pa@koti.soon.fi>
3833 * XmlDataLoader.cs: Moved ReadXml -stuff from DataSet.cs to new
3834 class XmlDataLoader.cs
3836 2002-12-19 Ville Palo <vi64pa@koti.soon.fi>
3838 * DataSet.cs Implemented ReadXml with XmlReadMode.ReadSchema
3840 2002-12-18 Ville Palo <vi64pa@koti.soon.fi>
3842 * DataSet.cs: Started to implement ReadXml-methods.
3844 2002-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3846 * DataSet.cs: implemented DefaultViewManager and GetList.
3848 * DataViewManager.cs: a bit of work on IList and ITypedList needed by
3849 DataList in System.Web.
3851 * DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
3854 2002-12-16 Ville Palo <vi64pa@koti.soon.fi>
3857 * DataTable.cs: Fixed NullException (rollback -event)
3858 * DataSet.cs: WriteXml -method does not anymore write <?xml... row.
3860 2002-12-15 Ville Palo <vi64pa@koti.soon.fi>
3863 * DataRowCollection.cs: Moved event triggering from DataRow to
3866 2002-12-09 Ville Palo <vi64pa@koti.soon.fi>
3868 * DataSet.cs: Little fix to WriteTable () -method
3869 and DoReadXmlSchema () -method.
3871 2002-12-06 Ville Palo <vi64pa@koti.soon.fi>
3873 * DataSet.cs: Clean up to reading xmlschema. This looks much better
3874 now (work better too), but it not working correctly yet.
3876 2002-12-04 Ville Palo <vi64pa@koti.soon.fi>
3879 * DataRowCollection.cs: Added some event handlins stuff.
3880 * DataSet.cs: Some fixes.
3881 * DataTable.cs: Added event handlers.
3883 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
3885 * DataRowChangeEventArgs.cs: Implemented Action and Row properties
3887 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
3889 * System.Data/DataRow.cs: Added internal property XmlDataID
3891 2002-11-29 Ville Palo <vi64pa@koti.soon.fi>
3893 * DataSystem.Data.DataTableCollection.cs:
3894 Removed HashTable. There could be situations where DataTable
3895 is added to collection before it hava TableName. So using
3896 HashTable is impossible.
3898 2002-11-19 Carlos Guzman Alvarez <carlosga@telefonica.net>
3900 * DataRow.cs: an object that is equal to null
3901 should be allowed to be set in this indexer too
3904 2002-11-06 Daniel Morgan <danmorg@sc.rr.com>
3906 * DataColumnPropertyDescriptor.cs: added file
3908 * System.Data/DataRowView.cs: started implementation
3910 * DataTable.cs: stubbed more interfaces. Implemented
3911 IListSource.GetList()
3913 * DataView.cs: stubbed more interfaces. Implemented
3914 some properties and methods: GetEnumerator(),
3915 ITypedList.GetItemProperties, Item indexer, CopyTo()
3917 2002-05-18 Nick Drochak <ndrochak@gol.com>
3919 * DataRow.cs: Fix typo.