1 2008-11-18 Raja R Harinath <harinath@hurrynot.org>
4 * XmlConstants.cs (QnUnsignedShort): Rename from QnUsigned short
6 * XmlSchemaWriter.cs (XmlQualifiedName): Update to changes.
8 2008-09-27 Raja R Harinath <harinath@hurrynot.org>
10 * DataView.cs: Convert into a partial class and sequester
11 interface-implementations and NET_2_0 pieces into separate parts.
13 2008-09-16 brandin claar <brandin.claar@gmail.com>
14 Raja R Harinath <harinath@hurrynot.org>
16 * DataTable.cs (BinarySerialize): Handle empty DataTables.
17 (DeserializeRecords): Likewise.
18 (BinaryDeserializeTable): Allow DefaultValue to be set to any value.
20 2008-09-12 Raja R Harinath <harinath@hurrynot.org>
22 * DataTable.cs (NewRowAdded): Make into partial method.
23 (DataTableClearing, DataTableCleared): New partial methods.
26 * DataTable.cs: Sequester ISupportInitializationNotification
27 pieces into separate part.
28 (DataTableInitialized): Turn into a 'partial method' to avoid #ifs.
30 * DataTable.cs (AssertNotNullConstraints): Hoist out a more useful
31 loop-invariant by inverting loops.
32 (RowExists): Outdent. Rewrite for slightly better clarity.
33 (BeginLoadData): Outdent.
34 (GetChanges): Outdent. Replace GetEnumerator/while with foreach.
36 * DataTable.cs: Convert to a partial class, sequester NET_2_0
37 specific and IXmlSerializable specific pieces into separate parts.
39 2008-09-07 Raja R Harinath <harinath@hurrynot.org>
41 * DataSet.cs: Convert to a partial class and sequester NET_2_0
42 pieces into a separate part.
44 * DataRowView.cs: Convert to a partial class, and sequester
45 NET_2_0 parts into a separate part. Use partial classes instead
46 of ugly #region directives.
47 (Item): Remove redundant attributes. Cleanup slightly.
49 2008-09-05 Raja R Harinath <harinath@hurrynot.org>
51 * DataRowCollection.cs (RemoveInternal): Update RowIDs of rows
52 after the deleted row.
53 (IndexOf): Avoid loop to search for a row, since we already know
54 where a row is: its RowID.
55 (Remove): Use IndexOf rather than List.Contains.
57 * DataRowCollection.cs (InsertRow): Delegate setting of RowId
58 to the row itself. Use 'row.AttachAt' instead of 'row.AttachRow'.
59 (AddInternal): Likewise. Also delegate handling of
60 ChangeCurrentAndOriginal to AttachAt.
61 * DataRow.cs (AttachAt): Rename from AttachRow. Set rowId from
62 passed-in id. Handle ChangeCurrentAndOriginal and ChangeOriginal
65 * DataRow.cs (_hasParentCollection): Remove. Implied by _rowId >= 0.
66 (HasParentCollection): Remove.
67 * DataRowCollection.cs (AddInternal, InsertAt): Update to changes.
69 * DataTable.cs (NewRowArray): Special case size == 0 to avoid
70 creating a lot of garbage.
72 * DataRow.cs (Detach): Rename from DetachRow. Make private.
73 Simplify code to be more uniform. Move common prefix code here ...
74 (AcceptChanges) [Deleted]: ... from here ...
75 (Delete) [Added]: ... and here ...
76 (RejectChanges) [Added]: ... and here.
78 2008-09-04 Raja R Harinath <harinath@hurrynot.org>
80 * DataRow.cs (CheckChildRows) <1-arg variant>: Remove excessive
82 (CheckChildRows) <3-arg variant>: Likewise. Move/split loop
84 (EndEdit): Out-dent some code.
85 (IsNullColumns): Simplify slightly.
87 * DataRelationCollection.cs (CanRemove): Simplify slightly.
89 * DataRelation.cs (CheckStateForProperty): Use the childColumn to
92 * DataColumn.cs (AllowDBNull.set): Rearrange code to be more readable.
93 (AutoIncrement.set): Likewise.
95 (SetDefaultValue): Likewise.
97 2008-08-28 Raja R Harinath <harinath@hurrynot.org>
99 * Constraint.cs (SetExtendedProperties): New internal method.
101 (ExtendedProperties.set): ... here. Kill a #ifdef.
102 * DataTable.cs (DeserializeConstraints): Update to changes.
104 2008-08-27 Raja R Harinath <harinath@hurrynot.org>
106 * ConstraintCollection.cs (Item) <string variant>: Don't incur
107 additional check for index that's returned by 'IndexOf'.
108 (_createNewConstraintName): Improve readability of code.
109 (_isDuplicateConstraintName): Perform cheaper test first.
111 * ConstraintCollection.cs: Reduce some #ifdef by using partial
112 classes. Move 'sealed' and '[Serializable]' to appropriate
113 partial class declarations.
114 * DataRowCollection.cs: Likewise.
116 2008-08-13 Marek Habersack <mhabersack@novell.com>
118 * DataRow.cs: do not check whether a column is read-only when
121 2008-08-08 Raja R Harinath <harinath@hurrynot.org>
123 * DataColumn.cs: Update to changes in DataCollection.
125 2008-07-29 Veerapuram Varadhan <vvaradhan@novell.com>
128 * XmlDataReader.cs (ReadElementElement): Handle custom reference types sanely.
130 2008-07-20 Gert Driesen <drieseng@users.sourceforge.net>
132 * DataColumnCollection.cs (IndexOf): Include name of column - for which
133 there are multiple matches in a different case - in the exception
135 * DataRow.cs (this [int]): On 2.0 profile, throw ArgumentException if
136 value is null and datatype of column is a value type. On 1.0 profile,
137 only allow null value if datatype of column is string. Do not replace
138 value with DBNull.Value if value is null.
140 2008-07-04 Gert Driesen <drieseng@users.sourceforge.net>
142 * DataRow.cs: Use indexer of DataColumnCollection instead of IndexOf.
143 Cosmetic changes to exception message.
144 * DataColumnCollection.cs: Fixed off by one error in index check. Added
145 null check in name indexer. In Clear, also reset columnNameCount and
148 2008-07-03 Gert Driesen <drieseng@users.sourceforge.net>
150 * DataRow.cs: Added missing null checks. Cosmetic changes to exception
153 2008-07-03 Marek Habersack <mhabersack@novell.com>
155 * DataRow.cs (this []): Use DBNull instead of throwing an exception
157 2008-07-01 Rodrigo Kumpera <rkumpera@novell.com>
159 * DataTable.cs: Kill some foreach loops.
163 2008-07-01 Marek Safar <marek.safar@gmail.com>
165 * DataColumnCollection.cs: Made few simple optimizations.
167 2008-06-28 Zoltan Varga <vargaz@gmail.com>
169 * DataTable.cs (NewRowArray): Avoid using reflection if possible.
171 2008-06-19 Atsushi Enomoto <atsushi@ximian.com>
173 * DataRelation.cs : keep createConstraints flag for cloning in
174 DataSet.Merge(). Use different flag for initialization instead.
175 * MergeManager.cs : When cloning DataRelation, createConstraints
176 flag should depend on the source.
177 * XmlSchemaDataImporter.cs : create constraints when creating
180 2008-06-18 Atsushi Enomoto <atsushi@ximian.com>
182 * DataSet.cs : when InferSchema mode, ReadXml() should do "merging
184 * XmlDataInferenceLoader.cs : fixed primary key processing in
185 merging inference mode. Reuse existing one, instead of rejecting
188 2008-06-17 Atsushi Enomoto <atsushi@ximian.com>
190 * XmlSchemaWriter.cs, DataSet.cs, XmlTableWriter.cs, DataTable.cs,
191 XmlDataInferenceLoader.cs, XmlSchemaDataImporter.cs:
192 fix xsd output on msdata:Locale and msdata.UseCurrentCulture.
193 Output explicit Locale only when it is explicitly specified.
194 On the other hand, ReadXml/ReadXmlSchema fills Locale as en-US
195 by default (on .NET).
196 Some code unification in DataTable.WriteXmlSchema() overloads.
198 2008-06-16 Atsushi Enomoto <atsushi@ximian.com>
200 * DataColumn.cs : replaced Activator.CreateInstance() with
201 returning explicit Null member for each SqlXxx type.
203 2008-06-13 Atsushi Enomoto <atsushi@ximian.com>
206 DefaultValue can be non-DBNull. For SqlXxx type, it becomes
207 SqlXxx.Null. Also, changing DataType may change DefaultValue
208 to be consistent with the new type (say, having int DefaultValue
209 for new string DataType is wrong).
212 This should be fixed to take non-DBNull default value into
215 2008-06-12 Atsushi Enomoto <atsushi@ximian.com>
217 * DataSet.cs, DataTable.cs, XmlSchemaDataImporter.cs : constraints
218 on missing tables are ignored when reading a DataTable schema.
219 Fixes part of DataTableTest.ReadXmlSchema() test.
221 2008-05-30 Marek Habersack <mhabersack@novell.com>
223 * Constraint.cs: do not use synthetized event accessors (to avoid
226 2008-05-29 Marek Habersack <mhabersack@novell.com>
228 * DataColumn.cs: do not use synthetic methods for events - this
229 avoids unnecessary locking, especially for internal events.
231 2008-04-21 Gert Driesen <drieseng@users.sourceforge.net>
233 * DataRowView.cs: Modified argument names to match MS. Use
234 String.Empty instead of "". Code formatting.
236 2008-04-16 Veerapuram Varadhan <vvaradhan@novell.com>
238 * XmlDataInferenceLoader.cs (ReadXml): Make sure the name of
239 reference key column(s) in child tables are unique.
241 * XmlSchemaWriter.cs (WriteSchema, WriteDataSetElement,
242 WriteTableType, WriteChildRelations): Handle the scenario wherein
243 we have a relation and only one table. This can occur when we
244 have an XML with same parent/child table names.
246 2008-03-31 Veerapuram Varadhan <vvaradhan@novell.com>
248 * DataView.cs: Reverting rev#98474 changes - as it broke quite a
251 2008-03-23 Gert Driesen <drieseng@users.sourceforge.net>
253 * DataSet.cs: Corcompare fix.
254 * IDataRecord.cs: Corcompare fix.
256 2008-03-22 Gert Driesen <drieseng@users.sourceforge.net>
258 * DataViewSettingCollection.cs: Corcompare fixes and code formatting.
259 * SyntaxErrorException.cs: Corcompare fixes and code formatting.
260 * EvaluateException.cs: Corcompare fixes and code formatting.
261 * StrongTypingException.cs: Coecompare fixes and code formatting.
262 * ReadOnlyException.cs: Corcompare fixes and code formatting.
263 * DataTableCollection.cs: Corcompare fixes and code formatting.
264 * MissingPrimaryKeyException.cs: Corcompare fixes and code formatting.
265 * DeletedRowInaccesibleException.cs: Corcompare fixes and code
267 * DataSet.cs: Corcompare fixes and code formatting.
268 * DuplicateNameException.cs: Corcompare fixes and code formatting.
269 * DataView.cs: Corcompare fixes and code formatting.
270 * VersionNotFoundException.cs: Corcompare fixes and code formatting.
271 * MergeFailedEventArgs.cs: Corcomare fixes and code formatting.
272 * InvalidExpressionException.cs: Corcompare fixes and code formatting.
273 * DBConcurrencyException.cs: Corcompare fixes and code formatting.
274 * DataRowView.cs: Corcompare fixes and code formatting.
275 * DataViewManager.cs: Corcompare fixes and code formatting.
276 * ConstraintException.cs: Corcompare fixes and code formatting.
277 * InvalidConstraintException.cs: Corcompare fixes and code formatting.
278 * IDataRecord.cs: Corcompare fixes.
279 * RowNotInTableException.cs: Corcompare fixes and code formatting.
280 * TypeDataSetGeneratorException.cs: Corcompare fixes and code
282 * InRowChangingEventException.cs: Corcompare fixes and code formatting.
283 * NoNullAllowedException.cs: Corcompare fixes and code formatting.
284 * DataException.cs: Corcompare fixes and code formatting.
286 2008-03-17 Veerapuram Varadhan <vvaradhan@novell.com>
288 ** Fixes part1 of #357947
289 * DataView.cs: (OnRowDeleted): Don't call update, instead delete the row
290 directly from Index. Peformance fix submitted by Hubert FONGARNAND
291 <informatique.internet@fiducial.fr>.
293 2008-02-04 Arina Itkes <arinai@mainsoft.com>
295 * DataTable.cs: Fix for IXmlSerializable.ReadXml.
297 2008-01-28 Arina Itkes <arinai@mainsoft.com>
299 * DataTable.cs: Fix for IXmlSerializable.WriteXml.
301 2007-10-21 Gert Driesen <drieseng@users.sourceforge.net>
303 * DataColumn.cs: Fixed ParamName of ArgumentNullException. Modified
304 exception message for invalid DateTimeMode value to match MS. Code
307 2007-10-19 Nagappan <anagappan@novell.com>
309 * DataRelation.cs: Removed bogus TODO.
311 2007-09-27 Nagappan A <anagappan@novell.com>
313 * DataRelationCollection.cs: Added LAME spec comment as there is no
314 relevant event. Removed MonoTODO too.
316 2007-09-26 Nagappan A <anagappan@novell.com>
318 * DataView.cs (ToTable): Added params keyword.
320 * DataTable.cs: Added XmlSchemaProvider attribute.
322 2007-09-25 Konstantin Triger <kostat@mainsoft.com>
324 * DataSet.cs: correct WriteAttributeString while writing xml with
325 XmlWriteMode.WriteSchema.
327 2007-09-25 Nagappan A <anagappan@novell.com>
329 * DataTable.cs: Code alignment.
331 2007-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
333 * DataColumnCollection.cs: refactoring, fixed columnNameCount comparer
334 to remove culture sensitive ToLower() calls
336 2007-07-22 Nagappan A <anagappan@novell.com>
338 * DataRow.cs: Added internal set property for Table in 2.0
341 * DataColumn.cs: Added internal set property for Table in 2.0
344 2007-07-01 Gert Driesen <drieseng@users.sourceforge.net>
346 * DataRowCollection.cs: Only override Count on 2.0 profile.
347 * RelatedDataView.cs: Fixed line endings.
348 * XmlDataInferenceLoader.cs: Fixed line endings.
350 2007-06-30 Gert Driesen <drieseng@users.sourceforge.net>
352 * DataTableCollection.cs: CopyTo is 2.0 only. Removed extra tabs,
353 and changed spaces to tabs.
355 2007-06-06 Nagappan A <anagappan@novell.com>
357 * DataTable.cs (Select): Removed ununsed variable.
359 2007-05-30 Nagappan A <anagappan@novell.com>
361 * DataColumnCollection.cs (CopyTo): Method specific to 2.0
364 * DataRowCollection.cs (Count): Property is overridden in 2.0
367 * TypedDataSetGenerator.cs: Class is obsolete in 2.0 profile.
369 * DataRelationCollection.cs (CopyTo): Method specific to 2.0
372 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
374 * CustomDataClassGenerator.cs: Misc fixes in order to emit correct VB code.
375 CreateDataSetDefaultCtor: we're creating a delegate, not an object, so use a DelegateCreateExpression.
376 CreateDataSetSchemaChanged: we're comparing value types, use the correct equality operator.
377 CreateTableGetEnumerator: explicity state that the method is an implementation of IEnumerable.GetEnumerator.
378 CreateTableEventStarter: we're invoking a delegate, so use a DelegateInvokeExpression.
379 Several changes to not generate members with names that only differ by case.
381 2007-05-18 Chris Toshok <toshok@ximian.com>
383 * DataColumnCollection.cs (Add ()): handle the default name case
385 (Add (string)): same - let Add(DataColumn) handle the default name
387 (Add (DataColumn)): in the 1.1 case, we need to add the column's
388 PropertyChanged handler *before* possibly setting the column name
389 to the default so we emit the right events (Changed/Added). In
390 the 2.0 case, we add the event handler after the name is set, and
391 therefore only emit the Added event.
393 2007-05-07 Adar Wesley <adarw@mainsoft.com>
395 * ConstraintCollection.cs: added CopyTo method with strongly typed Constraint[]
398 * DataTable.cs: added implementation of IXmlSerializable. Added missing
399 method ReadXmlSerializable.
401 2007-04-19 Chris Toshok <toshok@ximian.com>
403 * DataColumnCollection.cs (Add): the Element in our
404 CollectionChangedEventArgs should be the column, not the
405 collection. Also, add an event handler for the column's
406 PropertyChanged event so we can propagate metadata changes.
407 (Remove): Analogous change to the CollectionChangedEventArgs as in
408 Add. Also, unhook the column's PropertyChanged event.
409 (OnCollectionmetaDataChanged): emit our new event.
410 (ColumnPropertyChanged): called when the column's ColumnName
411 property changes. Emit the proper CollectionChangeEvent.
413 * DataView.cs (ColumnCollectionChanged): fix up the comment about
414 CollectionChangeAction.Refresh, and make explicit what generates
416 (RegisterEventHandlers): hook up
417 DataColumnCollectoin.CollectionMetaDataChanged.
418 (RegisterEventHandlers): unhook
419 DataColumnCollectoin.CollectionMetaDataChanged.
421 2007-02-23 Nagappan A <anagappan@novell.com>
423 * DataRow.cs (Item): Checks whether this DataRow exist in the
424 DataRowCollection, then compute the expression. Fixes bug #
427 * DataRowCollection.cs (IndexOf): Modified as internal method for
430 * XmlDataReader.cs (StringToObject): DataTables containing
431 System.Type throw exception on deserializing. Fixes bug # 80596.
433 * XmlDataLoader.cs (StringToObject): DataTables containing
434 System.Type throw exception on deserializing. Fixes bug # 80596.
436 2007-02-20 Konstantin Triger <kostat@mainsoft.com>
438 * XmlSchemaDataImporter.cs: ensure the tables are created in document order.
440 2007-02-19 Konstantin Triger <kostat@mainsoft.com>
442 * XmlDataReader.cs, XmlDataInferenceLoader.cs, XmlDiffLoader.cs:
443 ignore attributes from "http://www.w3.org/XML/1998/namespace".
444 * XmlConstants.cs: add constant for "http://www.w3.org/XML/1998/namespace".
445 * XmlDataInferenceLoader.cs: track the added elements index to fix the
446 added column ordinal.
448 2006-12-11 Chris Toshok <toshok@ximian.com>
450 * DataView.cs: GetItemProperties should return an empty collection
451 if we have no data table. Presently we NRE.
453 2006-12-08 Nagappan A <anagappan@novell.com>
455 * DataTable.cs (ReadXml): Removed if condition, as it should not
456 check the exception string.
458 2006-12-07 Chris Toshok <toshok@ximian.com>
460 * DataView.cs: add CollectionChangeEventHandler's on the
461 ChildRelations and ParentRelations collections, and emit
462 ListChanged events with PropertyDescriptor.Added/Deleted/Changed
465 2006-12-07 Nagappan A <anagappan@novell.com>
467 * DataTable.cs (ReadXml): Integrated the implementation of
468 ReadXml, patch provided by deepak_2603@yahoo.com.
470 2006-12-05 Nagappan A <anagappan@novell.com>
472 * DataTable.cs (WriteXmlSchema): Using XmlTextWriter instead of
473 XmlWriter, solved the File Sharing IO Exception.
475 2006-11-28 Hubert FONGARNAND, FrAcdAcric Mestayer <informatique.internet@fiducial.fr>
477 * DataColumnCollection.cs : Improved Column searching when not
478 using exact column name (case sensitivity). Fixes bug # 80075.
480 2006-11-28 Nagappan A <anagappan@novell.com>
482 * XmlSchemaDataImporter.cs: Fixed 2.0 profile compilation
483 warnings. Using AttributeSchemaType instead of AttributeType and
484 ElementSchemaType instead of ElementType.
486 * TypedDataSetGenerator.cs: Modified the profile check from
487 !NET_1_1 to !NET_1_0, as this class is obsolete from 1.1 profile.
489 * DataRelationCollection.cs (Item): Modified the property Item as
490 abstract and implemented it in DataSetRelationCollection and
491 DataTableRelationCollection classes.
493 * DataRowView.cs: Remove bogus MonoTODOs.
495 * ForeignKeyConstraint.cs (ForeignKeyConstraint): Implemented
496 2.0 profile's missing constructor.
498 * XmlDataLoader.cs (StringToObject): Modify XmlConvert.ToDateTime
499 to use XmlDateTimeSerializationMode, as the default ToDataTime
502 * XmlDataReader.cs (StringToObject): Modify XmlConvert.ToDateTime
503 to use XmlDateTimeSerializationMode, as the default ToDataTime
506 * DataView.cs (IsInitialized): Added browsable attribute.
508 * DataViewSettingCollection.cs (CopyTo): Implemented missing 2.0
511 * DataRelation.cs (DataRelation): Added 2.0 profile constructor to
512 take parentTableNameSpace and childTableNameSpace as argument.
513 (FinishInit): Update parentTableNameSpace and childTableNameSpace,
514 when the string is not empty in 2.0 profile.
516 * DataRowCollection.cs: Implemented Count public property.
517 Added !NET_2_0 for List protected property, as it has been removed
519 (IndexOf): Implemented new public method.
520 (CopyTo): Implemented new public override method.
521 (GetEnumerator): Implemented new public override method.
523 * DataTable.cs (Load): Throw ArgumentNullException, when reader
525 (WriteXmlSchema): Throw InvalidOperationException, when table name
526 is empty. When DataSet Namespace is set, append that with '_x003A_'
528 (IsInitialized): Added browsable attribute.
530 * DataSet.cs (Load): Throw ArgumentNullException, when reader
532 (IsInitialized): Added browsable attribute.
533 (WriteObjectXml): Modify XmlConvert.ToDateTime to use
534 XmlDateTimeSerializationMode, as the default ToDataTime method id
537 * XmlSchemaWriter.cs (WriteSchema): Modified UseCurrentCulture to
539 (WriteDataSetElement): Added minOccurs attribute.
540 (WriteConstraints): Check for tables length, if > 1 then add the
541 relations to XmlSchema.
543 2006-11-21 Nagappan A <anagappan@novell.com>
545 * DataView.cs: Added public event Initialized.
546 (IsInitialized): Implemented public function to check whether a
547 dataview is initialized or not.
549 * DataSet.cs: Added ISupportInitializeNotification for .NET 2.0
551 (RemotingFormat): Set the default value attribute as
552 SerializationFormat.Xml.
553 (IsInitialized): Implemented public function to check whether a
554 table is initialized or not.
555 (CreateDataReader): Added params keyword in argument.
556 (Load): Implemented all Load overloaded functions.
557 (GetObjectData): Modified to public for .NET 2.0 implementation.
558 (IsBinarySerialized): Implemented the public API to check whether
559 the given stream is binary serialized or not.
560 * DataTable.cs: Added ISupportInitializeNotification for .NET 2.0
563 2006-11-15 Nagappan A <anagappan@novell.com>
565 * DataTable.cs (RemotingFormat): Set the default value attribute
566 as SerializationFormat.Xml.
567 (OnTableNewRow, NewRowAdded): Implemented new function to raise an
568 event when a new row is added to the table.
569 (DataTableInitialized, OnTableInitialized): Implemented new
570 function to raise an event when a table is initialized.
571 (IsInitialized): Implemented public function to check whether a
572 table is initialized or not.
573 (OnTableClearing): Raise an event before the table is cleared.
574 (GetObjectData): Modified to public for .NET 2.0 implementation.
575 (Load): Implemented missing API to call the registered delegate
576 function on load exception.
577 (WriteXmlSchema): Implemented overloaded function to write the
578 hierarchy with XML Schema.
580 2006-11-15 Konstantin Triger <kostat@mainsoft.com>
582 * DataTable.cs: Fixed LoadDataRow scenarios.
583 * DataRowCollection.cs: Added override for AddInternal taking DataRowAction parameter.
585 2006-11-14 Konstantin Triger <kostat@mainsoft.com>
587 * DataColumn.cs: consider row version wen checking row.IsNull().
589 2006-10-18 Nagappan A <anagappan@novell.com>
591 * ForeignKeyConstraint.cs (_validateColumns): Parent and child
592 columns can't be the same column - Exception, bug # 79689
594 2006-10-13 Nagappan A <anagappan@novell.com>
596 * DataTable.cs (DeserializeConstraints): Fine tuned the
597 serialization and deserialization of constraints.
599 * DataRelationCollection.cs (Contains): Fixes bug
600 #79233. DuplicateNameException when two relations for different
601 DataTables in DataSet are defined
603 2006-10-06 Patrick Earl <mono@patearl.net>
605 * DataTable.cs, XmlTableWriter.cs, XmlSchemaWriter.cs, DataSet.cs:
606 Implemented DataTable.WriteXml
608 2006-09-26 Nagappan A <anagappan@novell.com>
610 * DataTable.cs, DataSet.cs, DataColumn.cs, Constraint.cs,
611 DataRow.cs: Implementation of Binary Serialization /
614 * DataTable.cs (RowsExist): Check rows based on version.
616 * DataRow.cs: Raise exception same as MS.NET. Thanks to
617 Hubert FONGARNAND <informatique.internet@fiducial.fr> for
618 providing this patch.
620 2006-09-07 Vladimir Krasnov <vladimirk@mainsoft.com>
622 * DataSet.cs: added 2.0 stubs to solve typed dataset porting issues
624 2006-08-30 Nagappan A <anagappan@novell.com>
626 * DataRow.cs (EndEdit): DataRow.EndEdit emits RowChanged too
627 often. Fixes bug # 78885.
629 2006-08-14 Konstantin Triger <kostat@mainsoft.com>
631 * DataTableCollection.cs, DataRelationCollection.cs, DataRowCollection.cs,
632 DataColumnCollection.cs: implemented specialized CopyTo() method.
634 2006-07-26 Nagappan A <anagappan@novell.com>
636 * DataTable.cs (GetIndex): Fixes memory explode on
637 DataTable.Select - Bug # 77691.
639 2006-07-25 Nagappan A <anagappan@novell.com>
641 * DataView.cs (OnRowCollectionChanged): On DataTable.Clear,
642 setting rowCache to empty DataRowView. Fixes bug # 78610.
644 * DataTable.cs (AcceptChanges): Raises Reset event. Fixes bug #
647 2006-07-20 Senganal T <tsenganal@novell.com>
650 - Merge : moved the columntypecheck to AdjustSchema,
651 Remove the unncessary calls to Table.ResetIndexes.
652 - AdjustSchema : check for columntypes
653 Thanks to Deepak Kr Valechha for the patch
655 2006-07-17 Senganal T <tsenganal@novell.com>
658 - ToTable : Implemented all the overloads
659 - Equals : Implemented
660 - IBindingListView : Implemented the interface
662 2006-07-15 Senganal T <tsenganal@novell.com>
664 * DataTableCollection.cs :
665 - Contain,IndexOf,Remove,Add,Indexer : support for table
666 namespace. Remove redundant checks in Remove/Add.
668 2006-07-14 Senganal T <tsenganal@novell.com>
671 - SetOrdinal : Implemented
672 - Ordinal : added internal set
673 * DataColumnCollection.cs :
674 - Add : Set the column ordinals
675 - MoveColumn : Changes the position of column in the
678 2006-07-14 Senganal T <tsenganal@novell.com>
681 - Merge - Implement the merge methods
682 - Clone - Ensure column's DateTimeMode property is also copied
684 - DateTimeMode : Implemement
685 - DataTypeMatches : Added. In 2.0 profile, test DateTime
686 property when verifying column types.
688 - ctr : For DateTime columns, check DateTimeMode property
689 * ForeignKeyConstraint.cs :
690 - _validateColumns : For DateTime columns, check DateTimeMode
693 - Merge : Added. Overload to merge two tables
694 - ResolveColumns : Change the method to use a table instead of
696 - Renamed AdjustSchema to AdjustSchemaRelations
698 2006-07-13 Senganal T <tsenganal@novell.com>
701 - WriteTables : Remove some commented out code
702 - WriteTable : Fix the logic to skip the table data when the
703 table has a nested relation.
706 2006-07-12 Senganal T <tsenganal@novell.com>
708 * ConstraintCollection.cs :
709 - Remove (string): If constraint name is not found, throw exception
710 - Remove (Constraint): Set the ConstraintCollection of the removed
712 Thanks to Deepak Kr Velachha for reporting the bug.
714 2006-07-12 Senganal T <tsenganal@novell.com>
717 - LoadColumnChildren : If schema name is missing, skip the
719 Thanks to Deepak Kr Velachha for identifying the bug.
721 2006-07-11 Senganal T <tsenganal@novell.com>
723 * XmlSchemaWriter.cs :
724 - WriteTableType : If Relation.Nested is true, then nest the
725 table schemas. Correct the xml to add the table element within
726 the <Sequence> element.
727 - WriteChildRelations : Correct the Xml element name and
728 attributes. Close the attribute correctly.
730 * XmlSchemaDataImporter.cs :
731 - GenerateRelationship : When creating the relations, if
732 ParentColumn exists but Corr ChildCol is null, create a child
733 Column with the same name and type as the parent column.
734 - Renamed DataSetDefinesPrimaryKey to DataSetDefinesKey
735 - DataSetDefinesKey : if either xsd:key or xsd:keyref is
736 defined for the dataset, do not manually create the relations.
737 - AddParentKeyColumn : if Columnname already exists, use
738 colname_0 instead of throwing an exception.
739 - FillDataColumnRepeatedSimpleElement : Do not set the Unique
740 value as it creates a constraint by default. The unique value
741 is automatically set when pk is set.
742 - CreateChildColumns : Added. Creates a ChildColumn duplicating
743 ParentColumn properties.
745 2006-06-30 Senganal T <tsenganal@novell.com>
748 - SetAdded, SetModified : new methods in 2.0
750 2006-06-30 Senganal T <tsenganal@novell.com>
751 * SerializationFormat.cs, DataSetDateTime.cs, DataTableNewRowEventArgs.cs,
752 DataTableNewRowEventHandler.cs : Added
753 * SyntaxErrorException.cs EvaluateException.cs StrongTypingException.cs
754 IsolationLevel.cs ReadOnlyException.cs DataTableCollection.cs
755 DataRowState.cs MissingPrimaryKeyException.cs DeletedRowInaccessibleException.cs
756 DuplicateNameException.cs PropertyAttributes.cs StatementType.cs
757 VersionNotFoundException.cs FillErrorEventHandler.cs DataRowChangeEventHandler.cs
758 XmlWriteMode.cs InvalidExpressionException.cs StateChangeEventHandler.cs
759 DbType.cs DataColumnChangeEventHandler.cs KeyRestrictionBehavior.cs
760 ConnectionState.cs SchemaType.cs MergeFailedEventHandler.cs SqlDbType.cs
761 DataRowVersion.cs ForeignKeyConstraint.cs DBConcurrencyException.cs
762 OperationAbortedException.cs MissingSchemaAction.cs DataTableClearEventHandler.cs
763 DataRowView.cs DataRowAction.cs ConstraintCollection.cs DataTableReader.cs
764 LoadOption.cs InvalidConstraintException.cs InternalDataCollectionBase.cs
765 ParameterDirection.cs AcceptRejectRule.cs UpdateRowSource.cs XmlReadMode.cs
766 TypedDataSetGenerator.cs RowNotInTableException.cs TypeDataSetGeneratorException.cs
767 InRowChangingEventException.cs MissingMappingAction.cs NoNullAllowedException.cs
768 CommandBehavior.cs PropertyCollection.cs CommandType.cs
769 UpdateStatus.cs ConflictOption.cs DataViewRowState.cs Rule.cs
770 DataColumnCollection.cs :
773 2006-06-27 Senganal T <tsenganal@novell.com>
775 * DataSet.cs, DataTable.cs : implement CreateDataReader methods
776 * InternalDataCollectionBase.cs
777 - ToArray () : helper method
778 * DataTableReader.cs :
779 - GetSchemaTable : set the schema info correctly
780 - GetProvider*, GetChars, GetBytes, GetValues :
781 Implemented the methods
782 - GetName : return the name of corresponding schema.
783 - ValidateSchemaIntact, OnColumnCollectionChanged,
785 Listen and raise expception if schema changes
787 2006-06-21 Chris Toshok <toshok@ximian.com>
789 * DataView.cs: update the index after we successfully add the new
790 row. This keeps the dataview's row view count in sync with the
793 2006-06-20 Chris Toshok <toshok@ximian.com>
795 * DataView.cs: the PropertyDescriptorCollection returned by
796 ITyepdList.GetItemProperties should include the child relations of
797 our table, in order to match MS's behavior.
799 * DataViewManager.cs: ICollection.Count property is always 1.
801 2006-06-15 Senganal T <tsenganal@novell.com>
804 - Select : If Sort String is not provided, sort the result
805 DataRows in Ascending Order of the Columns used in the filter
807 2006-06-15 Senganal T <tsenganal@novell.com>
810 - InternalEnforceConstraints : Check if any null constraints
811 are violated. Throw ConstraintException only after all the errors
814 - EnforceConstraints : Move away the logic to check for
815 NullConstraintViolation.
816 - AssertNotNullConstraint : Checks for Null Constraint
818 - EndLoadData : Do not throw any exceptions here. All the
819 errors have to be found and RowErrors set before throwing the
822 - ImportRecrod : Check the values of the row for any null
824 - SetColumnError : If the error for column is already set,
825 do not add a new error but edit the existing error.
826 - CheckValue : Set the NullConstraintViolation flag if either
827 table is being loaded or if EnforceConstraints is set to
829 * Constraint.cs : Do not throw exception when EnforceConstraints is
830 set to false or table is being loaded.
831 * UniqueConstraint.cs : Correct the error message. Set ColumnErrors
832 along with the RowError.
834 2006-05-31 Gert Driesen <drieseng@users.sourceforge.net>
836 * DataTable.cs: Renamed initInProgress to fInitInProgress. BeginInit
837 and EndInit must only be virtual in 2.0 profile. Set eol-style to CRLF.
839 2006-05-31 Senganal T <tsenganal@novell.com>
841 * XmlDataInferenceLoader.cs :
842 - InferTableElement : Repeated element should result in a single
844 Patch from Deepak Kr Velachha
846 2006-04-21 Senganal T <tsenganal@novell.com>
848 * DataRowCollection.cs :
849 - Find : If search on the table using PrimaryKey fails and if
850 index is not being maintained (during table load), search the
852 - Find (int) : Removed. Deadcode.
854 - Not necessary to delete each row from the Index.
855 Just reset the Indexes after cleaning up the row
857 - Simplify dependency check for child tables
860 - Do not use DataRowCollection.Find to search for
861 existing records as this wud check even newly loaded rows.
863 - Do not add new records to Index. Update Index only
864 if an existing record is modified. New records will be
865 taken care by EndLoadData.
867 2006-04-19 Senganal T <tsenganal@novell.com>
869 * XmlHelper.cs : A helper class for encoding/decoding schema names.
870 Caches the Schema names to minimize encoding/decoding operations and
871 duplicate strings created.
873 - Use XmlHelper for encoding/decoding schema names.
874 - Encode ConstraintNames when writing as xml.
877 * XmlDataInferenceLoader.cs
878 * XmlSchemaDataImporter.cs
879 - Use XmlHelper for encoding/decoding schema names.
880 * DataTableCollections : Minor code refactor.
881 * DataRow.cs : Create XmlElement only if required.
883 2006-04-07 Senganal T <tsenganal@novell.com>
886 - InternalEnforceConstraints() : Reset Indexes of all tables
887 before validating constraints. Fixes #78010
889 2006-03-04 Boris Kirzner <borisk@mainsoft.com>
890 * TypeDataSetGeneratorException.cs: fix .Net Soap serialization compatibility.
892 2006-03-25 Senganal T <tsenganal@novell.com>
895 - RejectChanges : When row is in Deleted state, add the row back to
896 Indexes and Validate the row.
899 2006-03-23 Senganal T <tsenganal@novell.com>
902 - LoadDataRow : Add the row to the indexes, when loading a new row.
904 2006-03-22 Senganal T <tsenganal@novell.com>
907 - PrimaryKey : Set the IsPrimaryKey attribute before Removing from collection.
908 - RemoveUniqueConstraints : Removed. dead code.
911 - If adding/removing constraint fails, retain Unique value
912 - Remove redundant code
913 * UniqueConstraint.cs :
914 - SetIsPrimaryKey : Added. Sets the value of IsPrimaryKey.
915 - RemoveFromConstraintCollectionCleanup : If constraint is on a single column, then
916 set Unique for that column to false.
917 - CanRemoveFromCollection : Do not remove constraint, if its a PrimaryKey
919 2006-03-20 Senganal T <tsenganal@novell.com>
922 - CopyRelations () : When copying the relation, do not add constraints
923 automatically for the relation.
924 - OnMergeFailed () : If merge fails and no handler is set for the MergeFailedEvent,
925 then throw DataException
926 * ConstraintCollection.cs :
927 - Add () : Check if a constraint already exists on the Columns that are being
929 - IndexOf () : Do not check for equivalent constraints, check for the exact instance.
930 * MergeManager.cs ():
932 - Handle the MissingSchemaAction.Error case,
933 - Do not create constraints when mergin the DataRelation
934 - Follow the semantics for schema merge/validation when constraints are already present
935 in the target DataSet.
936 - AdjustPrimaryKeys () :
938 - Verify Order of Columns in the PrimaryKey when merging.
939 - ResolveColumns : Changed the arument to DataSet. Simplifies code elsewhere.
940 - CompareColumnArrays, CompareColumnArrays : Helper funtions.
942 2006-03-09 Senganal T <tsenganal@novell.com>
945 - RejectChanges () : Add the row to index, if it was in deleted state and
946 Update the index if in Modified State.
947 - AcceptChanges () : Do not update the Indexes.
948 - EndEdit () : Update the indexes even if BeginLoadData has been called
949 on the table. Ideally, indexes should not be maintained during DataLoad,
950 but this needs to handled in multiple places correctly. For now, just maintain
951 the index to ensure correct operation.
953 2006-03-05 Senganal T <tsenganal@novell.com>
956 - BeginInit (), EndInit () : Implemented methods
957 - InitInProgress : Added.
959 - EndInit () : Move the adding of columns and constraints
961 - FinishInit () : Added. Adds the Constraints and Columns
963 - InitInProgress : Added.
965 - FinishInit () : Added. Virtual method
966 - InitInProgress : Added. Virtual property
967 * UniqueConstraint.cs
968 * ForeignKeyConstraint.cs
969 - FinishInit () : Added.
970 - InitInProgress : Added.
971 - DataColsNotValidated : Removed.
972 * ConstraintCollection.cs
973 - PostAddRange : Removed event
974 - PostEndEdit () : Renamed to PostAddRange
975 - Add () : Simplified the testing if constraint is initialized
976 - AddRange () : Simplified initializing the constraints
977 * DataTableCollection.cs
978 - PostAddRange () : Added. Adds the tables to the collection
979 * DataColumnColletion.cs
980 - PostEndInit () : Renamed to PostAddRange.Also, add column to
981 the collection only if not null.
983 Added/Implemented methods for design time support. Renamed some methods for consistency
984 in naming across classes for methods serving the same purpose.
986 2006-02-24 Senganal T <tsenganal@novell.com>
988 * UniqueConstraint.cs :
989 - ChildConstraint : Added. Simplifies verifying if constraints are
991 - CanRemoveFromCollection : Fixed the check to verify if constraints is
992 linked to a ForeignKeyConstraint. Fixes #77630
993 * ForeignKeyConstraint.cs :
994 - _validateRemoveParentConstraint : Removed. Not used anymore
995 - ParentConstraint : Added. Simplifies verifying if constraints are
997 2006-02-22 Senganal T <tsenganal@novell.com>
1000 - RejectChanges : Do not remove Row from Indexes when state is Deleted.
1001 - CheckChildRows : When checking for the ChildRows, use the current value
1002 and not the original value.
1004 2006-02-18 Atsushi Enomoto <atsushi@ximian.com>
1006 * CustomDataClassGenerator.cs : Patch by Marek Habersack. xsd now
1007 outputs AutoIncrement, AutoIncrementSeed, AutoIncrementStep and
1008 ReadOnly properties. This fixes bug #77576.
1010 2006-02-17 Chris Toshok <toshok@ximian.com>
1012 * System.Data/DataSet.cs, System.Data/DataView.cs,
1013 System.Data/ForeignKeyConstraint.cs,
1014 System.Data/DataViewManager.cs, System.Data/DataRow.cs,
1015 System.Data/DataSysDescriptionAttribute.cs,
1016 System.Data/UniqueConstraint.cs, System.Data/DataTable.cs,
1017 System.Data/DataRelation.cs: lots of attribute work, removing
1018 DataSysDescription atributes (and marking the class obsolete) for
1021 2006-02-17 Chris Toshok <toshok@ximian.com>
1023 * DataAdapterException.cs: remove this file.
1025 2006-02-17 Chris Toshok <toshok@ximian.com>
1027 * DataTableReader.cs: Switch to the (bool) form of Dispose to
1028 override, as the no-arg form isn't virtual.
1030 * Constraint.cs: #ifdef out more DataSysDescriptions.
1032 * ConstraintException.cs: add ..ctor (string, Exception) for 2.0.
1034 2006-02-17 Chris Toshok <toshok@ximian.com>
1036 * DataColumn.cs: #ifdef all the DataSysDescriptions !NET_2_0.
1038 * AdapterMappingException.cs: nuke this file.
1040 * IDbAsyncConnection.cs, IDbAsyncCommand.cs, IGetTypedData.cs,
1041 ISetTypedData.cs, IDataReader2.cs, IDataSources.cs,
1042 IDbExecutionContext.cs, IDataRecord2.cs, IDataUpdatableRecord.cs:
1043 remove these 2.0 files.
1045 2006-02-17 Chris Toshok <toshok@ximian.com>
1047 * ConstraintCollection.cs: in 2.0, class is not serializable and
1048 is sealed. make all the "virtuals" #if !NET_2_0 as well.
1050 * Constraint.cs: not serializable in 2.0.
1052 * DataColumnCollection.cs: in 2.0, class is not serializable and
1053 is sealed. make all the "virtuals" #if !NET_2_0 as well.
1055 * DataRelationCollection.cs: not serializable in 2.0.
1057 * DataRelation.cs: not serializable in 2.0.
1059 * DataRowBuilder.cs: class is sealed in 2.0.
1061 * DataRowCollection.cs: in 2.0, class is not serialized and is
1062 sealed. Also, Add isn't virtual in 2.0 (as the class is sealed).
1064 * DataRow.cs: not serializable in 2.0.
1066 * DataSet.cs: remove some DataSysDescriptions from the 2.0 build,
1067 and s/GetDataReader/CreateDataReader.
1069 * DataTableCollection.cs: in 2.0, class is not serializable and is
1070 sealed. make all the "virtuals" #if !NET_2_0 as well.
1072 * DataTableReader.cs: remove VisibleFieldCount property.
1074 * DataViewSettingCollection.cs: not serializable in 2.0.
1076 * DataViewSetting.cs: not serializable in 2.0.
1078 * ForeignKeyConstraint.cs: serializable in 2.0.
1080 * OperationAbortedException.cs: class is sealed and serializable.
1082 * PropertyCollection.cs: serializable in 2.0.
1084 * StatementCompletedEventArgs.cs: class is sealed.
1086 * UniqueConstraint.cs: not serializable in 2.0.
1088 2006-02-16 Senganal T <tsenganal@novell.com>
1091 WriteDataSetElement : Add an annotation element if exists.
1092 WriteDataRelationAnnotation : New. Write a DataRelation as an annotation.
1093 WriteConstraints : Write ForeignKeyConstraint even when not associated with
1094 a DataRelation and add a "ConstraintOnly=true" attribute for such constraints.
1095 * XmlConstants.cs : Add a new constant - ConstraintOnly
1096 * XmlSchemaImporter.cs :
1097 - ConstraintStructure : Add field ,IsConstraintOnly, to distinguish if a foreignkeyconstraint
1098 is related to relation or not.
1099 - GenerateRelation : Handle the case when parentkey and childkey contain multiple columnnames.
1101 2006-02-11 Senganal T <tsenganal@novell.com>
1103 * UniqueConstraint.cs :
1104 - PostAddRange : Check PrimaryKey is not already set for the table
1106 - PrimaryKey : follow ms.net behavior when BeginInit , EndInit is used.
1107 - Add new priamry key only when EndInit is called.
1108 - Incase of an error, retain old primarykey
1110 - Add Constraints after columns are added.
1111 - If both PrimaryKey Property and PrimaryKey Constraint are set,
1112 then the Constraint takes precedence.
1115 2006-02-03 Senganal T <tsenganal@novell.com>
1117 * DataTableCollection.cs :
1118 - Remove () : Check for invalid TableName
1119 - Add () : Verify the table doesn't belong to another dataset
1121 - CompleteLastAdded () : Do not raise ItemAdded Event as it is
1122 already raised in AddNew().
1124 - Expression : Verify that the Column names in the expression are valid
1125 - ResetCollectionInfo : Renamed to ResetColumnInfo
1127 - RejectChanges () : Reorganized the code to do the Right thing.
1128 - Item : Dont check for detached and deleted rows as these are
1130 * DataRowCollection.cs :
1131 - Add () : Check for null value
1133 - PrimaryKey : Set AllowDBNull=false for all the key columns
1134 - ImportRow : Import the row only if it is not in Detached state. if in Deleted
1135 state, perform the validation when AcceptChanges/RejectChanges is called.
1136 * DataColumnCollection.cs :
1137 - Add : Validate the column expression before adding it to the collection.
1138 - GetColumnDependency () : New. Get the dependencies on the column
1139 - CanRemove : Move checks to GetColumnDependency
1140 - Clear () : Simplified code. Remove unncessary checks.Also, dont check Expression col.
1141 - IndexOf - Check argument.
1142 Overall , appropriate error msg's are thrown if Remove/Clear fails. Removed a few
1143 redundant checks performed and moved the common code to GetColumnDependency.
1145 2006-01-31 Senganal T <tsenganal@novell.com>
1147 * DataSet.cs : Modified CopyRelations ()
1148 - Added code to copy ForeignKeyConstraints. Fixes #77411.
1150 2006-01-18 Boris Kirzner <borisk@mainsoft.com>
1151 * DataColumn.cs: added PropertyCchangedEvent handling.
1153 2006-01-17 Senganal T <tsenganal@novell.com>
1156 ItemArray : Modified to raise RowInTableException only if
1157 the concerned row has been removed from the table.Fixes
1160 2006-01-16 Boris Kirzner <borisk@mainsoft.com>
1161 * DataTable.cs: Drop dependend indexes on column removal.
1163 2006-01-16 Atsushi Enomoto <atsushi@ximian.com>
1165 * CustomDataClassGenerator.cs :
1166 When a DataRelation connects the same table as parent and child,
1167 generate parent row property as BlahRowParent. Fixed bug #77248.
1169 2006-01-10 Senganal T <tsenganal@novell.com>
1170 * DataRowCollection.cs
1171 - Added ListChangedEvent to notify reset of the collection.
1173 - Subscribes to the ListChangedEvent of DataRowCollection
1176 2006-01-09 Senganal T <tsenganal@novell.com>
1177 * RelatedDataView.cs
1179 - Resolving a name clash in IExpression
1181 2006-01-06 Senganal T <tsenganal@novell.com>
1184 * DataColumnCollection.cs
1185 - Reset the Parameters of DataColumn to Default Values when
1186 column is removed from the Table's Collection
1188 2006-01-03 Senganal T <tsenganal@novell.com>
1191 - ParseSortString() : Changed the way the sort string is parsed.
1192 Using a regex to parse the string.Fixes bug #77104
1194 2005-12-12 Konstantin Triger <kostat@mainsoft.com>
1196 * DataRow.cs: Added index Updates.
1197 EndEdit() fixed to first update indices and then AssertConstraints
1198 based on those indices.
1199 Added Validate() and AssertConstraints() functions.
1200 * DataRowCollection.cs: Removed ValidateDataRowInternal().
1201 * DataTable: Fixed Clear().
1203 2005-12-06 Atsushi Enomoto <atsushi@ximian.com>
1205 * CustomDataClassGenerator.cs : (InitializeFields) handle AllowDBNull
1206 and DefaultValue as well. Patch by Marek Habersack (bug #76709).
1208 2005-12-01 Miguel de Icaza <miguel@novell.com>
1210 * DataSet.cs: Apply patch from Robert Jordan, to fix #76817
1212 2005-11-26 Konstantin Triger <kostat@mainsoft.com>
1214 * ConflictOption.cs: TARGET_JVM include.
1216 2005-11-11 Senganal T <tsenganal@novell.com>
1218 * ConflictOption.cs (new file)
1219 - Added ConflictOption Enumeration
1220 * DataTableReader.cs
1222 - GetProviderSpecificFieldType : Corrected the method name
1224 2005-11-11 Senganal T <tsenganal@novell.com>
1226 * DataSet.cs : Added the SchemaSerializationMode Property for NET_2_0
1228 * SchemaSerializationMode.cs : Added SchemaSerializationMode Enumeration
1229 for NET_2_0 compatibility.
1233 2005-10-20 Atsushi Enomoto <atsushi@ximian.com>
1235 * XmlSchemaWriter.cs : escape names in the schema with XmlConvert.
1238 2005-10-14 Sureshkumar T <tsureshkumar@novell.com>
1240 * DataView.cs: Correct multiple throwing of events. Patch from
1242 (RowStateFilter): Fire ListChangedEvent.
1243 (ApplyDefaultSort): Fire ListChangedEvent.
1244 (CompleteLastAdded): call UpdateIndex to remove the row from rowCache.
1245 (IBindingList.Find): Implemented.
1247 2005-10-11 Sureshkumar T <tsureshkumar@novell.com>
1249 * DataView.cs (IBindingList): Implemented methods for IBindingList interface.
1251 2005-09-26 Lluis Sanchez Gual <lluis@novell.com>
1253 * DataSet.cs: In IXmlSerializable.GetSchema, return null again for
1254 untyped datasets. Fixes bug #76101.
1256 2005-09-21 Boris Kirzner <borisk@mainsoft.com>
1257 * DataRow.cs: Fixes for index updating.
1259 - Reset case-sensitive indexes also if their filter contains columns
1261 - Use GetIndex instead of FindIndex, so the indexes created in Select()
1263 * RelatedDataView.cs: implement IExpression.Equals() and GetHashCode().
1265 2005-09-20 Sureshkumar T <tsureshkumar@novell.com>
1267 * DataView.cs (Sort): Apply default Sorting Order if Sort property
1268 is reset to null. Sort property handles this. Patch from Marc.
1270 * DataTable.cs (ParseSortString): Patch from Marc Haisenko for
1271 allowing [ & ] in DataView.Sort string.
1273 2005-09-01 Boris Kirzner <borisk@mainsoft.com>
1274 * System.Data/DataRowCollection.cs: indexes should be updated even if
1275 EnforceConstraints is false. Check for EnforceConstraints in
1276 ValidateDataRowInternal.
1278 2005-08-08 Gert Driesen <drieseng@users.sourceforge.net>
1280 * DataView.cs: Changed accessibility of dataTable, rowState and
1281 rowCache field to internal to fix public API. Assigned TypeConverter
1283 * ForeignKeyConstraint.cs: IsConstraintViolated is now internal.
1284 * Constraint.cs: IsConstraintViolated is now internal.
1285 * UniqueConstraint.cs: IsConstraintViolated is now internal.
1287 2005-08-05 Atsushi Enomoto <atsushi@ximian.com>
1289 * XmlSchemaDataImporter.cs : When "dataset element" has identity
1290 constraints, then first reserve constraints room for them and then
1291 process elements, skipping pkey creation if there is already
1292 reserved one. Fixed bug #75711.
1294 2005-08-05 Atsushi Enomoto <atsushi@ximian.com>
1296 * XmlDataInferenceLoader.cs : in GetElementMappingType(), don't guess
1297 the same (QNamed) element again when it was already evaluated as
1298 not simple type. Fixed one part of bug #75711.
1300 2005-08-02 Boris Kirzner <borisk@mainsoft.com>
1301 * XmlSchemaDataImporter.cs : Data relations should be processed after the
1302 keys, so no redundant constraints created while relations processing.
1304 2005-07-25 Boris Kirzner <borisk@mainsoft.com>
1305 * FillOptions.cs, ConflictOptions.cs, UpdateOptions.cs:
1306 added ifdef TARGET_JVM.
1308 2005-07-22 Sureshkumar T <tsureshkumar@novell.com>
1310 * DataViewSettingCollection.cs, DataTableCollection.cs,
1311 DataSet.cs, DataView.cs, DataColumn.cs, ForeignKeyConstraint.cs,
1312 DataRelationCollection.cs, UniqueConstraint.cs, DataTable.cs,
1313 DataColumnCollection.cs, DataRelation.cs, DataSet.cs:
1314 - updated attributes & attribute descriptions to match with
1317 * DataView.cs: changed protected members
1318 rowstate,rowcache,dataTable to protected internal.
1319 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint.cs:
1320 changed InConstraintViolated to protected internal.
1321 * ConflictOptions.cs, UpdateOptions.cs, FillOptions.cs: enclosed
1322 with NET_2_0 define.
1324 2005-07-21 Sureshkumar T <tsureshkumar@novell.com>
1326 * ForeignKeyConstraint.cs:
1327 - IsConstraintViolated (): no matter what EnforceConstraints is,
1328 this function now honestly validates. It is upto the caller to run
1330 - AddToConstraintCollectionSetup (): AssertConstraint according to
1333 2005-07-21 Boris Kirzner <borisk@mainsoft.com>
1334 * ForeignKeyConstraint.cs - IsConstraintViolated() should check also for Table.EnforceConstraints.
1335 * DataTable.cs - EnforceConstraints becomes internal so it can be used by ForeignKeyConstraint.
1337 2005-07-19 Sureshkumar T <tsureshkumar@novell.com>
1339 * DataTable.cs - CopyConstraints (): copy constraints only if it
1342 * DataSet.cs - Copy ():
1343 - use activator.CreateInstance to create a typed dataset.
1344 - copy tables if target does not exist, otherwise, just add rows.
1345 - add relation only if it does not exists.
1347 Typed datasets create the constraints & relations through
1348 constructors. Fixes bug #75211.
1350 2005-07-14 Sureshkumar T <tsureshkumar@novell.com>
1352 * DataView.cs: Patch from Marc Haisenko to throw descriptive error
1353 message when accessing Item, with invalid index.
1355 2005-07-14 Sureshkumar T <tsureshkumar@novell.com>
1357 reapplied patch from Marc Haisenko.
1358 * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
1361 2005-07-13 Sureshkumar T <tsureshkumar@novell.com>
1363 * DataRelationCollection.cs: adding a relation with same set of
1364 parent columns & child columns, should not be allowed.
1366 2005-07-08 Sureshkumar T <tsureshkumar@novell.com>
1368 * DataTableReader.cs: GetSchemaTable: DataType column should be
1369 passed a type of Type.
1371 * DataRow.cs: Load : Fired necessary events.
1373 * DataTable.cs: LoadDataRow (object [], LoadOption): Fired
1376 2005-06-28 Sureshkumar T <tsureshkumar@novell.com>
1378 * DataRow.cs: Delete (): if row is detached, do nothing.
1381 2005-06-22 Sureshkumar T <tsureshkumar@novell.com>
1383 * DataRow.cs: Added method MergeValuesToRow copy merge two rows
1384 according to the merge rules.
1386 * MergeManager.cs: (MergeRow): use MergeValuesToRow
1387 API. CopyValuesToRow simply makes the target row same as source
1388 row. Rather, MergeValuesToRow merges with the target row according
1391 2005-06-19 Konstantin Triger <kostat@mainsoft.com>
1393 * DataSet.cs: Fixed ReadXml to work with IXmlSerializable
1395 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
1397 * DataViewManager.cs: fixes exception and creates DataView
1399 2005-06-15 Sureshkumar T <tsureshkumar@novell.com>
1401 * DataRow.cs: CheckChildRows: cascade parent changes to child rows
1402 only if there is a change in columns of the fk constraint.
1404 2005-06-14 Sureshkumar T <tsureshkumar@novell.com>
1406 * DataSet.cs: GetChanges: if row is deleted, get parent rows based
1407 on original version. fixes bug #75227.
1409 2005-06-13 Sureshkumar T <tsureshkumar@novell.com>
1411 * DataRowCollection.cs: Find (keys, version): Added an overload to
1412 find keys matching given DataViewRowState filter. Used in
1413 DataSet.Merge and DataTable.LoadDataRow.
1415 * DataTable.cs: LoadDataRow (values, LoadOption): Use
1416 DataRowCollection.Find (object [], DataViewRowState) overload.
1419 - CopyValuesToRow: Create target "records" out of loop. Records
1420 should be created once, not for each column. Dispose Unused target
1424 - MergeRow: Find rows with matching original records. If not,
1425 select with current values.
1426 - MergeRow: While adding new row, use NewNotInitializedRow.
1428 * ForeignKeyConstraint.cs: IsConstraintViolated: should not check
1429 if EnforceConstraints is false.
1431 2005-06-10 Sureshkumar T <tsureshkumar@novell.com>
1433 * DataRow.cs: CopyValuesToRow: if orginal == current, don't create
1434 a new current record.
1436 * DataSet.cs: GetChanges :Temporarily disable EnforceConstraints.
1438 * MergeManager.cs: Merge: Temporarily disable
1439 EnforceConstraints. Patch from george.barbarosie@gmail.com (George
1442 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
1444 * DataView.cs: fixes GetListName
1446 2005-06-02 Atsushi Enomoto <atsushi@ximian.com>
1448 * XmlSchemaConstants.cs,
1449 XmlSchemaDataImporter.cs,
1450 XmlSchemaWriter.cs : AutoIncrementStep support. Patch partly by
1451 George Barbarosie. Fixed bug #75121.
1452 * XmlSchemaMapper.cs : it is not used anymore, so just removed.
1454 2005-05-31 Boris Kirzner <borisk@mainsoft.com>
1455 * DataRow.cs : SetParentRow on Detached row with no Default version throws an exception.
1457 2005-05-29 Konstantin Triger <kostat@mainsoft.com>
1459 * This patch fixes #74813
1460 * DataView.cs: rework the CreateChildView to receive the index into the indexed row array, rowState became protected to be initialized from RelatedDataView
1461 * DataRowView.cs: movo the logic of creating the child view to the DataView
1462 * RelatedDataView.cs: perform correct init.
1464 2005-05-25 Sureshkumar T <tsureshkumar@novell.com>
1466 * DataTable.cs: Reworked DataTable.LoadDataRow method after
1467 regressions caused by Index redesign.
1468 * DataRow.cs: Load : reworked.
1470 2005-05-25 Konstantin Triger <kostat@mainsoft.com>
1472 * ISafeDataRecord.cs: Added GetDateTimeSafe method, the interface was made derived from IDataRecord
1474 2005-05-22 Konstantin Triger <kostat@mainsoft.com>
1476 * 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
1478 2005-05-20 Sureshkumar T <tsureshkumar@novell.com>
1480 * DataTable.cs: CreateRecord :value should be set to auto
1481 increment value or default value if the given value is null.
1483 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
1485 * DataTable.cs: In DataTable.LoadDataRow with LoadOption - reverting the search order back to Original -> Current (by Suresh request)
1487 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
1489 * DataRow.cs, DataTable.cs: code under net_2_0 changed to use the new interface
1490 * DataTable.cs: Added CompareRecords, which compares records in column order
1493 2005-05-16 Sureshkumar T <tsureshkumar@novell.com>
1496 * DataTable.cs: quick fix to make build 2.0 profile (follow up for
1497 check in 2005-05-16). Merge with previous changes.
1499 2005-05-11 Sureshkumar T <tsureshkumar@novell.com>
1501 fix for "import row does not import deleted records"
1503 * UniqueConstraint.cs: Make a way to access value even from a
1504 deleted record. deleted records are added to the collection by
1508 - Added restriction-less methods GetValue to fetch a
1509 value even if it is in deleted state.
1510 - If a row is detached, don't try to delete it from indexes.
1511 - sanity check for record_index in CopyValuesToRow method
1513 2005-05-05 Sureshkumar T <tsureshkumar@novell.com>
1515 * DataTableReader.cs: Implemented Delete handler and move the
1516 current pointer accordingly.
1518 2005-05-04 Sureshkumar T <tsureshkumar@novell.com>
1520 * DataTableReader.cs: Added event handlers to make reader stable
1521 when the datasource is modified. Thanks to Umadevi for giving the
1522 review comments for this implementation.
1524 * DataTable.cs: Clear (): Raise TableCleared event.
1526 * DataTableClearEventArgs.cs: Args for DataTableClearEventHandler.
1528 * DataTableClearEventHandler.cs: Handler for DataTable.TableClear
1531 * DataRow.cs: AcceptChanges: raise row changing & row changed
1534 * DataRowCollection.cs: Clear : remove rows from indexes
1536 2005-05-02 Atsushi Enomoto <atsushi@ximian.com>
1538 * XmlSchemaDataImporter.cs : XmlSchemaParicle might be XmlSchemaAny.
1539 This fixes bug #74784.
1541 2005-04-29 Sureshkumar T <tsureshkumar@novell.com>
1543 * DataTableReader.cs: removed use of _first. throw if given index
1544 is out of range of columns. Copy DataTable [] to local array so
1545 that not to be disturbed.
1547 2005-04-27 Sureshkumar T <tsureshkumar@novell.com>
1549 * DataTableReader.cs: Implemented most of the TODO.
1551 2005-04-22 Sureshkumar T <tsureshkumar@novell.com>
1553 * LoadOption.cs: Changed the enums. Keeping old values for
1556 * DataTable.cs: Implemented methods Load and its overloads. Also
1557 implemented LoadDataRow.
1559 * DataRowCollection.cs: Added a variation of the Find method to
1560 return a row even if it is of state Deleted. This is required for
1561 DataTable.LoadDataRow method.
1563 * DataRow.cs: Implemented internal helper method Load for loading
1564 values from an object array and given an LoadOption (2.0 feature).
1566 * DataRowAction.cs: Added few more enums for .net 2.0. Sorted
1569 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
1571 * UniqueConstraint.cs : IsNull check is relevant for rows having default row version.
1572 * DataTable.cs : The row should be validated when imported
1573 * DataRowCollection.cs : if the row does not contain Proposed neither Current version, it's irrelevant for validation
1575 2005-04-26 Boris Kirzner <borisk@mainsoft.com>
1577 * UniqueConstraint.cs :
1578 - Add indication whenever the constraint belongs to collection.
1579 - Calculation of IsPrimaryKey simplified.
1580 - If constraint is based on single column, the column becomes unique.
1581 - Use boolean IsConstraintViolated() instead of AssertConstraint().
1582 - Use Index.Duplicates to proper exception message formatting.
1583 - AssertConstraint(DataRow) changed to suite new indexes interface.
1584 - Added CanRemoveFromCollection method.
1585 - Contains() method renamed to IsColumnContained().
1586 * RelatedDataView.cs : added new class.
1588 - Reset indexes after merge.
1589 - Add new tables when row array is merged into dataset.
1590 - Clean proposed record in MergeRow.
1591 - Inherit nesting on creating new relations in target data set.
1592 - Avoid double loop on constraints collection.
1593 * Locale.cs : added new class.
1594 * ISafeDataRecord.cs : added new interface.
1595 * Index.cs : commented out. Index implementation moved to System.Data.Common.
1596 * ForeignKeyConstraint.cs :
1597 - No more use of childColumnsExtended since new indexes allow duplicate records.
1598 - Constraints can not be created on expression columns.
1599 - Removed unnecessary delegation.
1600 - Use boolean IsConstraintViolated() instead of AssertConstraint().
1601 - Use proper exception message formatting.
1602 - Contains() method renamed to IsColumnContained().
1603 * DataViewRowState.cs : use enum members to simplify notation.
1604 * MergeManager.cs : implemented RelationCollectionChanged().
1605 * DataView.cs : new implementation.
1606 * DataTableCollection.cs :
1607 - Added boundary check in indexer.
1608 - More accurate handling in AddRange().
1609 - Raise event in Remove().
1611 - Hold primary key as constraint.
1612 - Added accurate handling of DefaultView.
1613 - Hold DataRowBuilder per table.
1614 - Proper exception messages if enforce Constraints is violated.
1615 - If there is no rows, Compute() returns DBNull.
1616 - Use DataRow properties instead of private members.
1617 - CopyProperties() fixed.
1618 - Raise proper events in EndInit().
1619 - Proper order of violation checks in EndLoadData().
1620 - Create array of rows using NewRowArray().
1621 - ImportRow handles rows according to their versions.
1622 - LoadDataRow make use of records (instead of raw object array).
1623 - Added and implemented LoadDataRow() that gets IDataRecord as a parameter (used in Fill)
1624 - Select() uses indexes filtering and sorting ability (instead of "loop-throw-sort" approach).
1625 - Removed redundant RowSorter and Sortable column classes.
1626 - ParseSortString() fixed to threat bracketed column names.
1627 - Table holds collection of property descriptors.
1629 - Reset table case sensitive indexes on CaseSensitive change.
1630 - EnforceConstraints update logic moved to internal method (used by DataTable).
1631 - InAddChangedRow first add row and than copy values for proper handling of default values.
1633 - Changed private member names to suite name convention.
1634 - CancelEdit() fixed.
1635 - CreateChildView() delegates to DataView.
1637 - Proper exception messages in indexers.
1638 - RowVersion uses DataView.
1639 - GetProperties() delegates to corresponding table if needed.
1640 * DataRowCollection.cs :
1641 - Common Add() logic moved to AddInternal() (used also by DataTable).
1642 - Removed redundant check from Contains().
1643 - Dalegate Find() calls when possible.
1645 - RomoveAt() delegates to Remove().
1646 - Optimized constraints check in row validation.
1647 * DataRelationPropertyDescriptor.cs : added new class.
1648 * DataRelationCollection.cs :
1650 - Fixed order of actions in AddCore().
1651 - RemoveCore() also delegates to base.
1652 - Add relation to dataset also in AddCore().
1653 - Remove relation from dataset also in RemoveCore().
1654 - InTransition hold a data relation so we can properly identify the "in transition" state.
1655 - Added threat of parent and child table s property descriptors in Add().
1656 - Common Add() logic moved to AddCore().
1658 - Remove() threats "in transition" state properly.
1659 - Remove methods delegate to single implementation.
1660 * DataColumnPropertyDescriptior.cs :
1661 - Added new constructor.
1662 - Commented out redundant method.
1663 * DataColumnCollection.cs :
1664 - Boundary check in indexer.
1665 - RegisterName and UnregisterName become internal (used also by DataColumn).
1667 - Fixed CanRemove().
1668 - Rethrow correct exception in Clear();
1669 - Change in collection resets parent table property descriptors.
1670 - Added PostEndEdit() helper method (used by DataTable).
1672 - Private member names changed to suite name convention.
1673 - Created method for CanAutoIncrement() logic.
1674 - Proper handling of column name update.
1675 - Proper exception messages on expression update.
1676 - Proper namespace handling (delegates to table when needed).
1677 - Removed redundant check in Unique update.
1678 - Implemented internal Clone().
1679 - GetParentRalation() and GetChildRelation() become private.
1681 - Added abstract methods (implemented in UniqueConstraint and ForeignKeyConstraint).
1682 - Simplified index update.
1683 * ConstraintCollection.cs :
1684 - Use Locale instead of CaseSensitive in column names comparison.
1686 - Rethrow correct exception type in Add().
1687 - Proper update of table primary key in Add().
1688 - Delegate CanRemove() to constraint.
1689 - Remove table primary key in Clear();
1690 - Delegate "can remove" check to constraint in Remove().
1691 - Removed unnecessary methods and properties.
1693 - RowSate becomes calculated property.
1694 - Use properties instead of private members where possible.
1696 - Fixed order of actions in ItemArray update.
1697 - Fixed DetachRow().
1698 - Added ImportRecord() method.
1699 - Removed redundant SetValuesFromDataRecord().
1700 - Fixed IndexFromVersion().
1701 - Added VersionFromIndex() method. Returns row version the passed record index corresponds to.
1702 - Fixed AcceptChanges().
1703 - Fixed creating proposed version in BeginEdit();
1704 - Added record disposal in Delete().
1705 - Fixed CheckChildRows().
1706 - EndEdit() fixed. Checks for readonly. Uses straight flow instead of "try and fix if fail" approach.
1707 - GetChildRows() and GetPrarentRows() rewrited. Use records and indexes for rows lookup.
1708 - GetColumnError() delegates to another implementation.
1709 - HasVersion() fixed.
1710 - RejectCahnges checks on child rows before passing through.
1711 - SetParentRow() fixed. Create relation collection if needed. Use typed data container value copy.
1712 - CopyErrors() logic moved to separate method (used also by DataTable).
1713 * ExpressionElement.cs : added new class.
1714 * Res.cs : added new class.
1716 2005-04-20 Jordi Mas i Hernandez <jordi@ximian.com>
1718 * DataViewManager.cs: implements TypedList.GetListName used in SWF
1720 2005-04-19 Atsushi Enomoto <atsushi@ximian.com>
1722 * DataRowView.cs : indexer should access to DataRow with proper
1723 DataRowVersion. Fixed bug #74650.
1725 2005-04-18 Sureshkumar T <tsureshkumar@novell.com>
1727 * DataRow.cs: if there are no mapping fields, fill with default
1730 2005-04-17 Atsushi Enomoto <atsushi@ximian.com>
1732 * DataView.cs : Delete() should not try to remove row twice.
1735 2005-04-13 Atsushi Enomoto <atsushi@ximian.com>
1737 * DataTable.cs : Use GetRowType() for the base of the returning array
1738 type of Select(). Fix by Gerhard Rittweger.
1739 * CustomDataClassGenerator.cs : Fixed slightly harmless wrong code.
1741 2005-04-13 Atsushi Enomoto <atsushi@ximian.com>
1743 * CustomDataClassGenerator.cs : custom relation was not added to
1744 Relations property. The second entry of bug #69276 was fixed.
1745 Patch by Daniel Rodriguez.
1747 2005-04-07 Lluis Sanchez Gual <lluis@novell.com>
1749 * DataRowCollection.cs: Fix the signature of the Add method
1752 2005-03-16 Atsushi Enomoto <atsushi@ximian.com>
1754 * DataRow.cs : on importing row, it was copying data from incorrect
1755 DataRow. This fixes bug #73288.
1757 2005-03-07 Jackson Harper <jackson@ximian.com>
1759 * DataViewManagerListItemTypeDescriptor.cs: Implement missing
1760 features. These are needed for System.Windows.Forms databinding.
1762 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
1764 * DataColumn.cs : setting negative value on MaxLength of SimpleContent
1765 column is still valid.
1767 2005-02-15 Atsushi Enomoto <atsushi@ximian.com>
1769 * XmlSchemaWriter.cs : new file for outputting XmlSchema.
1770 * DataSet.cs : removed rewritten code in XmlSchemaWriter.
1771 * XmlConstants.cs : added UseCurrentCulture constant.
1773 Use new Xml Schema writer.
1774 Use XmlSchemaDataImporter as we use in DataSet.
1776 2005-02-10 Atsushi Enomoto <atsushi@ximian.com>
1778 * DataView.cs, DataRowView.cs : Fixed bug #72421. CreateChildView()
1779 should target only child rows.
1781 2005-02-03 Atsushi Enomoto <atsushi@ximian.com>
1783 * DataViewManager.cs: misuse of ReadStartElement(string).
1784 * DataRowView.cs : removed some MonoTODO.
1786 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
1787 Ankit Jain <radical@corewars.org>
1789 * DataColumn.cs: throw exception if the column is part of a
1790 relationship, when chaning the data type. Added methods
1791 "GetParentRelation ()" and "GetChildRelation ()" get the relation
1792 which contains the current column
1793 * DataRelation.cs: Added method "Contains (DataColumn)" to check
1794 whether the relation contains the given column.
1796 fixes nunit failure: DataRelationTest.InvalidConstraintException2.
1798 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
1800 * DataColumnCollection.cs: implemented todo item "check for
1801 constraints" when removing columns from table.
1802 * DataRowCollection.cs: Clear (): don't have to throw child key
1803 constraint exception when the child table does not have any
1804 rows. safe to remove parent rows.
1805 * UniqueConstraint.cs: added method "Contains (DataColumn)" to
1806 check whether a column is part of UniqueConstraint.
1807 * ForeignKeyConstraint.cs: added method "Contains (DataColumn,
1808 lookInParent)" to check whether a column is part of foreignkey.
1810 fixes nunit failure: DataTableTest.ClearTest ()
1812 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
1814 * ForeignKeyConstraint.cs: validating columns: move checking
1815 "tables are of same dataset" before "checking column types".
1817 fixes nunit failure: ForeignKeyConstraint.CtorExceptions.
1819 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1821 * DataViewManager.cs : let's just use StringWriter instead of
1822 XmlTextWriter (to avoid empty tag string mismatch annoyance.)
1823 * DataView.cs : implemented BeginInit() and EndInit(). Don't update
1824 rows during init phase until EndInit() is invoked. During init phase,
1825 just hold properties such as Sort that affects on rows.
1827 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1829 * DataTableCollection.cs : (RemoveAt) just use IndexOutOfRangeException.
1831 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1833 * DataView.cs : DataRowView.EndEdit() raises ItemMoved event.
1834 set_Table clears Sort and RowFilter.
1836 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1839 - Clear() should clear AddNew cache.
1840 - Open() invokes Reset().
1841 - ConstraintCollectionChanged() itself does not invoke OnListChanged().
1842 - Reset() does not Open, Close and Update Index.
1843 - UpdateIndex() can be invoked even if it has no table.
1844 - Reset event is invoked always after actual query to table.
1845 - set_Table should raise PropertyDescriptorChanged event.
1847 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1849 * DataView.cs : ColumnCollectionChanged() is the event invoker (i.e.
1850 when overriden, no column change events are fired).
1852 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1854 * DataView.cs : CancelEditRowView() and DeleteRowView() was incorrectly
1855 checking target tables. They also should raise events if required.
1857 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1859 * DataView.cs : simplify code with UnsortedList.
1861 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
1863 * DataView.cs : Mostly reimplemented.
1864 - UpdateIndex() is invoked only when it is required (results in
1865 significant performance improvement).
1866 - Use SortedList and wrapper OptionalSortedList which switches
1867 between SortedList (with Sort) and UnsortedList (without Sort).
1868 - DataView itself now contains two collections for rowviews:
1869 Table rows based pool and AddNew() based cache. Consider those
1870 two collections in every members.
1871 - Reset() does not clear rows. Just invokes UpdateIndex().
1872 - Hook RowDeleting, ColumnChanging and ColumnChanged events in table
1873 which is required to handle state changes.
1874 - Reimplemented Find() and FindRows() because of internal changes.
1876 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
1878 * DataTable.cs : Fixed row comparer. Even if every of the sort target
1879 columns are identical for two rows, they should not be regarded as
1880 the same unless they are Object.ReferenceEquals.
1882 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
1884 * DataRowCollection.cs : on adding a row, should raise
1885 ChangingDataRow() as well as ChangedDataRow().
1887 2005-01-31 Sureshkumar T <tsureshkumar@novell.com>
1889 * DataRow.cs: SetParentRow (): use relation.ParentColumns &
1890 relation.ChildColumns instead of relation.ChildKeyConstraint.*
1891 because createConstrains flag may be false when creating data
1892 relations. Hack along with Ankit Jain.
1894 2005-01-31 Atsushi Enomoto <atsushi@ximian.com>
1896 * DataView.cs :some interface implementations.
1898 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1900 * DataView.cs : Add to table only when the row is not in the table.
1902 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1904 * DataView.cs : implemented FindRows() (btw we should not use
1905 DataTable since there are detached rows by AddNew().)
1907 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1910 Code cleanup: privatify some members, remove unused methods.
1911 Some event-based invocation methods should not raise NotImplemented.
1913 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1915 * DataSet.cs : ReadXml() became closer to MS behavior, being hacky.
1917 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1919 * XmlSchemaDataImporter.cs : empty element is not regarded as a column.
1921 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1923 * UniqueConstraint.cs : mostly reverted the previous patch + check
1924 IsPrimaryKey before validation.
1926 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1928 * DataView.cs : Fixed duplicate insertion to Hashtable.
1929 * UniqueConstraint.cs : Unique constrained pair of columns could be
1932 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1935 Don't do anything for Sort/ApplyDefaultSort/RowFilter/RowStateFilter
1936 when the same value is being set.
1937 Examined UpdateIndex() and marked FIXME where MS does not invoke it.
1938 Removed unused OnColumnChanged().
1939 Now store rowViewPool and reuse DataRowView objects.
1940 Optimized UpdateIndex() - avoid ArrayList. Avoid Haashtable.Rehash().
1942 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1944 * DataViewSettings.cs : no MonoTODO anymore.
1945 * DataViewManager.cs : pass itself to new DataView() (new ctor).
1946 * DataRowView.cs : GetHashCode() returns its Row's hash.
1947 * DataTablePropertyDescriptor.cs : use new ctor().
1948 * DataView.cs : added new ctor()s that accept DataViewManager.
1950 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1952 * DataView.cs, DataRowView.cs : AddNew() should not add the row to table
1953 (it is still detached). So handle those rows differntly.
1954 CancelEdit(), EndEdit() and Delete() propagates those events to
1955 DataView (and handle row collection).
1956 Eliminate "throw new Exception()".
1957 Don't catch all the exception thrown in ListChanged event.
1958 * DataTable.cs : made RowSorter as internal and use it in DataView.
1959 no need to pass DataRow[] to .ctor().
1961 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1963 * DataTable.cs : don't create DefaultView unless it is required. It
1964 significantly improves performance. (i.e. DataView perf. is sick ;-)
1966 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1968 * DataViewSetting.cs,
1969 DataViewSettingCollection.cs,
1970 DataViewManager.cs : implemented basic members.
1972 2005-01-26 Atsushi Enomoto <atsushi@ximian.com>
1974 * Node.cs, DataColumnPropertyDescriptor.cs, DataTable.cs :
1975 Eliminate "throw new Exception".
1977 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1979 * DataRow.cs : (set_Item) RowNotInTableExeption check should be done
1980 regardless of index existence.
1982 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1984 * DataTable.cs : use new IExpression.EvalBoolean() to avoid extraneous
1987 2005-01-25 Sureshkumar T <tsureshkumar@novell.com>
1989 * DataTable.cs: ImportRow :Do not add to rows collection if the
1990 import row is in detached state.
1992 2005-01-25 Sureshkumar T <tsureshkumar@novell.com>
1994 * DataRow.cs: CopyValuesToRow : set the column value with the
1995 default version of the given row.
1996 * DataTable.cs: ImportRow: Copy values before adding row.
1997 * DataSet.cs: AddChangedRow: Add the row to the table after
2000 Fixes bug #67317. Patch by Ankit Jain.
2002 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
2004 * DataRowView.cs : Fixed IsEdit to reflect correct status of DataRow.
2005 * DataRow.cs : Expose editing status internally.
2007 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
2009 * DataView.cs : missing attributes.
2011 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
2013 * DataRowView.cs : implemented CreateChildView().
2015 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
2017 * DataTable.cs, DataView.cs :
2018 Optimized DataView to compile only once RowFilter and Sort when
2019 those properties are set. To make it possible, extracted
2020 SortableColumn out of DataTable and added internal DataTable.Select()
2021 that accepts precompiled IExpression and SortableColumns[].
2023 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
2025 * DataColumn.cs : set_MaxLength is not allowed when it is mapped to
2026 SimpleContent. (However, it is weird but it never fails when we set
2027 ColumnMapping = MappingType.SimpleContent when we fhave MaxLength.)
2029 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
2031 * DataRow.cs : more Current -> Default fixes. Check if it should throw
2032 VersionNotFoundException. Patch by Ankit Jain.
2034 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
2036 * DataRow.cs : Default selects the right version for the current
2037 state of the row. Current is not always available. Also change
2038 that for GetParentRow(). Patch by Ankit Jain.
2040 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
2042 * DataTable.cs : CopyColumn() should copy AutoIncrement after
2043 DefaultValue, or it will raise an error in some cases.
2045 2005-01-20 Atsushi Enomoto <atsushi@ximian.com>
2047 * ConstraintCollection.cs : Add() should throw ArgumentException when
2048 the argument constraint fails validation.
2049 DataTable.cs : set_PrimaryKey should throw ArgumentException when
2050 the argument contains constraints which fail validation.
2052 2005-01-19 Sureshkumar T <tsureshkumar@novell.com>
2054 * DataRelationCollection.cs:
2056 Method Remove : Donot throw exception if DataRelation argument is
2057 null in DataRelationCollection.Remove method.
2059 Method RemoveAt : Exception should be IndexOutOfRangeException if
2060 row index is not in list range.
2062 Fixes nunit failures DataRelationCollection.Remove and
2063 DataRelationCollection.RemoveAt.
2065 2005-01-19 Sureshkumar T <tsureshkumar@novell.com>
2067 * ConstraintCollection.cs: Donot throw exception if constraints
2068 are null in AddRange method. Check for null before using the
2073 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
2075 * XmlDataInferenceLoader.cs,
2076 XmlDataReader.cs : Check if the XmlReader (node) represents DataSet
2077 or a table, reusing code block in XmlDataInferenceLoader.
2078 This fixes bug #60118.
2080 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
2082 * XmlDiffLoader.cs : Ankit Jain <radical@imt.ac.in> has a conflicting
2083 patches and some good catches. Some attributes should be skipped,
2084 and loaded value must be typed.
2086 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
2089 XmlDataInferenceLoader.cs,
2090 XmlDataReader.cs : use common const for http://www.w3.org/2000/xmlns/.
2091 * XmlDiffLoader.cs : It was not handling attributes. Fixed bug #70961.
2093 2005-01-18 Sureshkumar T <tsureshkumar@novell.com>
2095 Fix for bug #66838. This patch is submitted by "Ankit Jain"
2096 <radical@corewars.org> and refactored.
2098 * DataRow.cs: Allows to set a parent row even if the row is in
2101 * DataRelation.cs: method "UpdateConstraints" is added to check
2102 and create missing keys when adding a relation. This is refactored
2103 approach from DataRelationCollection.Add method.
2105 * DataRelationCollection.cs: AddCore methods of all relation types
2106 are synchronized. A Check for existing constraints is
2107 done. Relation is added to the list only if all checks are passed.
2109 2004-01-18 Atsushi Enomoto <atsushi@ximian.com>
2111 * DataColumnCollection.cs : Clear() throws ArgumentException that
2112 wraps thrown innerException.
2113 * XmlSchemaDataImporter.cs : removed FIXMEs.
2115 2004-01-12 Atsushi Enomoto <atsushi@ximian.com>
2117 * DataSet.cs : When serializing DataTable, BuildSchema() is passed
2118 null relation collections.
2119 Quick fix for XmlSerializer deserialization. It does not require
2120 XML Schema included.
2122 2004-01-11 Atsushi Enomoto <atsushi@ximian.com>
2125 CustomDataClassGenerator.cs :
2126 In DataSet class, IXmlSerializable.GetSchema() returns null.
2127 In strongly-typed class, it returns schema.
2129 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
2131 * XmlDataInferenceLoader.cs : test driver class should be excluded.
2133 2004-12-01 Miguel de Icaza <miguel@ximian.com>
2135 * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
2138 2004-11-10 Atsushi Enomoto <atsushi@ximian.com>
2140 * CustomDataClassGenerator.cs : generated foreign key constraint
2141 construction code was creating empty child columns and thus it
2142 was invalid. This fixes bug #69276 (patch by Martin Voelkle).
2144 2004-11-02 Atsushi Enomoto <atsushi@ximian.com>
2146 * CustomDataClassGenerator.cs : custom DataTable ctor should call
2147 InitializeFields(), and those DataColumns created by that method
2148 should take data type. This should fix bug #68972.
2150 2004-10-15 Atsushi Enomoto <atsushi@ximian.com>
2152 * DataSet.cs : Also clear UnhandledAttributes ArrayList before
2153 generating next attribute column schema. This fixes bug #68432.
2155 2004-10-14 Umadevi S <sumadevi@novell.com>
2156 * DataTable.cs : Corrected the Clone method to use Activator.CreateInstance so that the
2157 correct subclass is returned. This fixes bug #67631
2159 2004-10-14 Umadevi S <sumadevi@novell.com>
2160 * DataSet.cs : Corrected the Clone method to use Activator.CreateInstance so that the
2161 correct subclass is returned. This fixes bug #67627
2163 2004-10-13 Atsushi Enomoto <atsushi@ximian.com>
2165 * DataSet.cs : clear UnhandledAttributes ArrayList before generating
2166 next element column schema. This fixes bug #68256.
2168 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
2170 * DataSet.cs : now xs:schema contains xmlns="".
2171 This fixes bug #68008.
2173 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
2175 * DataSet.cs : DBNull attribute column should not be written as
2176 empty attribute. This fixes bug #68007.
2178 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
2180 * DataSet.cs, XmlConstant.cs, XmlSchemaDataImporter.cs:
2181 DataColumn.ReadOnly was not handled. This fixes bug #68005.
2182 Attribute defaultValue was not handled too.
2184 2004-10-07 Atsushi Enomoto <atsushi@ximian.com>
2187 - When AllowDBNull is false on attribute DataColumn, its schema
2188 should contain use="required". This fixes bug #66792.
2189 - If MaxLength is set on attribute DataColumn, the mapped schema
2190 type should contain maxLength facet. This fixes bug #66793.
2192 2004-10-04 Atsushi Enomoto <atsushi@ximian.com>
2194 * DataSet.cs : For a row, when a relation is not nested, then it is
2195 still output target since it won't be written as a child of its
2196 parent. It fixes bug #66379.
2198 2004-10-03 Atsushi Enomoto <atsushi@ximian.com>
2200 * DataSet.cs : Attribute constraint field XPath must be written as
2201 @blah. This fixes bug #66366.
2203 2004-09-28 Umadevi S <sumadevi@novell.com>
2204 * DataRow.cs - checked for Enforceconstraints, while using indices to search for related rows
2206 2004-09-24 Sureshkumar T <tsureshkumar@novell.com>
2208 * DataSet.cs : Don't check constraints for dataset clear
2209 * DataRowCollection.cs : check for EnforceConstraints flag
2210 before checking foriegn key constraints in Clear method
2211 * DataTable.cs : Redundant checking removed in Clear method as it is
2212 checked in DataRowCollection.Clear method.
2215 2004-09-19 Sureshkumar T <tsureshkumar@novell.com>
2216 * DataRow.cs : while deserialization of dataset, adding a current row precedes the original row.
2217 hence, adding a row cache is necessary if the original row happens to be current.
2220 2004-08-23 Martin Baulig <martin@ximian.com>
2222 * XmlDataInferenceLoader.cs (Driver): Make this class internal,
2225 2004-08-18 Umadevi S <sumadevi@novell.com>
2226 * DataView.cs - Completed most of the event handling.
2227 Thanks to Punit Todi <punit_todi@da-iict.org> for implementing most of it.
2228 Thanks to Boris Kirzner <borisk@mainsoft.com> for commenting and suggesting changes to the implementation.
2229 * DataTable.cs - Changed Access modifiers of class/methods since it was used by DataView.
2231 2004-08-06 Atsushi Enomoto <atsushi@ximian.com>
2233 * DataSet.cs : DataSet's ExtendedProperties were not XmlConverted.
2235 2004-08-05 Atsushi Enomoto <atsushi@ximian.com>
2237 * XmlConstants.cs : Added constants for "msprop" support.
2238 * DataSet.cs : ExtendedProperties should be written in the schema.
2239 This fixes bug #61233.
2241 2004-07-27 Atsushi Enomoto <atsushi@ximian.com>
2243 * DataSet.cs : on serialization to XmlWriter, XmlConvert should be
2244 used. There were also some culture dependency problems to write int.
2246 2004-06-27 Atsushi Enomoto <atsushi@ximian.com>
2248 * XmlDataInferenceLoader.cs : It was not always filling relation
2249 child table information correctly. This fixes bug #60742.
2251 2004-06-23 Umadevi S <sumadevi@novell.com>
2252 * UniqueConstraint.cs :changed a ifdef true to ifdef NET_1_1
2254 2004-06-22 Atsushi Enomoto <atsushi@ximian.com>
2256 * DataSet.cs : Fixed ReadXml(). When ReadMode is ReadSchema and the
2257 schema is inside the document element (as created in XmlWriteMode
2258 .WriteSchema), it should read schema from that non-document element.
2259 This fixes one case reported in bug #60470.
2261 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
2263 * XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
2264 inference target. For bug #60470. (MS does not support schema
2265 document inference and results in unconsistent dataset structure.)
2267 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
2269 * DataTableCollection.cs : reset the table's DataSet to null when
2270 removing a table from this collection.
2271 * DataTable.cs : When Namespace is not specified explicitly, its
2272 Namespace property reflects DataSet's Namespace if exist.
2273 This fixes bug #60469.
2275 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
2277 * DBConcurrentcyException.cs: CRLF to LF
2278 * DataViewSetting.cs: CRLF to LF
2280 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
2282 * DataViewSetting.cs: renamed fields to match MS.NET
2284 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
2286 * DBConcurrencyException.cs: fixed serialization compatibility with
2289 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2291 * ChangeLog : Fix for misspelled words.
2293 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2295 * DataRowCollection.cs : Removed onColumnRemoved since it is not in use.
2297 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2300 - Table stores default values for columns in special default values row.
2301 It is allocated once (in NewRow).
2302 - DataTable.Copy rewrited. It works with uninitialized rows for better perfomance.
2303 - OnRemoveColumn has nothing to perform by now.
2305 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2308 - Changed access of original, current and proposed indexes to internal.
2309 - ColumnErrors reviewed : now column errors stored in ArrayList and allocated on demand only.
2310 - Added new DataRow constructor that creates uninitialized DataRow (used in DataTable.Copy).
2311 - Use DataContainer.CopyValue and default values row for faster set of default values in row.
2312 - SetColumnValue become CheckValue. Now it does not changes the value, but only checks for its correctness.
2313 Care about Null and DBNull values is now in DataContainer.
2314 - Use DataColumn.AutoIncrementValue and GetInt64 for faster set of autoincrement value.
2315 - Use Datacontainer.CopyValue and default values row to speed up CheckChildRows.
2316 - Fix in CopyState : clone column errors.
2317 - Removed CollectionChanged and onColumnRemoved since we are not using both of them anymore.
2319 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2321 * DataColumnCollection.cs :
2322 - Fix : Add() now delegates to Add(DataColumn).
2323 - autoIncrement list holds DataColumn objects, and not just column names.
2325 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2328 - AutoIncrementValue fixes. Now AutoIncrement uses DataContainer.GetInt64 to avoid boxing.
2329 - DefaultValue fixes. Default value from now on is also stored in special record in
2330 DataTable, so we're able to set default value for the column faster (typed).
2333 2004-06-15 Atsushi Enomoto <atsushi@ximian.com>
2335 * DataSet.cs : children of non-root rows were not properly written.
2338 2004-06-10 Umadevi S <sumadevi@novell.com>
2339 * DataRelation.cs - Constructor
2340 - The datatypes of the parentcolumn(s) and the childcolumn(s) should match
2342 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
2344 * XmlSchemaDataImporter.cs : We should fill Namespace for DataTable.
2346 2004-06-04 Gert Driesen <drieseng@users.sourceforge.net>
2348 * Constraint.cs: marked methods internal to fix public API
2349 * ConstraintCollection.cs: to fix public API, use
2350 DataTable.fInitInProgress to check whether initialization
2351 of DataTable is in progress
2352 * DataColumn.cs: added stubs for missing methods
2353 * DataRowBuilder.cs: marked Table property internal to
2355 * DataSet.cs: removed extra empty destructor, marked
2356 OnMergeFailed internal to fix public API
2357 * DataTable.cs: use fInitInProgress field to hold init
2358 status, to match MS.NET
2359 * DataView.cs: added missing attributes on IsOpen
2361 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
2363 * DataSet.cs : Use NameTable.Get() before calling LookupNamespace()
2364 in XmlNamespaceManager.
2366 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
2368 * DataSet.cs : complex table content child was not properly added
2369 when it is the only one child in the parent table. Fixed bug #53959.
2371 2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
2372 * DataTableTypeConverter.cs: added
2373 * DataView.cs: added missing attribute on Table property
2374 * DataViewManager.cs: moved attribute to correct property
2375 * UniqueConstraint.cs: removed extra ReadOnly attribute from
2376 IsPrimaryKey property
2378 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
2380 * DataRow.cs : ColumnsChanged event is not required in .ctor().
2382 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
2384 * XmlDataReader.cs : type change is required before setting value
2387 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
2389 * DataSet.cs : Loop-break of the last fix was incorrect.
2391 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
2393 * DataSet.cs : When a row has no parent row but the table has parent
2394 relation(s), that row had been always ignored.
2396 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
2398 * XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
2399 rejected same-named tables in different hierarchy. Thanks to Boris.
2401 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
2403 * XmlDiffLoader.cs : Added some Skip() that is required not to go to
2404 infinite loop. Thanks to Boris for this fix.
2406 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
2408 * XmlDataInferenceLoader.cs : XmlSchema elements should not be infered.
2409 Thanks to Boris for this fix.
2411 2004-05-30 Atsushi Enomoto <atsushi@ximian.com>
2413 * DataTable.cs : serialization .ctor() should use XmlReadMode.DiffGram
2414 for ReadXml(). Thanks to Boris.
2416 2004-05-27 Boris Kirzner <borisk@mainsoft.com>
2418 - CheckReadOnlyStatus : use typed (and faster comparing).
2419 - EndEdit : bug fix - do not dispose record if it holds original version.
2420 - SetValuesFromDataRecord : Take care about autoincrement columns.
2423 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2425 * MergeManager.cs : don't output debug message to Console.
2427 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2429 * XmlDataInferenceLoader.cs : Namespace are not imported to the table
2430 structure. Thanks to Boris Kirzner for the fix.
2432 2004-05-27 Umadevi S <sumadevi@novell.com>
2433 * DataRelationCollection.cs - fixed nunit test errors
2435 2004-05-27 Umadevi S <sumadevi@novell.com>
2436 * DataTableCollection.cs - fixed nunit test errors
2438 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
2440 * DataColumnCollection.cs : NullReferenceException was thrown when
2441 the table was not found.
2442 * DataRowCollection.cs :
2443 Find() just returns null for null value under MS.NET 1.1.
2444 RemoveAt() should also avoid to call AcceptChanges() like Remove().
2445 * UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
2446 directly under MS.NET (for nunit test).
2448 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
2450 * XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf()
2451 caused problem on qualified name to get schema Field name.
2453 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
2455 * XmlDataReader.cs : Now data reader is namespace aware in all places.
2456 When table's namespace is different, it entered to infinite loop.
2458 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
2459 * MergeManager.cs : AdjustSchema now updates by reference new created table,
2460 so in Merge you do not need to lookup for it (were unable to do this for unnamed tables).
2463 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
2465 * DataColumn.cs : In set_Item[int] - if autoincrement, adjust next autoincrement value.
2466 * DataColumnCollection.cs : fixed parantethes.
2468 - AcceptChanges : do nothing if row state is unchanged.
2469 - GetChildRows, GetParentRows : bug fix (use correct index).
2470 * DataRowCollection.cs : bug fix (compare all row's values).
2471 * DataTable.cs : bug fix (use correct row version).
2473 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
2475 * XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
2476 When content type is Mixed, text column is not required (it is
2477 required only when the complex type has no particle).
2478 "Repeated element" column is also created (considering maxOccurs=0
2479 and complex content extension).
2481 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
2483 * XmlSchemaDataImporter.cs : XmlSchemaGroupBase was not handled
2486 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
2488 * XmlSchemaDataImporter.cs : Removed unused code and extra MonoTODO.
2489 Fixed relation inference to consider attribute XPath.
2491 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
2493 * DataColumn.cs : Fixed set_Item[int]. Convert.ToInt64(DBNull.Value)
2496 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
2498 * DataColumn.cs - removed default member attribute.
2500 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
2503 DataColumnChangeEventArgs.cs,
2504 DataColumnCollection.cs,
2506 DataRowCollection.cs,
2508 Index.cs : Data storage in the row is redesigned. Now data is stored in
2509 typed containers inside DataColumn. Row holds its versions as indexes inside
2510 each of data container, accessed through the row that holds it.
2512 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
2514 * UniqueConstraint.cs - added comment.
2516 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
2518 * XmlDataInferenceLoader.cs : Don't add already-existing DataTable to
2521 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
2524 XmlDataInferenceLoader.cs,
2526 XmlSchemaDataImporter.cs : XmlDecode every local name to read and
2527 XmlEncode every local name to write. This should fix bug #58268.
2529 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
2531 * DataSet.cs : Implemented ignored namespaces in InferXmlSchema().
2532 Supported repeated elements. Removed MonoTODOs.
2533 * XmlDataInferenceLoader.cs : Design change to support ignored
2534 namespace and repeated elements.
2535 * XmlSchemaDataImporter.cs : Added mapping support classes.
2537 2004-05-15 Atsushi Enomoto <atsushi@ximian.com>
2539 * CustomDataClassGenerator.cs :
2540 Added property parent "[foo]Row" and children "Get[foo]Row" support
2541 for custom DataRow classes.
2542 Fixed DataColumn property accessibility (public --> internal).
2544 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
2546 * CustomDataClassGenerator.cs :
2547 - Put classes inside custom DataSet class.
2548 - Added automatic DataRelation creation support.
2549 - Added Constraints creation support. That is done separate from
2550 relations, since they might be independently created.
2551 - Added non-MS public DataRelation fields.
2552 - Removed extraneous "DataRelation type generation" code.
2553 - Fixed custom_dataset.Initialize() not to create "c" field that
2554 was created more than once.
2555 - Implemented AddxxxRow() that takes parameters for every column.
2557 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
2559 * XmlSchemaDataImporter.cs : When primary key is used more than once,
2560 DataRelation borked because of empty parent column name.
2562 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
2564 * XmlSchemaDataImporter.cs : When Creating constraints with related
2565 to DataRelation creation, also set PrimaryKey to the parent table.
2567 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
2569 * XmlSchemaDataImporter.cs :
2570 Design change to add indirect table and relation structures.
2571 Support for "relation" annotation for local element.
2572 Support for repeatable simple element column (maxOccurs > 1).
2573 Fixed handling of Nested property on DataRelation (for globally
2574 annotated relation, Nested is false).
2576 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
2578 * DataRow.cs : Added DataElement property to avoid storing every row-
2579 element mapping. It stored even for nodes that should be removed.
2581 2004-05-13 Umadevi S <sumadevi@novell.com>
2583 * RelationshipConverter.cs - Stubbed this class
2584 * DataRelation.cs - added TypeConveterAttribute
2586 2004-05-13 Umadevi S <sumadevi@novell.com>
2588 * DataColumnCollection.cs - Added ResDescriptionAttribute
2589 * DataRelation.cs - Added TypeConverterAttribute
2590 * DataRelationCollection.cs - Added DefaultPropertyAttribute
2591 * DataRowView.cs - Added GetHashCode method with a TODO tag
2592 * DataSet.cs - Added DesignerAttribute
2593 * DataView.cs - Added DesignerAttribute
2594 * DataViewManager.cs - Added DesignerAttribute
2595 * DataViewSetting.cs - Added TypeConverterAttribute
2597 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
2599 * DataRow.cs : Added XmlDataElement initialization code.
2601 2004-05-11 Atsushi Enomoto <atsushi@ximian.com>
2603 * XmlDataInferenceLoader.cs :
2604 It now requires XmlDocument as input. Improved identification of
2605 DataSet element. Removed extra lines.
2606 Moved boresome design notes to bottom of the source and
2607 added standalone runnable driver (not included on build).
2609 Update with related to the change above.
2610 WriteXml() should call Flush() after writing. This fixes bug #58327.
2611 * XmlSchemaDataImporter.cs :
2612 Improved indentification of DataSet element.
2614 2004-05-11 Gert Driesen (drieseng@users.sourceforge.net)
2615 * DataTable: marked initStatus enum internal
2617 2004-05-09 Gert Driesen (drieseng@users.sourceforge.net)
2618 * DataTable.cs: removed TypeConverterAttribute, marked RowsExist
2620 * DataRowView.cs: removed extra Error property
2621 * DataRow.cs: reduced accessibility of CollectionChanged method
2623 * DataColumnPropertyDescriptor.cs: made class internal
2624 * DataColumn.cs: removed extra TypeConvertorAttribute
2625 * ConstrainCollection.cs: marked PostEndInit method internal
2627 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
2630 In WriteXmlSchema(), when complex type contains simple type content
2631 attributes must not added to XmlSchemaComplexType directly. It
2632 causes schema compilation error.
2633 DataRelation should not be output when related columns are hidden.
2635 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
2637 * XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
2638 also expected to do ReadXml(), but I will remove that feature and
2639 support column reordering).
2640 * XmlSchemaDataImporter.cs : Always initialize dataset name.
2641 Always set Nested and primary key for parent table.
2642 * XmlDataReader.cs : Now it is used.
2643 Top level element might not match to dataset name nor any table
2644 name, but still possible to read content tables.
2645 Handle empty element correctly in some places.
2646 Handle Fragment mode (read up XmlReader to the end).
2647 * DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
2648 XmlDataInferenceLoader and XmlDataReader.
2650 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
2653 Eliminated CRLF injection.
2654 More clear message in Clear().
2655 Updates reflecting XmlSchemaDataImporter change.
2656 Added duplicate check for XmlSerializerNamespaces in BuildSchema().
2657 Don't use xmlns attribute for UnhandledAttributes (its not mandatory
2658 but that depends on different behavior from ms.net).
2659 Set locale also for DataTable.
2660 Add xs:element only when target namespace matches to the
2661 element's namespace. Otherwise, add xs:import for external namespace.
2662 Put xs:sequence for dataset element's particle _only when_ actual
2665 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
2667 * XmlDataReader.cs : Added. This class will work better when our
2668 schema inference and schema read engine gets improved. (It contains
2669 standalone testable Driver class.)
2671 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
2673 * ForeignKeyConstraint.cs : Check step change. Existence then column
2674 validity. just for tests.
2675 * XmlSchemaDataImporter.cs : code simplification. reduced extraneous
2678 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2680 * DataSet.cs : Ignore empty content only when output type is diffgram.
2682 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2684 * CustomDataClassGenerator.cs : Modified that DataSet contains each
2685 DataTable field so that each table property can access them directly.
2686 (plus, modified standalone code driver code: shouldn't affect)
2688 2004-05-05 Boris Kirzner <borisk@mainsoft.com>
2690 * DataView.cs , DataRowView.cs : Added implementation to basic methods and properties.
2692 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2694 * XmlSchemaDataImporter.cs :
2695 SimpleContent column support.
2696 Annotated relation support.
2697 Top-level element is counted only when its type is complex.
2698 xs:anyType is no longer treated as complex type.
2699 dataset existence is mandatory now.
2700 Improved DataType and DefaultValue support.
2701 Attribute namespace is properly handled now.
2702 Prohibited attribute is now treated as hidden column.
2703 Reject list or union simple type.
2705 Still incomplete 1) to read relationship in some cases, 2) to
2706 determine whether an element is dataset or table, 3) thus to
2707 exclude extraneous column, 4) to remove extraneous *_Id column.
2709 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2712 We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
2713 serialization .ctor() (thus schema read/inference should be easier).
2714 DataRowSorter should consider Table's Locale.
2716 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2718 * DataColumnCollection.cs : We already had AutoIncrementValue(), so
2719 use it instead of duplicating logic.
2721 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2723 * ConstraintCollection.cs :
2724 Use Table.CaseSensitive and Table.Locale to compare strings.
2725 Duplicate constraint name exception does not occur under .NET 1.1.
2727 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
2729 * XmlSchemaDataImporter.cs: Added little type check.
2731 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
2733 * DataSet.cs: Implemented support for runtime serialization. Fixed support
2734 for xml serialization.
2735 * XmlDiffLoader.cs: Skip diffgram element when it is empty.
2737 2004-04-30 Umadevi S <sumadevi@novell.com>
2738 * DataColumnCollection.cs : Fixed nunit test errors, removed TODOs
2739 * DataTableCollection.cs : Tested and removed TODO
2740 * TypedDataSetGeneratorException.cs : Fixed a couple of TODOs
2742 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
2744 * DataRow.cs : My previous patch unintentionally reverted Boris patch.
2746 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2748 * UniqueConstraint.cs : Constraint columns becaomes unique after adding constraint ifand only if
2749 constraint is defined on single column.
2751 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
2753 * DataRowCollection.cs : .NET 1.1 throws InvalidConstaintException,
2754 not ArgumentException (maybe changed after 1.1).
2756 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
2758 * DataRow.cs : When Column was added and it was AutoIncrement column,
2759 it extended the item object array incorrectly.
2760 (Plus tiny comment and incorrect indentation fix.)
2762 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2764 * MergeManager.cs : added ( incomplete yet ) support for merging DataSet schema.
2766 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2768 * DataRow.cs : Bug fix in CopyValuesToRow().
2770 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2772 * UniqueConstraint.cs : There is no reason to mark constraint's columns as unique, because
2773 each of the columns should not be unique, but only all the constraint's columns together.
2775 2004-04-28 Boris Kirzner <borisk@mainsoft.com>
2778 - Added using of list of autoIncrement columns
2779 - SetColumnValue receives also DataColumn to avoid duplicate lookup in DatacolumnCollection
2780 - Fix in CheckNullConstraints
2781 - Fix in this[] and HasVersion() : when evaluating an expression deleted rows values can be accessed.
2782 - Fix in SetColumnValue() , added CanAccess() method to avoid case of accessing internal array values berore it actually allocated.
2783 - Added onColumnRemoved() method to threat column removal accurately.
2785 * DataRowCollection.cs :
2786 - Added using of DataRow._nullConstraintViolation (for perfomance fix in EndLoadData())
2787 - Added method onColumnRemoved() - calls each row's onColumnRemoved() (to ensure column removal is treated accurately)
2790 - Call DataRowCollection.onColumnRemoved() in OnRemoveColumn() (to ensure column removal is treated accurately)
2792 * DataColumnCollection.cs :
2793 - Perfomance fixes :
2794 - collection holds a list of its autoIncrement columns (avoids unnesessary lookup through whole collection)
2795 - collection holds mapping from column names to DataColumn objects (avoids lookup through whole collection).
2796 - automatic creation of column names rewrited (bug fixes + perfomance improvement)
2799 - Uses autoincrement list of a table
2801 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2803 * XmlDataLoader.cs : Even when it should ignore schema, it was
2805 * XmlSchemaDataImporter.cs : DataRelation creation support.
2806 Improved "DataSet" element handing. When attributes are on the
2807 element, it is not a "DataSet" element.
2808 Fixed parent key column name.
2809 Unique name creation is not required. Just raise an error.
2810 Fill facet also for attribute types.
2812 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2814 * DataRow.cs : Null check for CheckReadOnlyStatus() and
2815 CheckNullConstraints(), with some coding guideline fixes.
2816 Type check should be done by Type instance comparison.
2818 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2820 * DataColumnCollection.cs : When add a column to the collection, fill
2821 auto-increment column.
2823 2004-04-26 Boris Kirzner <borisk@mainsoft.com>
2825 * DataColumn.cs : Small perfomance fix (avoid unnesessary string concatenation).
2827 2004-04-26 Atsushi Enomoto <atsushi@ximian.com>
2829 * CustomDataClassGenerator.cs : Added.
2830 * TypedDataSetGenerator.cs : Implemented Generate().
2831 Changed GenerateIdName() to call CustomDataClassGenerator.MakeSafeName
2832 * XmlSchemaDataImporter.cs : Table Locale should be supplied.
2834 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
2836 * DataTable.cs : Small perfomance fix (avoid unnesessary string concatenation).
2838 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
2840 * Constraint.cs : Small perfomance fix (avoid unnesessary string concatenation).
2842 2004-04-23 Umadevi S (sumadevi@novell.com)
2843 * DataRow.cs: Checked BeginEdit,EndEdit,CancelEdit and Delete methods
2844 - Added error handling to the above methods
2846 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
2848 * DataSet.cs : Data should be read when mode is IgnoreSchema (well,
2849 the support is incomplete yet).
2850 * XmlDataLoader.cs :
2851 Reverted ReadModeSchema() argument change. XmlReadMode would be
2852 useful to handle IgnoreSchema.
2853 Don't overwrite DataSetName when mode is not such kind.
2854 Set Prefix and Namespace as well as DataSetName.
2855 AllowDBNull looks set false by default for element column.
2856 Set unique constraint as primary key when infering the table schema.
2858 2004-04-21 Atsushi Enomoto <atsushi@ximian.com>
2861 Never set null string for Prefix and Namespace.
2862 In InferXmlSchema() when null XmlReader is passed, just do nothing.
2863 In WriteXmlSchema(string), earlier try block.
2864 In BuildSchema(), try to add serialization namespaces for each
2865 namespaces in DataSet/DataTable/DataColumn.
2866 Removed namespace argument from WriteColumnAsElement() and don't
2867 overwrite when namespace is "". This fixes bug #57330.
2868 * DataColumn.cs : For Namespace and Prefix, never set null.
2870 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2872 * XmlSchemaMapper.cs : Check for not null unique constraint in ReadXmlSchemaKeyref()
2873 before creating and adding foreign key constraint and relation.
2875 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2877 * MergeManager.cs : In AdjustSchema() source table clone should be added
2878 and not the table itself.
2880 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2883 - CaseSensitive : Additional fix (removed unnesessary assignment).
2884 - CopyProperties : Do not try to copy ExtendedProperties if the collection is empty.
2886 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2888 * DataTable.cs : Ensure that DataSet property is not null before using it in Clear().
2890 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
2893 - EndLoadData() : perfomance fix in case of null constraint violation
2894 during data load (also in DataRow.cs).
2895 - CaseSensitive : If DataTable belongs to DataSet it should always use
2896 DataSet.CaseSensitive untill explicitly changed.
2897 - CopyProperties() : do not try to copy ExtendedProperties if the collection is empty.
2900 - Pefromance fix in case of null constraint violation
2901 during data load (also in DataTable.cs).
2902 - CollectionChanged() : use correct column number after new DataColumn was added
2903 (differs in case some DataColumn was previosly removed).
2904 - EndEdit() - throw away proposed values only after CheckChildRows() complete.
2906 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
2908 * DataColumnCollection.cs : Since unique constraint is added now
2909 in DataColumn.SetTable() the additional creation of constraint in
2910 DataColumnCollection.Add() is redundant and causes exception - fixed.
2912 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
2914 * XmlDataLoader.cs : Added "never add data rows" mode.
2915 Removed unused code. However, it is temporary fixes to unify
2916 ReadXml() and InferXmlSchema().
2917 * DataSet.cs : Implemented InferXmlSchema(), though it is incomplete.
2919 I'll create another XmlDataLoader since there are many problems
2920 such that 1) it is too waste to read the entire xml into an
2921 XmlDocument, 2) it does not handle attributes correctly, and 3) it
2922 must handle "ignored namespaces".
2924 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
2926 * Added XmlSchemaDataImporter.cs (new schema reader).
2927 * DataSet.cs : Use XmlSchemaDataImporter (right now for DataSet only)
2928 for ReadXmlSchema().
2929 Let schema reading work to ReadXmlSchema().
2930 Don't return ReadSchema when argument read mode was DiffGram.
2932 2004-04-15 Umadevi S (sumadevi@novell.com)
2933 * Updated Clone/Copy methods in DataSet along with Testcase
2934 * ForeignKeyConstraint.cs - special ctor implemented
2935 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).
2936 * Changes in ConstraintCollection.cs for the above
2937 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.
2940 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
2942 * XmlSchemaMapper.cs : set parent key and foreign key info to
2943 DataRelation when reading refkey constraints.
2944 Supply constraint name for fkey.
2946 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
2948 * XmlDataLoader.cs : Don't overwrite existing DataSetName. When read
2949 mode is Auto, just ignore the schema if there is already schema info.
2950 * DataSet.cs : Similarly ignore schema info for XmlReadMode = Auto.
2952 2004-04-14 Atsushi Enomoto <atsushi@ximian.com>
2955 - In MS output, XML declaration looks to have standalone decl (yes).
2956 - ReadXml(reader) just calls to ReadXml(reader, XmlReadMode.Auto)
2957 - ReadXml(reader, mode)
2958 1) return originally specified mode, instead of (always) Auto.
2959 2) Check empty reader.
2960 3) Check diffgram schema and content separately.
2961 4) When diffgram exists, remaining (the same-level) contents
2963 5) Similar fact should be applied, but somewhat different.
2964 InferSchema and IgnoreSchema just skips, Fragment reads both
2965 schema and content, others just reads schema.
2966 - Removed unused code.
2967 * XmlDataLoader.cs :
2968 - Read() should skip in some ReadMode.
2969 - Don't compare schema element name as case-insensitive (well,
2970 should schemas be checked here?)
2971 - Avoided BuildDocument() not to create confusing DataSet
2973 - Don't add any tables when reader has single element.
2974 * XmlDiffLoader.cs :
2975 When target table was not found, MS.NET doesn't raise an error.
2976 * XmlSchemaMapper.cs :
2977 When XmlSchema.Read() left xml reader at </xs:schema>, read once.
2979 2004-04-13 Atsushi Enomoto <atsushi@ximian.com>
2982 - InferXmlSchema(): Throw explicit NotImplementedException now.
2983 - Don't put XML declaration everywhere. Write just for filename arg.
2984 - xmlns="" should not be written. Maybe WebService problem is
2985 because default namespace is overwritten. This patch will keep
2986 the WS problem away and actually fixes some unit tests (i.e. use
2987 explicit String.Empty for null namespace in WriteStartElement()).
2988 - MoveToContent() should always be called, not only when
2989 LocalName="xml". It will ignore prolog (DTD, PI, comment etc.).
2990 - Even XmlReadMode is DiffGram, reader might not be "diffgram"
2991 element. As to MSDN, diffgram does not contain schema.
2993 2004-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2995 * DataTable.cs: made _initStatus private so that System.Data is CLS
2998 2004-04-13 Umadevi S <sumadevi@novell.com>
2999 * UniqueConstraint.cs:
3000 * ConstraintCollection.cs:
3002 - Implemented a Constructor for UniqueConstraint.cs
3003 - Used EndInit on DataTable to call a delegate which adds the
3004 constraints passed to the most recent call of AddRange().Used
3005 AddRange() on ConstraintCollection to check whether
3006 DataTable.BeginInit has occurred. If yes, save the argument
3007 constraint collection passed, then return. If no, Check whether the
3008 constraints are of type UniqueConstraint and initialized with the
3009 special constructor If yes Initialized the table property of this
3010 UniqueConstraint object with table assosciated with the current
3011 instance of ConstraintCollection class.
3013 2004-04-07 Marek Safar <marek.safar@seznam.cz>
3015 * Constraint.cs: changed ClsCompliant to CLSCompliant, build fix.
3017 2004-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3020 * DataColumnCollection.cs:
3021 * DataRelationCollection.cs:
3022 * DataRowCollection.cs:
3023 * DataTableCollection.cs:
3024 * InternalDataCollectionBase.cs:
3025 * Node.cs: CLS compliance for System.Data. Patch by Gert Driesen.
3028 2004-04-05 Jackson Harper <jackson@ximian.com>
3030 * DataTable.cs: Add rows to the row list if there is no filter.
3032 2004-03-31 Juraj Skripsky <juraj@hotfeet.ch>
3034 * DataColumn.cs : Setting Caption to null sets it to the empty string
3035 (ms.net behaviour, testcase is in DataColumnTest).
3037 * DataRow.cs : Evaluate DataColumn.Expression when such a column's
3040 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
3042 * DataColumn.cs: In Expression setter, set the expression member even if
3043 it is an empty string.
3044 * DataSet.cs: Support serialization of byte[] columns.
3045 * XmlDataLoader.cs: Support deserialization of Guid columns.
3046 Set MappingType.Attribute to columns infered from attributes.
3048 2004-03-29 Juraj Skripsky <juraj@hotfeet.ch>
3050 * ExpressionElements.cs : remove
3051 * DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
3052 Integration of new Mono.Data.SqlExpressions classes used in
3053 DataTable.{Select, Compute}.
3054 Fixes bug #55503 and lots of failures in DataTableTest.cs.
3056 2004-03-28 Juraj Skripsky <juraj@hotfeet.ch>
3058 * Index.cs: Simple fix in ComparePartialRowNonUnique.
3059 This fixes bugs #56129 and #56014.
3061 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
3063 * DataSet.cs: In WriteXml (string filename, XmlWriteMode mode), close the
3064 stream after writing the dataset. This fixes bug #52581.
3065 Also added several writer.Close into finally blocks, so writers are properly
3066 closed in case of an exception.
3068 2004-03-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
3070 * Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
3071 * DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
3072 * ColumnTypeConverter.cs: Added stub
3073 * DefaultValueTypeConverter: Added stub
3074 * ConstraintConverter.cs: Added stub
3076 2004-03-04 Eran Domb <erand@mainsoft.com>
3078 * XmlDataLoader.cs : Xml reading reviewed. Added support for additional xml formats as described
3079 in MS.NET documentation (missing DataSet element etc).
3081 2004-03-04 Eran Domb <erand@mainsoft.com>
3084 * Index.cs : Rollback last changes.
3086 2004-03-03 Atsushi Enomoto <atsushi@ximian.com>
3088 * Index.cs : justa build fix.
3090 2004-03-03 Eran Domb <erand@mainsoft.com>
3093 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint, ConstraintCollection.cs, DataColumn.cs,
3094 DataRow.cs, DataRowCollection.cs, DataSet.cs, DataTable.cs : Changes made for using indexes on tables.
3095 This changes made for performance improvement.
3097 2004-02-08 Eran Domb <erand@mainsoft.com>
3099 * XmlSchemaMapper.cs : Read columns is they were written as SimpleContent or as Attributes.
3101 2004-02-08 Eran Domb <erand@mainsoft.com>
3103 * DataSet.cs: Fix some bugs in ReadXml().
3105 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
3107 * DataSet.cs: Added missing method that broke the build.
3109 2004-02-04 Eran Domb <erand@mainsoft.com>
3111 * DataRowCollection.cs (InsertAt): Add a check for null row. Replace check of IndexOf with RowId for
3113 * DataSet.cs (GetTableSchema) : Add supprot for simple content columns. Change the condition for a case
3114 when all column are attributes (elements count is 0), we still want to add the relations. No relations
3115 can be on simple contents.
3116 (AddUniqueConstraints) Check that the column of the constraint are not hidden.
3117 (AddForeignKeys) Check that the relation has constraints attach to it.
3118 * XmlConstants.cs : Added constant.
3120 2004-02-04 Eran Domb <erand@mainsoft.com>
3122 * DataSet.cs : GetSchemaSerializable() return null and not BuildSchema().
3123 DoWriteXmlSchema calls BuildSchema ().
3125 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
3127 * DataRow.cs: Added SetOriginalValue(), which is used to set the original
3129 * DataRowCollection.cs: In InsertAt(), perform the correct checks and
3131 * DataSet.cs: Fixed method GetChanges(): Parent rows of modified rows must
3132 also be added to the dataset.
3133 In WriteTable(), do not write unchanged rows when writing the original
3134 version of the table.
3135 Added WriteIndividualTableContent(), for writing the contents of a single
3137 Changed BuildSchema and related methods, so it can generate a schema for
3138 any set of tables, not just the tables of the dataset (needed for
3139 single datatable serialization).
3140 * DataTable.cs: Implemented serialization constructor and GetObjectData method.
3141 Also implemented some ReadXmlSchema methods.
3142 * XmlDiffLoader.cs: Read and process the xml document directly from XmlReader,
3143 instead of loading the full dataset in an XmlDocument. It is faster and
3144 saves memory. Also fixed several problems when generating the changes.
3145 * XmlSchemaMapper.cs: Support reading schemas for single tables (used by
3146 table serialization).
3148 2004-02-02 Eran Domb <erand@mainsoft.com>
3150 * DataSet.cs : Add indentation to the xml serialization only if we create the XmlWriter.
3151 Add the namespace attribute even if namespace is an empty string for inteoperability with MS.NET.
3152 * DataTable.cs (NewRow): Create only one DataRowBuilder.
3153 Initiate new row with row id -1.
3154 * DataRow.cs : Add RowId property.
3155 * DataRowBuilder.cs : Add _rowId member.
3156 * DataRowCollection.cs (Add) : Use the RowId property of the new row to check if it is already exists in the collection.
3158 2004-01-26 Eran Domb <erand@mainsoft.com>
3160 * XmlConstants.cs : Added some constants.
3161 * DataColumn.cs : Added a method to retrive AutoIncrement value.
3162 * XmlDataLoader.cs : Set the value of the foriegn key column, according to the value of the
3163 parent table column.
3164 * XmlDiffLoader.cs : Convert the value comming from the xml.
3165 * XmlSchemaMapper.cs (Read) : Set the DataSet namespace.
3166 (ReadXmlSchemaSequence) : Change the logic that decides if this element is a column or a table.
3167 (ReadXmlSchemaElement) : Set the locale of the dataset.
3168 (ReadColumn) : Set the column type. Find if the column is AutoIncrement.
3169 (GetColumnType) : New method to get the column type from the attribute value.
3170 (ReadXmlSchemaUnique) : Improve parsing of XPath. Set the constraint as a PK if needed,
3171 and add the constraint to the table.
3172 (ReadXmlSchemaKeyref) : Improve parsing of XPath. Create the FK constraint and add it to
3174 * DataSet.cs : Improving writing of unique constraints, and foriegn key constraint. Givving them the correct names.
3175 Writing more information to the schema for interoperability with ms.net.
3176 Improve diffgarm writing mode.
3179 2004-01-21 Atsushi Enomoto <atsushi@ximian.com>
3181 * TypedDataSetGenerator.cs : Implemented GenerateIdName().
3183 2004-01-21 Eran Domb <erand@mainsoft.com>
3185 * XmlDataLoader.cs (AddRowToTable) : Give thre new relation correct name.
3186 Do not set the child column to be AutoIncrement.
3187 Create the new column for the relation as MappingType.Hidden so they will not be serialized
3188 when writing the dataset to xml.
3190 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
3192 * Added missing TypedDataSetGenerator.cs.
3194 2004-01-08 Eran Domb <erand@mainsoft.com>
3196 * XmlSchemaMapper.cs : Fix a bug. Check if table already in DataSet before adding it.
3197 * DataSet.cs (ReadXml) : Fix bugs. Read correctly the xml file with XmlReadMode of DiffGram,
3198 InferSchema, ReadSchema and IgnoreSchema.
3199 * XmlDataLoader.cs : All modes use the same logic.
3200 * XmlDiffLoader.cs : Adding BuildXmlDocument method to the class.
3202 2004-01-06 Eran Domb <erand@mainsoft.com>
3204 * DataRelationCollection.cs : Use IndexOf in indexer.
3205 * DataSet.cs : Adding support for WriteXml with diffgram. Code style changes.
3206 * XmlDataLoader.cs : Set the DataSet.enforceConstraints to false before loading the tables.
3207 * XmlDiffLoader.cs : Reading nested tables.
3208 * XmlSchemaMapper.cs : Reading the relation.
3209 * XmlConstants.cs : Adding some constants.
3211 2004-01-05 Jackson Harper <jackson@ximian.com>
3213 * DataView.cs: Set readonly property of property descriptor. This
3216 2004-01-01 Sanjay Gupta <gsanjay@novell.com>
3218 * DataRelationCollection.cs : Fixed incorrect generation of default
3220 * DataSet.cs : Added missing functionality in WriteXml().
3221 * XmlConstants.cs : Added new constants.
3223 2003-12-27 Atsushi Enomoto <atsushi@ximian.com>
3225 * DataSet.cs : Fixed incorrect WriteXml() signature.
3227 2003-12-18 Jackson Harper <jackson@ximian.com>
3229 * DataView.cs: Implement AddNew, Delete, and OnListChanged.
3231 2003-12-17 Atsushi Enomoto <atsushi@ximian.com>
3233 * DataSet.cs, XmlDataLoader.cs : Table name should be encoded before
3234 they take shape of xml. This fixed bug #52240
3236 2003-12-16 Tim Coleman <tim@timcoleman.com>
3237 * KeyRestrictionBehavior.cs:
3238 New stubs added for .NET 1.2
3242 2003-12-08 Eran Domb <erand@mainsoft.com>
3243 * DataColumn.cs (Expression) : Validate the expression.
3245 * DataRelationCollection.cs (IndexOf) : Added new method sensetive to case differences in relation name.
3246 (Contains, IndexOf, this[], Add) : Call new IndexOf when needed.
3248 * DataRow.cs (this[]) : Fix the condition for throwing RowNotInTableException.
3249 (RejectChanges) : Detach row when state was Added.
3250 (CollectionChanged) : Fix a bug.
3252 * ExpressionElement (ValidateExpression) : Fix a bug.
3254 * ForeignKeyConstraint.cs (AssertConstraint) : Added implementation. Check all rows from child table have
3255 a parent row in the parent table.
3256 (_validateColumns) : Fix bugs.
3258 * MergeManager.cs (AdjustSchema) : Fix a bug.
3260 * XmlDataLoader.cs (ReadModeInferSchema) : Change implementation. Now we can read nested xml, and we generate the relations
3263 2003-11-30 Eran Domb <erand@mainsoft.com>
3264 * DataColumnCollection.cs (this[string name]) : Use IndexOf to find the column.
3265 (Add) : Find if the new column name is the same as the one found in IndexOf.
3266 (IndexOf) : New method.
3267 (Contains) : Use new IndexOf.
3268 (IndexOf) : Use new IndexOf.
3270 * DataRelationCollection.cs (DataRelationCollection.AddCore) : Add The Relation to the collection.
3271 (DataSetRelationCollection.AddCore) : First add the UniqueConstraint.
3273 * DataRow.cs (this[int columnIndex, DataRowVersion version]) : Change exceptions.
3274 (Delete) : Detach row if the RowState was Added.
3275 (GetChildRows) : Get the array form the ChildTable.
3276 (GetParentRows) : Get the array from the ParenTable.
3278 * DataRowCollection.cs (Remove) : Check if row state is Detached to avoid exception.
3280 * DataSet.cs (IXmlSerializable.ReadXml) : Do not call MoveToContent and ReadEndElement - the XmlSerializationReader does it.
3282 * DataTable.cs (PrimaryKey) : Fix bugs.
3283 (Compute) : First call Select. Then create ExpressionAggregate to aggregate the Select result.
3285 * DataTableCollection.cs (Add) : Fix a bug.
3287 * ExpressionElement.cs (ValidateExpression) : Turning ValidateExpression to static.
3288 (Result) : Added new interface to AggregateExpression that get DataRow[] as a param.
3289 Some code style changes (tab instead of whit spaces, alignment, etc...).
3291 * ForeignKeyConstraint.cs (_validateColumns) : Throw correct exception.
3293 * MergeManager.cs (AdjustSchema) : Fix a bug.
3297 2003-11-26 Miguel de Icaza <miguel@ximian.com>
3299 * DataSet.cs: Add a few more missing methods, code style updated
3302 2003-11-26 Tim Coleman <tim@timcoleman.com>
3304 * ConflictOptions.cs DataAdapterException.cs DataTableReader.cs
3305 * DbMetaData.cs FillOptions.cs IDataReader2.cs IDataRecord2.cs
3306 * IDataUpdatableRecord.cs IDbAsyncCommand.cs IDbAsyncConnection.cs
3307 * IDbExecutionContext.cs IGetTypedData.cs ISetTypedData.cs
3308 * LoadOption.cs OperationAbortedException.cs ResultSetOptions.cs
3309 * ResultSetSensitivity.cs StatementCompletedEventArgs.cs
3310 * StatementCompletedEventHandler.cs UpdateOptions.cs:
3311 New classes added for NET_2_0
3312 * DBConcurrencyException.cs DataRelation.cs DataSet.cs DataTable.cs
3313 * DataTableCollection.cs DataView.cs ForeignKeyConstraint.cs:
3314 Modifications to add new NET_2_0 functions
3316 2003-11-25 Tim Coleman <tim@timcoleman.com>
3320 2003-11-21 Pedro Martinez Julia <yoros@wanadoo.es>
3322 * DataRow.cs: Detached row can be accesible (new rows from data
3323 table are detached). Closes but #51263.
3325 2003-11-19 Eran Domb <erand@mainsoft.com>
3326 * DataRow.cs : Throw exceptions if Row is Detached.
3327 (EndEdit) : Check that we are not in middle of ChangeEvent.
3328 (AcceptChanges) : Detach the row.
3330 * DataRelation.cs : throw correct exception.
3331 *UniqueConstraint.cs : throw correct exception.
3334 2003-11-09 Pedro Martinez Julia <yoros@wanadoo.es>
3336 * DataRow.cs: Use RemoveInternal instead of Remove because the last
3337 one uses Delete and AcceptChanges.
3339 * DataRowCollection.cs: When removing, Delete and AcceptChanges
3340 method from the row are called. Added an internal method that will
3341 be used by DataRow to "physically" remove the row from the list.
3343 2003-11-09 Pedro Martinez Julia <yoros@wanadoo.es>
3345 * DataRowCollection.cs: To follow the specification: Remove and
3346 RemoveAt should remove the row. But needed to call DeletingDataRow
3347 to prepare the deleting.
3349 * DataRow.cs: Don't call DeletingDataRow when it is called by the
3350 method Table.Rows.Remove.
3352 2003-11-09 Pedro Martinez Julia <yoros@wanadoo.es>
3354 * DataRowCollection.cs: Make the row be deleted by itself. If not,
3355 it fails because we need to call OnRowDeleting and OnRowDeleted. It
3356 is full implemented inside DataRow.
3358 2003-11-05 Eran Domb <erand@mainsoft.com>
3359 * DataView.cs (ctor) : Changing default RowStateFilter to CurrentRow.
3361 2003-11-04 Eran Domb <erand@mainsoft.com>
3362 * DataRow.cs (CheckChildRows) : Improving the implementation - checking child for all FK, and not
3364 (GetChildRows) : Adding some checks.
3365 (GetParentRows) : Adding some checks. Fix a bug in implementation.
3366 (SetParentRow) : Added implementation.
3368 * DataRowCollection.cs (Add) : Added more checks on the row added to the collection.
3369 * DataTable.cs (Copy) : Set the During Loading flag to save unnecessary assertions.
3370 * ForeignKeyConstraint.cs (AssertConstraint) : Fixing bugs in implementation. Checking for DBNull values in the row.
3371 * MergeManager.cs : Check that the target table is not null.
3373 2003-10-27 Eran Domb <erand@mainsoft.com>
3374 * DataColumn.cs (DefaultValue) : Changing null value to DBNull. Checking that the type of the new default value
3375 can be converted to the column type.
3377 * DataRelationCollection.cs (AddCore) : Give the new FK the name of the relation.
3379 * DataRow.cs (EndEdit) : Check if we need to validate the constraints.
3380 (GetParentRows, GetChildRows) : Checking that the row has the wanted version, before accessing the row's value.
3382 * DataRowCollection.cs (Add) : Fixing a bug.
3383 (Clear) : Before clearing the array check that there is no violation of FK constraint.
3385 * DataSet.cs (Prefix) : If value is null chage it to empty string.
3386 (GetXml) : Removing the Processing Instructions from the xml string as in MS ADO.NET.
3388 * ExpressionElement : Adding support for IN expresion.
3390 * DataTable (CopyConstraints) : New method that copy the tables constraints to the copy table.
3391 (Select) : Adding support for DataViewwRowState.
3393 * ForeignKeyConstraint.cs (AssertConstraint) : Adding implementation.
3395 * MergeManager.cs (MergeRow) : Fix bugs.
3397 2003-10-27 Eran Domb <erand@mainsoft.com>
3398 * DataRow.cs (SetColumnValue): Donot check null value when in midle of loading data.
3399 check null values when ending loading data.
3401 * DataSet.cs (RejectChanges) : Imlementation.
3402 (Prefix) : If prefix was changed fire event. Check that the prefix is not null - if null,
3403 change it to empty string.
3405 * DataTable.cs (BeginLoadData, EndLoadData) : Impemantation.
3407 2003-10-22 Eran Domb <erand@mainsoft.com>
3408 * MergeManager.cs : Fixing bugs. Adding check for PrimaryKey matching.
3410 * ConstraintCollection.cs (RamoveAt): Change implemntation.
3412 * DataTableCollection (CanRemove): Removing cast to Constraint.
3414 2003-10-22 Eran Domb <erand@mainsoft.com>
3415 * DataRelationCollection.cs (AddCore): The unique constraint was added even if the createConstraints flag was false.
3416 (Clear): The collection was cleared without removing the relation from the parent and child tables.
3418 * DataSet.cs (Copy, Clone): The Relations of the DataSet were not copy.
3419 (HasChanges, Reset): Imlementation.
3421 * DataTable.cs (HasErrors): There is no flag for errors, instead the table ask her row if they have any errors.
3422 This is because the we do not no when to turn off the flag.
3423 (Locale): Changing implementation to behave like ADO.NET.
3424 (AcceptChanges): Fix bug.
3425 (Clear): Check that this table is not referenced from a foreign key constraint.
3426 (Copy): Do not try to access a deleted row.
3427 (CopyProperties): Copy the PrimaryKey.
3428 (GetChanges, ImportRow): Implementation.
3429 (LoadDataRow): Adding implementation if the table has PrimaryKey.
3430 (ToString): Changing implementation to behave like ADO.NET.
3432 * UniqueConstraint.cs (AssertConstraint): support for Multiple DataColumns in the constraint.
3434 * DataRow.cs (Ctor): In the constructor we initiate the current array, but we should initiate only the proposed array for new rows.
3435 (HasErrors): Implementation.
3436 (Delete): Added checking for child rows of the deleted row.
3437 (EndEdit): Added checking for child row and firing events.
3438 (GetColumnError): Added a check that the method will not return null, as in ADO.NET(an empty string is returned).
3439 (GetColumnsInError): Added a check for null values in column error.
3440 (HasVersion): Added special treatment for special RowState.
3441 (CollectionChanged): More checks to avoid NullReferenceException.
3443 * DataRowCollection.cs (Remove): Fix a bug.
3446 2003-10-01 Duncan Mak <duncan@ximian.com>
3448 More patches from Eran Domb <erand@mainsoft.com>.
3450 * MergeManager.cs: New file.
3452 * DataRelationCollection.cs (AddCore): Check that a
3453 UniqueConstraint is already exists. It loops over the Relations
3454 instead of the Constraints.
3455 (Add, AddCore): The relation was added twice.
3457 * DataSet.cs (Merge, GetChanges, HasChanges): Implemented.
3459 2003-09-30 Duncan Mak <duncan@ximian.com>
3461 Patches from Eran Domb <erand@mainsoft.com>.
3463 * DataRelation.cs (constructor): When the name of the relation is
3464 null, it should return an empty, not "Relation".
3466 * DataRow.cs (AcceptChanges): Added special case for
3468 (CancelEdit): Set editing flag to false.
3469 (IsNull): Check that the value is DBNull.
3471 * DataRowCollection.cs (Add): There was no check that the table of
3472 the collection is owned by a DataSet.
3474 * DataSet.cs (OnMergeFailed): Added.
3476 * UniqueConstraint.cs (AssertConstraint): There was no check that
3477 values in the row are not null, where it is a primary key
3478 column. Also check that the row has a proposed version, if not,
3479 get the current version when we compare the rows.
3481 2003-09-25 Duncan Mak <duncan@ximian.com>
3483 Patches from Eran Domb <erand@mainsoft.com>.
3485 * DataColumn.cs (Unique): Implemented.
3488 * ConstraintCollection.cs:
3489 * ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
3490 an Exception thrown. Details:
3491 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html
3493 * DataRowCollection.cs (Add): There is no checking that there is
3494 no violation of the unique constrains.
3496 * UniqueConstraint.cs (AssertConstraint): There is no checking on
3497 all columns in the constraint.
3499 * DataTableCollection (Add): Correctly throw an Exception, more
3501 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002117.html
3502 (Remove, RemoveAt): Implemented.
3504 2003-07-31 Duncan Mak <duncan@ximian.com>
3506 * DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
3508 2003-07-25 Ravi Pratap <ravi@ximian.com>
3510 * DataRelation.cs (OnPropertyChanging): Calling the 'Invoke'
3511 method on a delegate is disallowed - fix this.
3513 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
3515 * DataSet.cs: Implemented IXmlSerializable interface. Added basic support for
3516 xml serialization. Modified method of writing schema. Now it creates
3517 a XmlSchema object and serializes it using XmlSerializer.
3518 * XmlConstants.cs: Added constants for data type names.
3519 * XmlDataLoader.cs: Fixed deserialization of data. Now converts data to the
3520 type specified in the column.
3522 2003-04-20 Alan Tam <Tam@SiuLung.com>
3524 * DataRelationCollection.cs: Fix a bug that prevent relations
3525 from being added via DataSet.
3527 2003-04-12 Ville Palo <vi64pa@kolumbus.fi>
3529 * UniqueConstraint.cs: one tiny fix.
3531 2003-04-05 Ville Palo <vi64pa@kolumbus.fi>
3533 * DataTable.cs: Remove UniqueConstraints when adding new ones
3535 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
3537 * DataColumnCollection.cs: Little 'case sensitive' fix
3539 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
3541 * DataRow.cs: AutoIncrement handling to Constructor
3542 * DataRowCollection.cs: This doesnt need anymore AutoIncrements
3544 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
3546 * DataTable.cs: Some fixes to PrimaryKey etc...
3547 * UniqueConstraint.cs: Little clean up
3549 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
3551 * DataTable.cs: Tiny fix to ToString () -method
3553 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
3555 * ConstraintCollection.cs: Little fix.
3556 * DataColumn.cs: Added new internal method SetUnique()
3557 * UniqueConstraint.cs: some little fixes
3559 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
3561 * DataRowCollection.cs: Bugfixes, implementation,...
3563 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
3565 * DataColumn.cs: If DataType if set to something else than short, int
3566 or long and AutoIncrement is true, AutoIncrement is must set to false.
3568 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3571 (BeginEdit): fixed array bound problem when a column has been added.
3572 (EndEdit): just assign proposed to current as proposed is set to null.
3573 This also fixes another array boudn problem.
3575 2003-03-21 Alan Tam <Tam@SiuLung.com>
3577 * DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
3578 EndEdit and AcceptChanges to act correctly according to DataRowState
3580 * DataRowCollection.cs: Call AttachRow and DetachRow when a row is
3581 attached and detached from the collection.
3583 2003-03-20 Alan Tam <Tam@SiuLung.com>
3585 * DataColumn.cs: Store empty string for Expression when null is passed in.
3586 Classes generated by XSD.exe passes null by default.
3588 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
3590 * DataColumnCollection.cs: Tiny clean up
3592 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
3594 * DataColumn.cs: little fixes.
3595 * DataColumnCollection.cs: Lots of little fixes and improvments.
3597 2003-03-12 Alan Tam <Tam@SiuLung.com>
3599 * DataSet.cs: Fixed a bug that the file written does not close correctly.
3601 2003-03-08 Alan Tam <Tam@SiuLung.com>
3603 * DataRelationCollection.cs: Removed the mis-overridden methods
3604 * DataRow.cs: Fixed an attribute
3605 * DataSet.cs: Fixed the modifiers
3607 2003-03-06 Aleksey Demakov <avd@openlinksw.com>
3609 * DataTableCollection.cs: The Contains (string name),
3610 IndexOf (string name) methods, and item[string name] indexer
3611 now behave more like .NET with respect to case-sensitivity.
3612 That is if there is an exactly matching item then this one is used.
3613 If there is only one item differing in case then it used.
3614 If there are more than one item differing in case then
3615 Contains returns false, IndexOf returns -1, and item[]
3616 throws an ArgumentException.
3618 2003-02-28 Ville Palo <vi64pa@kolumbus.fi>
3620 * ExpressionElement.cs: More implementation.
3622 2003-02-28 Alan Tam <Tam@SiuLung.com>
3623 * DataSet.cs: Changed WriteTable so that it now calls the newly written
3624 WriteObjectXml to direct the call to the respective XmlConvert method.
3625 This fixes the wrong format written to XML files of bool, float,
3626 double, DateTime and TimeSpan types.
3628 2003-02-25 Alan Tam <Tam@SiuLung.com>
3630 * DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
3631 * DataRelationCollection.cs: Implemented AddRange and Contains.
3632 Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
3633 Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
3634 Reimplemented most Add methods to eliminate duplicated checks.
3635 Centralized RelationName generation procedure in GetNextDefaultRelationName.
3637 2003-02-25 Alan Tam <Tam@SiuLung.com>
3639 * DataColumn.cs: Fixed wrong storage representation of Expression
3640 (using empty string instead of null) so that ToString() returns nothing.
3641 * DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
3642 auto column naming now works as expected. Reimplemented some Add methods
3643 to eliminate code duplication.
3645 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
3647 * DataTable.cs: DataTable.CaseSensitive follows parent
3648 DataSet.CaseSensitive property if DataTable.CaseSensitive has never
3649 been changed directly from DataTable
3651 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
3653 * DataSet.cs: When CaseSensitive property is changed all of the Tables
3654 of DataSet have to change too
3656 2003-02-19 Daniel Morgan <danmorg@sc.rr.com>
3658 * InternalDataCollectionBase.cs: revert change to field
3661 * DataViewManager.cs
3664 * DataSet.cs: commented use of DesignerAttribute
3665 because it broke the build. According to MSDN,
3666 DesignerAttribute does not have a zero-argument constructor
3668 2003-02-18 Ville Palo <vi64pa@kolumbus.fi>
3670 * DataColumnCollectin.cs: Little fix for indexer and case sensitivity
3672 2003-02-18 Alan Tam <Tam@SiuLung.com>
3674 * DataRow.cs: Implemented GetParentRow and GetParentRows.
3675 * DataSet.cs: Added stub for HasChanges, InferXmlSchema,
3676 OnPropertyChanging, OnRemoveRelation, OnRemoveTable,
3677 RaisePropertyChanging.
3678 * DataTable.cs: Implemented NewRowArray.
3679 * DataTablePropertyDescriptor: Fixed a modifier.
3680 * InternalDataCollectionBase.cs: Fixed modifiers. Implemented SyncRoot.
3681 * PropertyCollection.cs: Minor fix.
3682 * ConstraintCollection.cs DataColumn.cs DataColumnCollection.cs
3683 * DataRelation.cs DataRelationCollection.cs DataRow.cs
3684 * DataRowCollection.cs DataRowState.cs DataSet.cs DataTable.cs
3685 * DataTableCollection.cs DataTablePropertyDescriptor.cs DataView.cs
3686 * DataViewManager.cs DataViewRowState.cs DataViewSettingCollection.cs
3687 * ForeignKeyConstraint.cs InternalDataCollectionBase.cs
3688 * PropertyCollection.cs UniqueConstraint.cs: Added missing attributes
3690 2003-02-08 Ville Palo <vi64pa@koti.soon.fi>
3692 * ExpressionElement.cs: More implementation
3694 2003-02-05 Alan Tam <Tam@SiuLung.com>
3696 * DataSet.cs: Added framework for DataSet.Update Implemented missing
3697 methods GetSchemaSerializable, GetSerializationData,
3698 ReadXmlSerializable, ShouldSerializeRelations and ShouldSerializeTables
3700 * DataTable.cs: Implemented missing methods CreateInstance and
3701 GetRowType for DataTable
3703 2003-02-03 Ville Palo <vi64pa@koti.soon.fi>
3705 * DataSet.cs: Implemented private method MapType for
3706 mapping datatypes for XmlSchema
3708 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3710 * DataView.cs: implemented Dispose.
3712 2003-01-30 Ville Palo <vi64pa@koti.soon.fi>
3714 * ExpressionElement.cs: Added new file. This file is for parsing
3715 and DataData.Select () -methods and DataColumn.Expression -property
3716 * DataTable.cs: Implemented Select(string) -method
3718 2003-01-28 Ville Palo <vi64pa@koti.soon.fi>
3720 * DataSet.cs: One little fix to writing xml
3722 2003-01-27 Ville Palo <vi64pa@koti.soon.fi>
3724 * XmlSchemaMapper.cs: Some fixes.
3725 * DatSet.cs: Some XmlFixes and BeginInit ()/ EndInit () -fix
3728 2003-01-24 Ville Palo <vi64pa@koti.soon.fi>
3730 * UniqueConstraint.cs: Do not set columns Unique property true
3732 * ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table
3734 2003-01-18 Ville Palo <vi64pa@koti.soon.fi>
3736 * DataTableCollection.cs: Now names new DataTable if it doesn't
3737 already have a name.
3739 2003-01-17 Ville Palo <vi64pa@koti.soon.fi>
3741 * XmlSchemaMapper.cs: Improvments.
3742 * XmlConstaints.cs: Added more constants.
3743 * DataSet.cs: Improvments of reading and writing xml
3744 * DataColumn.cs: Added default values of properties.
3746 2003-01-14 Ville Palo <vi64pa@koti.soon.fi>
3748 * XmlSchemaMapper.cs: Some improvments
3750 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
3752 * DataRowCollection.cs: Added IndexOutOfRangeException
3753 * DataTableCollection.cs: Added OnCollectionChanging and
3754 OnCollectionChanged events.
3755 * DataSet.cs: Many fixes. Implemented Clone () and Copy () -methods
3756 * DataTable.cs: Implemented Copy () and Clone () methods.
3757 * XmlDataLoader.cs: some fixes.
3758 * XmlSchemaMapper.cs: comments.
3760 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3762 * DataColumnPropertyDescriptor.cs: store columnIndex in the .ctor.
3764 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3766 * DataColumnPropertyDescriptor.cs: fixed typo.
3767 * DataViewManagerListItemTypeDescriptor.cs: added new internal property
3768 to get the DataViewManager and removed TablePD class.
3769 * DataTablePropertyDescriptor.cs: TablePD class is now this one as
3770 suggested by danmorg.
3772 2003-01-06 Ville Palo <vi64pa@koti.soon.fi>
3774 * XmlDataLoader.cs: Moved diffgram stuff to new internal class
3776 * XmlDiffLoader.cs: new class for diffgrams. Added handling of
3777 diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
3779 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3781 * DataView.cs: made dataViewManager internal.
3782 * DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
3783 properties of the object, but the values of the columns present in a
3786 * DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
3787 which returns a PropertyDescriptorCollection. Created a new class
3788 derived from PropertyDescriptor that treats Table as an object whose
3789 properties are DataRowView.
3791 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
3793 * XmlSchemaMapper.cs: Added handling for Constraints, Attributes.
3795 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
3797 * DataColumn.cs: ExtendedProperties is by default !null-
3799 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
3801 * DataColumnCollection.cs: Add (DataColumn Column) -method didn't
3802 set column's ordinal.
3804 2003-01-02 Ville Palo <vi64pa@koti.soon.fi>
3807 * XmlDataLoader.cs: XmlReader closing fixes.
3808 * XmlSchemaReader.cs: Added support for ref=
3810 2003-01-01 Ville Palo <vi64pa@koti.soon.fi>
3813 - Added XmlReader and XmlWriter Closing.
3814 - Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
3815 * XmlSchemaMapper.cs
3816 - Much better way IMHO to map xmlschema than the old one in
3817 DataSet.cs. Its, more flexible, cleaner, ...
3819 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
3821 * XmlDataLoader.cs: Reading diffgrams.
3823 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
3825 * DataRow.cs: Little fix to indexer and DataColumnCang* trigger fixes.
3826 * DataTable.cs: Added ChanginDataColumn () for triggering
3827 DataColumnChanging event
3829 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
3831 * DataSet.cs: Indentations to WriteXmlSchema () and one little fix
3833 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
3835 * DataSet.cs: Indentations to WriteXml ()
3837 2002-12-27 Ville Palo <vi64pa@koti.soon.fi>
3840 * XmlDataLoader.cs: Moved ReadXml -stuff from DataSet.cs to new
3841 class XmlDataLoader.cs
3843 2002-12-19 Ville Palo <vi64pa@koti.soon.fi>
3845 * DataSet.cs Implemented ReadXml with XmlReadMode.ReadSchema
3847 2002-12-18 Ville Palo <vi64pa@koti.soon.fi>
3849 * DataSet.cs: Started to implement ReadXml-methods.
3851 2002-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3853 * DataSet.cs: implemented DefaultViewManager and GetList.
3855 * DataViewManager.cs: a bit of work on IList and ITypedList needed by
3856 DataList in System.Web.
3858 * DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
3861 2002-12-16 Ville Palo <vi64pa@koti.soon.fi>
3864 * DataTable.cs: Fixed NullException (rollback -event)
3865 * DataSet.cs: WriteXml -method does not anymore write <?xml... row.
3867 2002-12-15 Ville Palo <vi64pa@koti.soon.fi>
3870 * DataRowCollection.cs: Moved event triggering from DataRow to
3873 2002-12-09 Ville Palo <vi64pa@koti.soon.fi>
3875 * DataSet.cs: Little fix to WriteTable () -method
3876 and DoReadXmlSchema () -method.
3878 2002-12-06 Ville Palo <vi64pa@koti.soon.fi>
3880 * DataSet.cs: Clean up to reading xmlschema. This looks much better
3881 now (work better too), but it not working correctly yet.
3883 2002-12-04 Ville Palo <vi64pa@koti.soon.fi>
3886 * DataRowCollection.cs: Added some event handlins stuff.
3887 * DataSet.cs: Some fixes.
3888 * DataTable.cs: Added event handlers.
3890 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
3892 * DataRowChangeEventArgs.cs: Implemented Action and Row properties
3894 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
3896 * System.Data/DataRow.cs: Added internal property XmlDataID
3898 2002-11-29 Ville Palo <vi64pa@koti.soon.fi>
3900 * DataSystem.Data.DataTableCollection.cs:
3901 Removed HashTable. There could be situations where DataTable
3902 is added to collection before it hava TableName. So using
3903 HashTable is impossible.
3905 2002-11-19 Carlos Guzman Alvarez <carlosga@telefonica.net>
3907 * DataRow.cs: an object that is equal to null
3908 should be allowed to be set in this indexer too
3911 2002-11-06 Daniel Morgan <danmorg@sc.rr.com>
3913 * DataColumnPropertyDescriptor.cs: added file
3915 * System.Data/DataRowView.cs: started implementation
3917 * DataTable.cs: stubbed more interfaces. Implemented
3918 IListSource.GetList()
3920 * DataView.cs: stubbed more interfaces. Implemented
3921 some properties and methods: GetEnumerator(),
3922 ITypedList.GetItemProperties, Item indexer, CopyTo()
3924 2002-05-18 Nick Drochak <ndrochak@gol.com>
3926 * DataRow.cs: Fix typo.