1 2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
3 * DataViewManager.cs: Hookup to the table/relations changed events and
4 raise ListChanged events accordingly.
6 2008-12-30 Gert Driesen <drieseng@users.sourceforge.net>
8 * DBConcurrencyException.cs: Marked .ctor taking DataRow [] as
9 internal so we can use it on the 1.0 profile (internally). Implemented
12 2008-12-29 Gert Driesen <drieseng@users.sourceforge.net>
14 * SqlDbType: Added Date and Time (2.0 only).
16 2008-11-18 Raja R Harinath <harinath@hurrynot.org>
19 * XmlConstants.cs (QnUnsignedShort): Rename from QnUsigned short
20 and fix the value too.
21 * XmlSchemaWriter.cs (XmlQualifiedName): Update to changes.
23 2008-09-27 Raja R Harinath <harinath@hurrynot.org>
25 * DataView.cs: Convert into a partial class and sequester
26 interface-implementations and NET_2_0 pieces into separate parts.
28 2008-09-16 brandin claar <brandin.claar@gmail.com>
29 Raja R Harinath <harinath@hurrynot.org>
31 * DataTable.cs (BinarySerialize): Handle empty DataTables.
32 (DeserializeRecords): Likewise.
33 (BinaryDeserializeTable): Allow DefaultValue to be set to any value.
35 2008-09-12 Raja R Harinath <harinath@hurrynot.org>
37 * DataTable.cs (NewRowAdded): Make into partial method.
38 (DataTableClearing, DataTableCleared): New partial methods.
41 * DataTable.cs: Sequester ISupportInitializationNotification
42 pieces into separate part.
43 (DataTableInitialized): Turn into a 'partial method' to avoid #ifs.
45 * DataTable.cs (AssertNotNullConstraints): Hoist out a more useful
46 loop-invariant by inverting loops.
47 (RowExists): Outdent. Rewrite for slightly better clarity.
48 (BeginLoadData): Outdent.
49 (GetChanges): Outdent. Replace GetEnumerator/while with foreach.
51 * DataTable.cs: Convert to a partial class, sequester NET_2_0
52 specific and IXmlSerializable specific pieces into separate parts.
54 2008-09-07 Raja R Harinath <harinath@hurrynot.org>
56 * DataSet.cs: Convert to a partial class and sequester NET_2_0
57 pieces into a separate part.
59 * DataRowView.cs: Convert to a partial class, and sequester
60 NET_2_0 parts into a separate part. Use partial classes instead
61 of ugly #region directives.
62 (Item): Remove redundant attributes. Cleanup slightly.
64 2008-09-05 Raja R Harinath <harinath@hurrynot.org>
66 * DataRowCollection.cs (RemoveInternal): Update RowIDs of rows
67 after the deleted row.
68 (IndexOf): Avoid loop to search for a row, since we already know
69 where a row is: its RowID.
70 (Remove): Use IndexOf rather than List.Contains.
72 * DataRowCollection.cs (InsertRow): Delegate setting of RowId
73 to the row itself. Use 'row.AttachAt' instead of 'row.AttachRow'.
74 (AddInternal): Likewise. Also delegate handling of
75 ChangeCurrentAndOriginal to AttachAt.
76 * DataRow.cs (AttachAt): Rename from AttachRow. Set rowId from
77 passed-in id. Handle ChangeCurrentAndOriginal and ChangeOriginal
80 * DataRow.cs (_hasParentCollection): Remove. Implied by _rowId >= 0.
81 (HasParentCollection): Remove.
82 * DataRowCollection.cs (AddInternal, InsertAt): Update to changes.
84 * DataTable.cs (NewRowArray): Special case size == 0 to avoid
85 creating a lot of garbage.
87 * DataRow.cs (Detach): Rename from DetachRow. Make private.
88 Simplify code to be more uniform. Move common prefix code here ...
89 (AcceptChanges) [Deleted]: ... from here ...
90 (Delete) [Added]: ... and here ...
91 (RejectChanges) [Added]: ... and here.
93 2008-09-04 Raja R Harinath <harinath@hurrynot.org>
95 * DataRow.cs (CheckChildRows) <1-arg variant>: Remove excessive
97 (CheckChildRows) <3-arg variant>: Likewise. Move/split loop
99 (EndEdit): Out-dent some code.
100 (IsNullColumns): Simplify slightly.
102 * DataRelationCollection.cs (CanRemove): Simplify slightly.
104 * DataRelation.cs (CheckStateForProperty): Use the childColumn to
107 * DataColumn.cs (AllowDBNull.set): Rearrange code to be more readable.
108 (AutoIncrement.set): Likewise.
110 (SetDefaultValue): Likewise.
112 2008-08-28 Raja R Harinath <harinath@hurrynot.org>
114 * Constraint.cs (SetExtendedProperties): New internal method.
116 (ExtendedProperties.set): ... here. Kill a #ifdef.
117 * DataTable.cs (DeserializeConstraints): Update to changes.
119 2008-08-27 Raja R Harinath <harinath@hurrynot.org>
121 * ConstraintCollection.cs (Item) <string variant>: Don't incur
122 additional check for index that's returned by 'IndexOf'.
123 (_createNewConstraintName): Improve readability of code.
124 (_isDuplicateConstraintName): Perform cheaper test first.
126 * ConstraintCollection.cs: Reduce some #ifdef by using partial
127 classes. Move 'sealed' and '[Serializable]' to appropriate
128 partial class declarations.
129 * DataRowCollection.cs: Likewise.
131 2008-08-13 Marek Habersack <mhabersack@novell.com>
133 * DataRow.cs: do not check whether a column is read-only when
136 2008-08-08 Raja R Harinath <harinath@hurrynot.org>
138 * DataColumn.cs: Update to changes in DataCollection.
140 2008-07-29 Veerapuram Varadhan <vvaradhan@novell.com>
143 * XmlDataReader.cs (ReadElementElement): Handle custom reference types sanely.
145 2008-07-20 Gert Driesen <drieseng@users.sourceforge.net>
147 * DataColumnCollection.cs (IndexOf): Include name of column - for which
148 there are multiple matches in a different case - in the exception
150 * DataRow.cs (this [int]): On 2.0 profile, throw ArgumentException if
151 value is null and datatype of column is a value type. On 1.0 profile,
152 only allow null value if datatype of column is string. Do not replace
153 value with DBNull.Value if value is null.
155 2008-07-04 Gert Driesen <drieseng@users.sourceforge.net>
157 * DataRow.cs: Use indexer of DataColumnCollection instead of IndexOf.
158 Cosmetic changes to exception message.
159 * DataColumnCollection.cs: Fixed off by one error in index check. Added
160 null check in name indexer. In Clear, also reset columnNameCount and
163 2008-07-03 Gert Driesen <drieseng@users.sourceforge.net>
165 * DataRow.cs: Added missing null checks. Cosmetic changes to exception
168 2008-07-03 Marek Habersack <mhabersack@novell.com>
170 * DataRow.cs (this []): Use DBNull instead of throwing an exception
172 2008-07-01 Rodrigo Kumpera <rkumpera@novell.com>
174 * DataTable.cs: Kill some foreach loops.
178 2008-07-01 Marek Safar <marek.safar@gmail.com>
180 * DataColumnCollection.cs: Made few simple optimizations.
182 2008-06-28 Zoltan Varga <vargaz@gmail.com>
184 * DataTable.cs (NewRowArray): Avoid using reflection if possible.
186 2008-06-19 Atsushi Enomoto <atsushi@ximian.com>
188 * DataRelation.cs : keep createConstraints flag for cloning in
189 DataSet.Merge(). Use different flag for initialization instead.
190 * MergeManager.cs : When cloning DataRelation, createConstraints
191 flag should depend on the source.
192 * XmlSchemaDataImporter.cs : create constraints when creating
195 2008-06-18 Atsushi Enomoto <atsushi@ximian.com>
197 * DataSet.cs : when InferSchema mode, ReadXml() should do "merging
199 * XmlDataInferenceLoader.cs : fixed primary key processing in
200 merging inference mode. Reuse existing one, instead of rejecting
203 2008-06-17 Atsushi Enomoto <atsushi@ximian.com>
205 * XmlSchemaWriter.cs, DataSet.cs, XmlTableWriter.cs, DataTable.cs,
206 XmlDataInferenceLoader.cs, XmlSchemaDataImporter.cs:
207 fix xsd output on msdata:Locale and msdata.UseCurrentCulture.
208 Output explicit Locale only when it is explicitly specified.
209 On the other hand, ReadXml/ReadXmlSchema fills Locale as en-US
210 by default (on .NET).
211 Some code unification in DataTable.WriteXmlSchema() overloads.
213 2008-06-16 Atsushi Enomoto <atsushi@ximian.com>
215 * DataColumn.cs : replaced Activator.CreateInstance() with
216 returning explicit Null member for each SqlXxx type.
218 2008-06-13 Atsushi Enomoto <atsushi@ximian.com>
221 DefaultValue can be non-DBNull. For SqlXxx type, it becomes
222 SqlXxx.Null. Also, changing DataType may change DefaultValue
223 to be consistent with the new type (say, having int DefaultValue
224 for new string DataType is wrong).
227 This should be fixed to take non-DBNull default value into
230 2008-06-12 Atsushi Enomoto <atsushi@ximian.com>
232 * DataSet.cs, DataTable.cs, XmlSchemaDataImporter.cs : constraints
233 on missing tables are ignored when reading a DataTable schema.
234 Fixes part of DataTableTest.ReadXmlSchema() test.
236 2008-05-30 Marek Habersack <mhabersack@novell.com>
238 * Constraint.cs: do not use synthetized event accessors (to avoid
241 2008-05-29 Marek Habersack <mhabersack@novell.com>
243 * DataColumn.cs: do not use synthetic methods for events - this
244 avoids unnecessary locking, especially for internal events.
246 2008-04-21 Gert Driesen <drieseng@users.sourceforge.net>
248 * DataRowView.cs: Modified argument names to match MS. Use
249 String.Empty instead of "". Code formatting.
251 2008-04-16 Veerapuram Varadhan <vvaradhan@novell.com>
253 * XmlDataInferenceLoader.cs (ReadXml): Make sure the name of
254 reference key column(s) in child tables are unique.
256 * XmlSchemaWriter.cs (WriteSchema, WriteDataSetElement,
257 WriteTableType, WriteChildRelations): Handle the scenario wherein
258 we have a relation and only one table. This can occur when we
259 have an XML with same parent/child table names.
261 2008-03-31 Veerapuram Varadhan <vvaradhan@novell.com>
263 * DataView.cs: Reverting rev#98474 changes - as it broke quite a
266 2008-03-23 Gert Driesen <drieseng@users.sourceforge.net>
268 * DataSet.cs: Corcompare fix.
269 * IDataRecord.cs: Corcompare fix.
271 2008-03-22 Gert Driesen <drieseng@users.sourceforge.net>
273 * DataViewSettingCollection.cs: Corcompare fixes and code formatting.
274 * SyntaxErrorException.cs: Corcompare fixes and code formatting.
275 * EvaluateException.cs: Corcompare fixes and code formatting.
276 * StrongTypingException.cs: Coecompare fixes and code formatting.
277 * ReadOnlyException.cs: Corcompare fixes and code formatting.
278 * DataTableCollection.cs: Corcompare fixes and code formatting.
279 * MissingPrimaryKeyException.cs: Corcompare fixes and code formatting.
280 * DeletedRowInaccesibleException.cs: Corcompare fixes and code
282 * DataSet.cs: Corcompare fixes and code formatting.
283 * DuplicateNameException.cs: Corcompare fixes and code formatting.
284 * DataView.cs: Corcompare fixes and code formatting.
285 * VersionNotFoundException.cs: Corcompare fixes and code formatting.
286 * MergeFailedEventArgs.cs: Corcomare fixes and code formatting.
287 * InvalidExpressionException.cs: Corcompare fixes and code formatting.
288 * DBConcurrencyException.cs: Corcompare fixes and code formatting.
289 * DataRowView.cs: Corcompare fixes and code formatting.
290 * DataViewManager.cs: Corcompare fixes and code formatting.
291 * ConstraintException.cs: Corcompare fixes and code formatting.
292 * InvalidConstraintException.cs: Corcompare fixes and code formatting.
293 * IDataRecord.cs: Corcompare fixes.
294 * RowNotInTableException.cs: Corcompare fixes and code formatting.
295 * TypeDataSetGeneratorException.cs: Corcompare fixes and code
297 * InRowChangingEventException.cs: Corcompare fixes and code formatting.
298 * NoNullAllowedException.cs: Corcompare fixes and code formatting.
299 * DataException.cs: Corcompare fixes and code formatting.
301 2008-03-17 Veerapuram Varadhan <vvaradhan@novell.com>
303 ** Fixes part1 of #357947
304 * DataView.cs: (OnRowDeleted): Don't call update, instead delete the row
305 directly from Index. Peformance fix submitted by Hubert FONGARNAND
306 <informatique.internet@fiducial.fr>.
308 2008-02-04 Arina Itkes <arinai@mainsoft.com>
310 * DataTable.cs: Fix for IXmlSerializable.ReadXml.
312 2008-01-28 Arina Itkes <arinai@mainsoft.com>
314 * DataTable.cs: Fix for IXmlSerializable.WriteXml.
316 2007-10-21 Gert Driesen <drieseng@users.sourceforge.net>
318 * DataColumn.cs: Fixed ParamName of ArgumentNullException. Modified
319 exception message for invalid DateTimeMode value to match MS. Code
322 2007-10-19 Nagappan <anagappan@novell.com>
324 * DataRelation.cs: Removed bogus TODO.
326 2007-09-27 Nagappan A <anagappan@novell.com>
328 * DataRelationCollection.cs: Added LAME spec comment as there is no
329 relevant event. Removed MonoTODO too.
331 2007-09-26 Nagappan A <anagappan@novell.com>
333 * DataView.cs (ToTable): Added params keyword.
335 * DataTable.cs: Added XmlSchemaProvider attribute.
337 2007-09-25 Konstantin Triger <kostat@mainsoft.com>
339 * DataSet.cs: correct WriteAttributeString while writing xml with
340 XmlWriteMode.WriteSchema.
342 2007-09-25 Nagappan A <anagappan@novell.com>
344 * DataTable.cs: Code alignment.
346 2007-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
348 * DataColumnCollection.cs: refactoring, fixed columnNameCount comparer
349 to remove culture sensitive ToLower() calls
351 2007-07-22 Nagappan A <anagappan@novell.com>
353 * DataRow.cs: Added internal set property for Table in 2.0
356 * DataColumn.cs: Added internal set property for Table in 2.0
359 2007-07-01 Gert Driesen <drieseng@users.sourceforge.net>
361 * DataRowCollection.cs: Only override Count on 2.0 profile.
362 * RelatedDataView.cs: Fixed line endings.
363 * XmlDataInferenceLoader.cs: Fixed line endings.
365 2007-06-30 Gert Driesen <drieseng@users.sourceforge.net>
367 * DataTableCollection.cs: CopyTo is 2.0 only. Removed extra tabs,
368 and changed spaces to tabs.
370 2007-06-06 Nagappan A <anagappan@novell.com>
372 * DataTable.cs (Select): Removed ununsed variable.
374 2007-05-30 Nagappan A <anagappan@novell.com>
376 * DataColumnCollection.cs (CopyTo): Method specific to 2.0
379 * DataRowCollection.cs (Count): Property is overridden in 2.0
382 * TypedDataSetGenerator.cs: Class is obsolete in 2.0 profile.
384 * DataRelationCollection.cs (CopyTo): Method specific to 2.0
387 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
389 * CustomDataClassGenerator.cs: Misc fixes in order to emit correct VB code.
390 CreateDataSetDefaultCtor: we're creating a delegate, not an object, so use a DelegateCreateExpression.
391 CreateDataSetSchemaChanged: we're comparing value types, use the correct equality operator.
392 CreateTableGetEnumerator: explicity state that the method is an implementation of IEnumerable.GetEnumerator.
393 CreateTableEventStarter: we're invoking a delegate, so use a DelegateInvokeExpression.
394 Several changes to not generate members with names that only differ by case.
396 2007-05-18 Chris Toshok <toshok@ximian.com>
398 * DataColumnCollection.cs (Add ()): handle the default name case
400 (Add (string)): same - let Add(DataColumn) handle the default name
402 (Add (DataColumn)): in the 1.1 case, we need to add the column's
403 PropertyChanged handler *before* possibly setting the column name
404 to the default so we emit the right events (Changed/Added). In
405 the 2.0 case, we add the event handler after the name is set, and
406 therefore only emit the Added event.
408 2007-05-07 Adar Wesley <adarw@mainsoft.com>
410 * ConstraintCollection.cs: added CopyTo method with strongly typed Constraint[]
413 * DataTable.cs: added implementation of IXmlSerializable. Added missing
414 method ReadXmlSerializable.
416 2007-04-19 Chris Toshok <toshok@ximian.com>
418 * DataColumnCollection.cs (Add): the Element in our
419 CollectionChangedEventArgs should be the column, not the
420 collection. Also, add an event handler for the column's
421 PropertyChanged event so we can propagate metadata changes.
422 (Remove): Analogous change to the CollectionChangedEventArgs as in
423 Add. Also, unhook the column's PropertyChanged event.
424 (OnCollectionmetaDataChanged): emit our new event.
425 (ColumnPropertyChanged): called when the column's ColumnName
426 property changes. Emit the proper CollectionChangeEvent.
428 * DataView.cs (ColumnCollectionChanged): fix up the comment about
429 CollectionChangeAction.Refresh, and make explicit what generates
431 (RegisterEventHandlers): hook up
432 DataColumnCollectoin.CollectionMetaDataChanged.
433 (RegisterEventHandlers): unhook
434 DataColumnCollectoin.CollectionMetaDataChanged.
436 2007-02-23 Nagappan A <anagappan@novell.com>
438 * DataRow.cs (Item): Checks whether this DataRow exist in the
439 DataRowCollection, then compute the expression. Fixes bug #
442 * DataRowCollection.cs (IndexOf): Modified as internal method for
445 * XmlDataReader.cs (StringToObject): DataTables containing
446 System.Type throw exception on deserializing. Fixes bug # 80596.
448 * XmlDataLoader.cs (StringToObject): DataTables containing
449 System.Type throw exception on deserializing. Fixes bug # 80596.
451 2007-02-20 Konstantin Triger <kostat@mainsoft.com>
453 * XmlSchemaDataImporter.cs: ensure the tables are created in document order.
455 2007-02-19 Konstantin Triger <kostat@mainsoft.com>
457 * XmlDataReader.cs, XmlDataInferenceLoader.cs, XmlDiffLoader.cs:
458 ignore attributes from "http://www.w3.org/XML/1998/namespace".
459 * XmlConstants.cs: add constant for "http://www.w3.org/XML/1998/namespace".
460 * XmlDataInferenceLoader.cs: track the added elements index to fix the
461 added column ordinal.
463 2006-12-11 Chris Toshok <toshok@ximian.com>
465 * DataView.cs: GetItemProperties should return an empty collection
466 if we have no data table. Presently we NRE.
468 2006-12-08 Nagappan A <anagappan@novell.com>
470 * DataTable.cs (ReadXml): Removed if condition, as it should not
471 check the exception string.
473 2006-12-07 Chris Toshok <toshok@ximian.com>
475 * DataView.cs: add CollectionChangeEventHandler's on the
476 ChildRelations and ParentRelations collections, and emit
477 ListChanged events with PropertyDescriptor.Added/Deleted/Changed
480 2006-12-07 Nagappan A <anagappan@novell.com>
482 * DataTable.cs (ReadXml): Integrated the implementation of
483 ReadXml, patch provided by deepak_2603@yahoo.com.
485 2006-12-05 Nagappan A <anagappan@novell.com>
487 * DataTable.cs (WriteXmlSchema): Using XmlTextWriter instead of
488 XmlWriter, solved the File Sharing IO Exception.
490 2006-11-28 Hubert FONGARNAND, FrAcdAcric Mestayer <informatique.internet@fiducial.fr>
492 * DataColumnCollection.cs : Improved Column searching when not
493 using exact column name (case sensitivity). Fixes bug # 80075.
495 2006-11-28 Nagappan A <anagappan@novell.com>
497 * XmlSchemaDataImporter.cs: Fixed 2.0 profile compilation
498 warnings. Using AttributeSchemaType instead of AttributeType and
499 ElementSchemaType instead of ElementType.
501 * TypedDataSetGenerator.cs: Modified the profile check from
502 !NET_1_1 to !NET_1_0, as this class is obsolete from 1.1 profile.
504 * DataRelationCollection.cs (Item): Modified the property Item as
505 abstract and implemented it in DataSetRelationCollection and
506 DataTableRelationCollection classes.
508 * DataRowView.cs: Remove bogus MonoTODOs.
510 * ForeignKeyConstraint.cs (ForeignKeyConstraint): Implemented
511 2.0 profile's missing constructor.
513 * XmlDataLoader.cs (StringToObject): Modify XmlConvert.ToDateTime
514 to use XmlDateTimeSerializationMode, as the default ToDataTime
517 * XmlDataReader.cs (StringToObject): Modify XmlConvert.ToDateTime
518 to use XmlDateTimeSerializationMode, as the default ToDataTime
521 * DataView.cs (IsInitialized): Added browsable attribute.
523 * DataViewSettingCollection.cs (CopyTo): Implemented missing 2.0
526 * DataRelation.cs (DataRelation): Added 2.0 profile constructor to
527 take parentTableNameSpace and childTableNameSpace as argument.
528 (FinishInit): Update parentTableNameSpace and childTableNameSpace,
529 when the string is not empty in 2.0 profile.
531 * DataRowCollection.cs: Implemented Count public property.
532 Added !NET_2_0 for List protected property, as it has been removed
534 (IndexOf): Implemented new public method.
535 (CopyTo): Implemented new public override method.
536 (GetEnumerator): Implemented new public override method.
538 * DataTable.cs (Load): Throw ArgumentNullException, when reader
540 (WriteXmlSchema): Throw InvalidOperationException, when table name
541 is empty. When DataSet Namespace is set, append that with '_x003A_'
543 (IsInitialized): Added browsable attribute.
545 * DataSet.cs (Load): Throw ArgumentNullException, when reader
547 (IsInitialized): Added browsable attribute.
548 (WriteObjectXml): Modify XmlConvert.ToDateTime to use
549 XmlDateTimeSerializationMode, as the default ToDataTime method id
552 * XmlSchemaWriter.cs (WriteSchema): Modified UseCurrentCulture to
554 (WriteDataSetElement): Added minOccurs attribute.
555 (WriteConstraints): Check for tables length, if > 1 then add the
556 relations to XmlSchema.
558 2006-11-21 Nagappan A <anagappan@novell.com>
560 * DataView.cs: Added public event Initialized.
561 (IsInitialized): Implemented public function to check whether a
562 dataview is initialized or not.
564 * DataSet.cs: Added ISupportInitializeNotification for .NET 2.0
566 (RemotingFormat): Set the default value attribute as
567 SerializationFormat.Xml.
568 (IsInitialized): Implemented public function to check whether a
569 table is initialized or not.
570 (CreateDataReader): Added params keyword in argument.
571 (Load): Implemented all Load overloaded functions.
572 (GetObjectData): Modified to public for .NET 2.0 implementation.
573 (IsBinarySerialized): Implemented the public API to check whether
574 the given stream is binary serialized or not.
575 * DataTable.cs: Added ISupportInitializeNotification for .NET 2.0
578 2006-11-15 Nagappan A <anagappan@novell.com>
580 * DataTable.cs (RemotingFormat): Set the default value attribute
581 as SerializationFormat.Xml.
582 (OnTableNewRow, NewRowAdded): Implemented new function to raise an
583 event when a new row is added to the table.
584 (DataTableInitialized, OnTableInitialized): Implemented new
585 function to raise an event when a table is initialized.
586 (IsInitialized): Implemented public function to check whether a
587 table is initialized or not.
588 (OnTableClearing): Raise an event before the table is cleared.
589 (GetObjectData): Modified to public for .NET 2.0 implementation.
590 (Load): Implemented missing API to call the registered delegate
591 function on load exception.
592 (WriteXmlSchema): Implemented overloaded function to write the
593 hierarchy with XML Schema.
595 2006-11-15 Konstantin Triger <kostat@mainsoft.com>
597 * DataTable.cs: Fixed LoadDataRow scenarios.
598 * DataRowCollection.cs: Added override for AddInternal taking DataRowAction parameter.
600 2006-11-14 Konstantin Triger <kostat@mainsoft.com>
602 * DataColumn.cs: consider row version wen checking row.IsNull().
604 2006-10-18 Nagappan A <anagappan@novell.com>
606 * ForeignKeyConstraint.cs (_validateColumns): Parent and child
607 columns can't be the same column - Exception, bug # 79689
609 2006-10-13 Nagappan A <anagappan@novell.com>
611 * DataTable.cs (DeserializeConstraints): Fine tuned the
612 serialization and deserialization of constraints.
614 * DataRelationCollection.cs (Contains): Fixes bug
615 #79233. DuplicateNameException when two relations for different
616 DataTables in DataSet are defined
618 2006-10-06 Patrick Earl <mono@patearl.net>
620 * DataTable.cs, XmlTableWriter.cs, XmlSchemaWriter.cs, DataSet.cs:
621 Implemented DataTable.WriteXml
623 2006-09-26 Nagappan A <anagappan@novell.com>
625 * DataTable.cs, DataSet.cs, DataColumn.cs, Constraint.cs,
626 DataRow.cs: Implementation of Binary Serialization /
629 * DataTable.cs (RowsExist): Check rows based on version.
631 * DataRow.cs: Raise exception same as MS.NET. Thanks to
632 Hubert FONGARNAND <informatique.internet@fiducial.fr> for
633 providing this patch.
635 2006-09-07 Vladimir Krasnov <vladimirk@mainsoft.com>
637 * DataSet.cs: added 2.0 stubs to solve typed dataset porting issues
639 2006-08-30 Nagappan A <anagappan@novell.com>
641 * DataRow.cs (EndEdit): DataRow.EndEdit emits RowChanged too
642 often. Fixes bug # 78885.
644 2006-08-14 Konstantin Triger <kostat@mainsoft.com>
646 * DataTableCollection.cs, DataRelationCollection.cs, DataRowCollection.cs,
647 DataColumnCollection.cs: implemented specialized CopyTo() method.
649 2006-07-26 Nagappan A <anagappan@novell.com>
651 * DataTable.cs (GetIndex): Fixes memory explode on
652 DataTable.Select - Bug # 77691.
654 2006-07-25 Nagappan A <anagappan@novell.com>
656 * DataView.cs (OnRowCollectionChanged): On DataTable.Clear,
657 setting rowCache to empty DataRowView. Fixes bug # 78610.
659 * DataTable.cs (AcceptChanges): Raises Reset event. Fixes bug #
662 2006-07-20 Senganal T <tsenganal@novell.com>
665 - Merge : moved the columntypecheck to AdjustSchema,
666 Remove the unncessary calls to Table.ResetIndexes.
667 - AdjustSchema : check for columntypes
668 Thanks to Deepak Kr Valechha for the patch
670 2006-07-17 Senganal T <tsenganal@novell.com>
673 - ToTable : Implemented all the overloads
674 - Equals : Implemented
675 - IBindingListView : Implemented the interface
677 2006-07-15 Senganal T <tsenganal@novell.com>
679 * DataTableCollection.cs :
680 - Contain,IndexOf,Remove,Add,Indexer : support for table
681 namespace. Remove redundant checks in Remove/Add.
683 2006-07-14 Senganal T <tsenganal@novell.com>
686 - SetOrdinal : Implemented
687 - Ordinal : added internal set
688 * DataColumnCollection.cs :
689 - Add : Set the column ordinals
690 - MoveColumn : Changes the position of column in the
693 2006-07-14 Senganal T <tsenganal@novell.com>
696 - Merge - Implement the merge methods
697 - Clone - Ensure column's DateTimeMode property is also copied
699 - DateTimeMode : Implemement
700 - DataTypeMatches : Added. In 2.0 profile, test DateTime
701 property when verifying column types.
703 - ctr : For DateTime columns, check DateTimeMode property
704 * ForeignKeyConstraint.cs :
705 - _validateColumns : For DateTime columns, check DateTimeMode
708 - Merge : Added. Overload to merge two tables
709 - ResolveColumns : Change the method to use a table instead of
711 - Renamed AdjustSchema to AdjustSchemaRelations
713 2006-07-13 Senganal T <tsenganal@novell.com>
716 - WriteTables : Remove some commented out code
717 - WriteTable : Fix the logic to skip the table data when the
718 table has a nested relation.
721 2006-07-12 Senganal T <tsenganal@novell.com>
723 * ConstraintCollection.cs :
724 - Remove (string): If constraint name is not found, throw exception
725 - Remove (Constraint): Set the ConstraintCollection of the removed
727 Thanks to Deepak Kr Velachha for reporting the bug.
729 2006-07-12 Senganal T <tsenganal@novell.com>
732 - LoadColumnChildren : If schema name is missing, skip the
734 Thanks to Deepak Kr Velachha for identifying the bug.
736 2006-07-11 Senganal T <tsenganal@novell.com>
738 * XmlSchemaWriter.cs :
739 - WriteTableType : If Relation.Nested is true, then nest the
740 table schemas. Correct the xml to add the table element within
741 the <Sequence> element.
742 - WriteChildRelations : Correct the Xml element name and
743 attributes. Close the attribute correctly.
745 * XmlSchemaDataImporter.cs :
746 - GenerateRelationship : When creating the relations, if
747 ParentColumn exists but Corr ChildCol is null, create a child
748 Column with the same name and type as the parent column.
749 - Renamed DataSetDefinesPrimaryKey to DataSetDefinesKey
750 - DataSetDefinesKey : if either xsd:key or xsd:keyref is
751 defined for the dataset, do not manually create the relations.
752 - AddParentKeyColumn : if Columnname already exists, use
753 colname_0 instead of throwing an exception.
754 - FillDataColumnRepeatedSimpleElement : Do not set the Unique
755 value as it creates a constraint by default. The unique value
756 is automatically set when pk is set.
757 - CreateChildColumns : Added. Creates a ChildColumn duplicating
758 ParentColumn properties.
760 2006-06-30 Senganal T <tsenganal@novell.com>
763 - SetAdded, SetModified : new methods in 2.0
765 2006-06-30 Senganal T <tsenganal@novell.com>
766 * SerializationFormat.cs, DataSetDateTime.cs, DataTableNewRowEventArgs.cs,
767 DataTableNewRowEventHandler.cs : Added
768 * SyntaxErrorException.cs EvaluateException.cs StrongTypingException.cs
769 IsolationLevel.cs ReadOnlyException.cs DataTableCollection.cs
770 DataRowState.cs MissingPrimaryKeyException.cs DeletedRowInaccessibleException.cs
771 DuplicateNameException.cs PropertyAttributes.cs StatementType.cs
772 VersionNotFoundException.cs FillErrorEventHandler.cs DataRowChangeEventHandler.cs
773 XmlWriteMode.cs InvalidExpressionException.cs StateChangeEventHandler.cs
774 DbType.cs DataColumnChangeEventHandler.cs KeyRestrictionBehavior.cs
775 ConnectionState.cs SchemaType.cs MergeFailedEventHandler.cs SqlDbType.cs
776 DataRowVersion.cs ForeignKeyConstraint.cs DBConcurrencyException.cs
777 OperationAbortedException.cs MissingSchemaAction.cs DataTableClearEventHandler.cs
778 DataRowView.cs DataRowAction.cs ConstraintCollection.cs DataTableReader.cs
779 LoadOption.cs InvalidConstraintException.cs InternalDataCollectionBase.cs
780 ParameterDirection.cs AcceptRejectRule.cs UpdateRowSource.cs XmlReadMode.cs
781 TypedDataSetGenerator.cs RowNotInTableException.cs TypeDataSetGeneratorException.cs
782 InRowChangingEventException.cs MissingMappingAction.cs NoNullAllowedException.cs
783 CommandBehavior.cs PropertyCollection.cs CommandType.cs
784 UpdateStatus.cs ConflictOption.cs DataViewRowState.cs Rule.cs
785 DataColumnCollection.cs :
788 2006-06-27 Senganal T <tsenganal@novell.com>
790 * DataSet.cs, DataTable.cs : implement CreateDataReader methods
791 * InternalDataCollectionBase.cs
792 - ToArray () : helper method
793 * DataTableReader.cs :
794 - GetSchemaTable : set the schema info correctly
795 - GetProvider*, GetChars, GetBytes, GetValues :
796 Implemented the methods
797 - GetName : return the name of corresponding schema.
798 - ValidateSchemaIntact, OnColumnCollectionChanged,
800 Listen and raise expception if schema changes
802 2006-06-21 Chris Toshok <toshok@ximian.com>
804 * DataView.cs: update the index after we successfully add the new
805 row. This keeps the dataview's row view count in sync with the
808 2006-06-20 Chris Toshok <toshok@ximian.com>
810 * DataView.cs: the PropertyDescriptorCollection returned by
811 ITyepdList.GetItemProperties should include the child relations of
812 our table, in order to match MS's behavior.
814 * DataViewManager.cs: ICollection.Count property is always 1.
816 2006-06-15 Senganal T <tsenganal@novell.com>
819 - Select : If Sort String is not provided, sort the result
820 DataRows in Ascending Order of the Columns used in the filter
822 2006-06-15 Senganal T <tsenganal@novell.com>
825 - InternalEnforceConstraints : Check if any null constraints
826 are violated. Throw ConstraintException only after all the errors
829 - EnforceConstraints : Move away the logic to check for
830 NullConstraintViolation.
831 - AssertNotNullConstraint : Checks for Null Constraint
833 - EndLoadData : Do not throw any exceptions here. All the
834 errors have to be found and RowErrors set before throwing the
837 - ImportRecrod : Check the values of the row for any null
839 - SetColumnError : If the error for column is already set,
840 do not add a new error but edit the existing error.
841 - CheckValue : Set the NullConstraintViolation flag if either
842 table is being loaded or if EnforceConstraints is set to
844 * Constraint.cs : Do not throw exception when EnforceConstraints is
845 set to false or table is being loaded.
846 * UniqueConstraint.cs : Correct the error message. Set ColumnErrors
847 along with the RowError.
849 2006-05-31 Gert Driesen <drieseng@users.sourceforge.net>
851 * DataTable.cs: Renamed initInProgress to fInitInProgress. BeginInit
852 and EndInit must only be virtual in 2.0 profile. Set eol-style to CRLF.
854 2006-05-31 Senganal T <tsenganal@novell.com>
856 * XmlDataInferenceLoader.cs :
857 - InferTableElement : Repeated element should result in a single
859 Patch from Deepak Kr Velachha
861 2006-04-21 Senganal T <tsenganal@novell.com>
863 * DataRowCollection.cs :
864 - Find : If search on the table using PrimaryKey fails and if
865 index is not being maintained (during table load), search the
867 - Find (int) : Removed. Deadcode.
869 - Not necessary to delete each row from the Index.
870 Just reset the Indexes after cleaning up the row
872 - Simplify dependency check for child tables
875 - Do not use DataRowCollection.Find to search for
876 existing records as this wud check even newly loaded rows.
878 - Do not add new records to Index. Update Index only
879 if an existing record is modified. New records will be
880 taken care by EndLoadData.
882 2006-04-19 Senganal T <tsenganal@novell.com>
884 * XmlHelper.cs : A helper class for encoding/decoding schema names.
885 Caches the Schema names to minimize encoding/decoding operations and
886 duplicate strings created.
888 - Use XmlHelper for encoding/decoding schema names.
889 - Encode ConstraintNames when writing as xml.
892 * XmlDataInferenceLoader.cs
893 * XmlSchemaDataImporter.cs
894 - Use XmlHelper for encoding/decoding schema names.
895 * DataTableCollections : Minor code refactor.
896 * DataRow.cs : Create XmlElement only if required.
898 2006-04-07 Senganal T <tsenganal@novell.com>
901 - InternalEnforceConstraints() : Reset Indexes of all tables
902 before validating constraints. Fixes #78010
904 2006-03-04 Boris Kirzner <borisk@mainsoft.com>
905 * TypeDataSetGeneratorException.cs: fix .Net Soap serialization compatibility.
907 2006-03-25 Senganal T <tsenganal@novell.com>
910 - RejectChanges : When row is in Deleted state, add the row back to
911 Indexes and Validate the row.
914 2006-03-23 Senganal T <tsenganal@novell.com>
917 - LoadDataRow : Add the row to the indexes, when loading a new row.
919 2006-03-22 Senganal T <tsenganal@novell.com>
922 - PrimaryKey : Set the IsPrimaryKey attribute before Removing from collection.
923 - RemoveUniqueConstraints : Removed. dead code.
926 - If adding/removing constraint fails, retain Unique value
927 - Remove redundant code
928 * UniqueConstraint.cs :
929 - SetIsPrimaryKey : Added. Sets the value of IsPrimaryKey.
930 - RemoveFromConstraintCollectionCleanup : If constraint is on a single column, then
931 set Unique for that column to false.
932 - CanRemoveFromCollection : Do not remove constraint, if its a PrimaryKey
934 2006-03-20 Senganal T <tsenganal@novell.com>
937 - CopyRelations () : When copying the relation, do not add constraints
938 automatically for the relation.
939 - OnMergeFailed () : If merge fails and no handler is set for the MergeFailedEvent,
940 then throw DataException
941 * ConstraintCollection.cs :
942 - Add () : Check if a constraint already exists on the Columns that are being
944 - IndexOf () : Do not check for equivalent constraints, check for the exact instance.
945 * MergeManager.cs ():
947 - Handle the MissingSchemaAction.Error case,
948 - Do not create constraints when mergin the DataRelation
949 - Follow the semantics for schema merge/validation when constraints are already present
950 in the target DataSet.
951 - AdjustPrimaryKeys () :
953 - Verify Order of Columns in the PrimaryKey when merging.
954 - ResolveColumns : Changed the arument to DataSet. Simplifies code elsewhere.
955 - CompareColumnArrays, CompareColumnArrays : Helper funtions.
957 2006-03-09 Senganal T <tsenganal@novell.com>
960 - RejectChanges () : Add the row to index, if it was in deleted state and
961 Update the index if in Modified State.
962 - AcceptChanges () : Do not update the Indexes.
963 - EndEdit () : Update the indexes even if BeginLoadData has been called
964 on the table. Ideally, indexes should not be maintained during DataLoad,
965 but this needs to handled in multiple places correctly. For now, just maintain
966 the index to ensure correct operation.
968 2006-03-05 Senganal T <tsenganal@novell.com>
971 - BeginInit (), EndInit () : Implemented methods
972 - InitInProgress : Added.
974 - EndInit () : Move the adding of columns and constraints
976 - FinishInit () : Added. Adds the Constraints and Columns
978 - InitInProgress : Added.
980 - FinishInit () : Added. Virtual method
981 - InitInProgress : Added. Virtual property
982 * UniqueConstraint.cs
983 * ForeignKeyConstraint.cs
984 - FinishInit () : Added.
985 - InitInProgress : Added.
986 - DataColsNotValidated : Removed.
987 * ConstraintCollection.cs
988 - PostAddRange : Removed event
989 - PostEndEdit () : Renamed to PostAddRange
990 - Add () : Simplified the testing if constraint is initialized
991 - AddRange () : Simplified initializing the constraints
992 * DataTableCollection.cs
993 - PostAddRange () : Added. Adds the tables to the collection
994 * DataColumnColletion.cs
995 - PostEndInit () : Renamed to PostAddRange.Also, add column to
996 the collection only if not null.
998 Added/Implemented methods for design time support. Renamed some methods for consistency
999 in naming across classes for methods serving the same purpose.
1001 2006-02-24 Senganal T <tsenganal@novell.com>
1003 * UniqueConstraint.cs :
1004 - ChildConstraint : Added. Simplifies verifying if constraints are
1006 - CanRemoveFromCollection : Fixed the check to verify if constraints is
1007 linked to a ForeignKeyConstraint. Fixes #77630
1008 * ForeignKeyConstraint.cs :
1009 - _validateRemoveParentConstraint : Removed. Not used anymore
1010 - ParentConstraint : Added. Simplifies verifying if constraints are
1012 2006-02-22 Senganal T <tsenganal@novell.com>
1015 - RejectChanges : Do not remove Row from Indexes when state is Deleted.
1016 - CheckChildRows : When checking for the ChildRows, use the current value
1017 and not the original value.
1019 2006-02-18 Atsushi Enomoto <atsushi@ximian.com>
1021 * CustomDataClassGenerator.cs : Patch by Marek Habersack. xsd now
1022 outputs AutoIncrement, AutoIncrementSeed, AutoIncrementStep and
1023 ReadOnly properties. This fixes bug #77576.
1025 2006-02-17 Chris Toshok <toshok@ximian.com>
1027 * System.Data/DataSet.cs, System.Data/DataView.cs,
1028 System.Data/ForeignKeyConstraint.cs,
1029 System.Data/DataViewManager.cs, System.Data/DataRow.cs,
1030 System.Data/DataSysDescriptionAttribute.cs,
1031 System.Data/UniqueConstraint.cs, System.Data/DataTable.cs,
1032 System.Data/DataRelation.cs: lots of attribute work, removing
1033 DataSysDescription atributes (and marking the class obsolete) for
1036 2006-02-17 Chris Toshok <toshok@ximian.com>
1038 * DataAdapterException.cs: remove this file.
1040 2006-02-17 Chris Toshok <toshok@ximian.com>
1042 * DataTableReader.cs: Switch to the (bool) form of Dispose to
1043 override, as the no-arg form isn't virtual.
1045 * Constraint.cs: #ifdef out more DataSysDescriptions.
1047 * ConstraintException.cs: add ..ctor (string, Exception) for 2.0.
1049 2006-02-17 Chris Toshok <toshok@ximian.com>
1051 * DataColumn.cs: #ifdef all the DataSysDescriptions !NET_2_0.
1053 * AdapterMappingException.cs: nuke this file.
1055 * IDbAsyncConnection.cs, IDbAsyncCommand.cs, IGetTypedData.cs,
1056 ISetTypedData.cs, IDataReader2.cs, IDataSources.cs,
1057 IDbExecutionContext.cs, IDataRecord2.cs, IDataUpdatableRecord.cs:
1058 remove these 2.0 files.
1060 2006-02-17 Chris Toshok <toshok@ximian.com>
1062 * ConstraintCollection.cs: in 2.0, class is not serializable and
1063 is sealed. make all the "virtuals" #if !NET_2_0 as well.
1065 * Constraint.cs: not serializable in 2.0.
1067 * DataColumnCollection.cs: in 2.0, class is not serializable and
1068 is sealed. make all the "virtuals" #if !NET_2_0 as well.
1070 * DataRelationCollection.cs: not serializable in 2.0.
1072 * DataRelation.cs: not serializable in 2.0.
1074 * DataRowBuilder.cs: class is sealed in 2.0.
1076 * DataRowCollection.cs: in 2.0, class is not serialized and is
1077 sealed. Also, Add isn't virtual in 2.0 (as the class is sealed).
1079 * DataRow.cs: not serializable in 2.0.
1081 * DataSet.cs: remove some DataSysDescriptions from the 2.0 build,
1082 and s/GetDataReader/CreateDataReader.
1084 * DataTableCollection.cs: in 2.0, class is not serializable and is
1085 sealed. make all the "virtuals" #if !NET_2_0 as well.
1087 * DataTableReader.cs: remove VisibleFieldCount property.
1089 * DataViewSettingCollection.cs: not serializable in 2.0.
1091 * DataViewSetting.cs: not serializable in 2.0.
1093 * ForeignKeyConstraint.cs: serializable in 2.0.
1095 * OperationAbortedException.cs: class is sealed and serializable.
1097 * PropertyCollection.cs: serializable in 2.0.
1099 * StatementCompletedEventArgs.cs: class is sealed.
1101 * UniqueConstraint.cs: not serializable in 2.0.
1103 2006-02-16 Senganal T <tsenganal@novell.com>
1106 WriteDataSetElement : Add an annotation element if exists.
1107 WriteDataRelationAnnotation : New. Write a DataRelation as an annotation.
1108 WriteConstraints : Write ForeignKeyConstraint even when not associated with
1109 a DataRelation and add a "ConstraintOnly=true" attribute for such constraints.
1110 * XmlConstants.cs : Add a new constant - ConstraintOnly
1111 * XmlSchemaImporter.cs :
1112 - ConstraintStructure : Add field ,IsConstraintOnly, to distinguish if a foreignkeyconstraint
1113 is related to relation or not.
1114 - GenerateRelation : Handle the case when parentkey and childkey contain multiple columnnames.
1116 2006-02-11 Senganal T <tsenganal@novell.com>
1118 * UniqueConstraint.cs :
1119 - PostAddRange : Check PrimaryKey is not already set for the table
1121 - PrimaryKey : follow ms.net behavior when BeginInit , EndInit is used.
1122 - Add new priamry key only when EndInit is called.
1123 - Incase of an error, retain old primarykey
1125 - Add Constraints after columns are added.
1126 - If both PrimaryKey Property and PrimaryKey Constraint are set,
1127 then the Constraint takes precedence.
1130 2006-02-03 Senganal T <tsenganal@novell.com>
1132 * DataTableCollection.cs :
1133 - Remove () : Check for invalid TableName
1134 - Add () : Verify the table doesn't belong to another dataset
1136 - CompleteLastAdded () : Do not raise ItemAdded Event as it is
1137 already raised in AddNew().
1139 - Expression : Verify that the Column names in the expression are valid
1140 - ResetCollectionInfo : Renamed to ResetColumnInfo
1142 - RejectChanges () : Reorganized the code to do the Right thing.
1143 - Item : Dont check for detached and deleted rows as these are
1145 * DataRowCollection.cs :
1146 - Add () : Check for null value
1148 - PrimaryKey : Set AllowDBNull=false for all the key columns
1149 - ImportRow : Import the row only if it is not in Detached state. if in Deleted
1150 state, perform the validation when AcceptChanges/RejectChanges is called.
1151 * DataColumnCollection.cs :
1152 - Add : Validate the column expression before adding it to the collection.
1153 - GetColumnDependency () : New. Get the dependencies on the column
1154 - CanRemove : Move checks to GetColumnDependency
1155 - Clear () : Simplified code. Remove unncessary checks.Also, dont check Expression col.
1156 - IndexOf - Check argument.
1157 Overall , appropriate error msg's are thrown if Remove/Clear fails. Removed a few
1158 redundant checks performed and moved the common code to GetColumnDependency.
1160 2006-01-31 Senganal T <tsenganal@novell.com>
1162 * DataSet.cs : Modified CopyRelations ()
1163 - Added code to copy ForeignKeyConstraints. Fixes #77411.
1165 2006-01-18 Boris Kirzner <borisk@mainsoft.com>
1166 * DataColumn.cs: added PropertyCchangedEvent handling.
1168 2006-01-17 Senganal T <tsenganal@novell.com>
1171 ItemArray : Modified to raise RowInTableException only if
1172 the concerned row has been removed from the table.Fixes
1175 2006-01-16 Boris Kirzner <borisk@mainsoft.com>
1176 * DataTable.cs: Drop dependend indexes on column removal.
1178 2006-01-16 Atsushi Enomoto <atsushi@ximian.com>
1180 * CustomDataClassGenerator.cs :
1181 When a DataRelation connects the same table as parent and child,
1182 generate parent row property as BlahRowParent. Fixed bug #77248.
1184 2006-01-10 Senganal T <tsenganal@novell.com>
1185 * DataRowCollection.cs
1186 - Added ListChangedEvent to notify reset of the collection.
1188 - Subscribes to the ListChangedEvent of DataRowCollection
1191 2006-01-09 Senganal T <tsenganal@novell.com>
1192 * RelatedDataView.cs
1194 - Resolving a name clash in IExpression
1196 2006-01-06 Senganal T <tsenganal@novell.com>
1199 * DataColumnCollection.cs
1200 - Reset the Parameters of DataColumn to Default Values when
1201 column is removed from the Table's Collection
1203 2006-01-03 Senganal T <tsenganal@novell.com>
1206 - ParseSortString() : Changed the way the sort string is parsed.
1207 Using a regex to parse the string.Fixes bug #77104
1209 2005-12-12 Konstantin Triger <kostat@mainsoft.com>
1211 * DataRow.cs: Added index Updates.
1212 EndEdit() fixed to first update indices and then AssertConstraints
1213 based on those indices.
1214 Added Validate() and AssertConstraints() functions.
1215 * DataRowCollection.cs: Removed ValidateDataRowInternal().
1216 * DataTable: Fixed Clear().
1218 2005-12-06 Atsushi Enomoto <atsushi@ximian.com>
1220 * CustomDataClassGenerator.cs : (InitializeFields) handle AllowDBNull
1221 and DefaultValue as well. Patch by Marek Habersack (bug #76709).
1223 2005-12-01 Miguel de Icaza <miguel@novell.com>
1225 * DataSet.cs: Apply patch from Robert Jordan, to fix #76817
1227 2005-11-26 Konstantin Triger <kostat@mainsoft.com>
1229 * ConflictOption.cs: TARGET_JVM include.
1231 2005-11-11 Senganal T <tsenganal@novell.com>
1233 * ConflictOption.cs (new file)
1234 - Added ConflictOption Enumeration
1235 * DataTableReader.cs
1237 - GetProviderSpecificFieldType : Corrected the method name
1239 2005-11-11 Senganal T <tsenganal@novell.com>
1241 * DataSet.cs : Added the SchemaSerializationMode Property for NET_2_0
1243 * SchemaSerializationMode.cs : Added SchemaSerializationMode Enumeration
1244 for NET_2_0 compatibility.
1248 2005-10-20 Atsushi Enomoto <atsushi@ximian.com>
1250 * XmlSchemaWriter.cs : escape names in the schema with XmlConvert.
1253 2005-10-14 Sureshkumar T <tsureshkumar@novell.com>
1255 * DataView.cs: Correct multiple throwing of events. Patch from
1257 (RowStateFilter): Fire ListChangedEvent.
1258 (ApplyDefaultSort): Fire ListChangedEvent.
1259 (CompleteLastAdded): call UpdateIndex to remove the row from rowCache.
1260 (IBindingList.Find): Implemented.
1262 2005-10-11 Sureshkumar T <tsureshkumar@novell.com>
1264 * DataView.cs (IBindingList): Implemented methods for IBindingList interface.
1266 2005-09-26 Lluis Sanchez Gual <lluis@novell.com>
1268 * DataSet.cs: In IXmlSerializable.GetSchema, return null again for
1269 untyped datasets. Fixes bug #76101.
1271 2005-09-21 Boris Kirzner <borisk@mainsoft.com>
1272 * DataRow.cs: Fixes for index updating.
1274 - Reset case-sensitive indexes also if their filter contains columns
1276 - Use GetIndex instead of FindIndex, so the indexes created in Select()
1278 * RelatedDataView.cs: implement IExpression.Equals() and GetHashCode().
1280 2005-09-20 Sureshkumar T <tsureshkumar@novell.com>
1282 * DataView.cs (Sort): Apply default Sorting Order if Sort property
1283 is reset to null. Sort property handles this. Patch from Marc.
1285 * DataTable.cs (ParseSortString): Patch from Marc Haisenko for
1286 allowing [ & ] in DataView.Sort string.
1288 2005-09-01 Boris Kirzner <borisk@mainsoft.com>
1289 * System.Data/DataRowCollection.cs: indexes should be updated even if
1290 EnforceConstraints is false. Check for EnforceConstraints in
1291 ValidateDataRowInternal.
1293 2005-08-08 Gert Driesen <drieseng@users.sourceforge.net>
1295 * DataView.cs: Changed accessibility of dataTable, rowState and
1296 rowCache field to internal to fix public API. Assigned TypeConverter
1298 * ForeignKeyConstraint.cs: IsConstraintViolated is now internal.
1299 * Constraint.cs: IsConstraintViolated is now internal.
1300 * UniqueConstraint.cs: IsConstraintViolated is now internal.
1302 2005-08-05 Atsushi Enomoto <atsushi@ximian.com>
1304 * XmlSchemaDataImporter.cs : When "dataset element" has identity
1305 constraints, then first reserve constraints room for them and then
1306 process elements, skipping pkey creation if there is already
1307 reserved one. Fixed bug #75711.
1309 2005-08-05 Atsushi Enomoto <atsushi@ximian.com>
1311 * XmlDataInferenceLoader.cs : in GetElementMappingType(), don't guess
1312 the same (QNamed) element again when it was already evaluated as
1313 not simple type. Fixed one part of bug #75711.
1315 2005-08-02 Boris Kirzner <borisk@mainsoft.com>
1316 * XmlSchemaDataImporter.cs : Data relations should be processed after the
1317 keys, so no redundant constraints created while relations processing.
1319 2005-07-25 Boris Kirzner <borisk@mainsoft.com>
1320 * FillOptions.cs, ConflictOptions.cs, UpdateOptions.cs:
1321 added ifdef TARGET_JVM.
1323 2005-07-22 Sureshkumar T <tsureshkumar@novell.com>
1325 * DataViewSettingCollection.cs, DataTableCollection.cs,
1326 DataSet.cs, DataView.cs, DataColumn.cs, ForeignKeyConstraint.cs,
1327 DataRelationCollection.cs, UniqueConstraint.cs, DataTable.cs,
1328 DataColumnCollection.cs, DataRelation.cs, DataSet.cs:
1329 - updated attributes & attribute descriptions to match with
1332 * DataView.cs: changed protected members
1333 rowstate,rowcache,dataTable to protected internal.
1334 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint.cs:
1335 changed InConstraintViolated to protected internal.
1336 * ConflictOptions.cs, UpdateOptions.cs, FillOptions.cs: enclosed
1337 with NET_2_0 define.
1339 2005-07-21 Sureshkumar T <tsureshkumar@novell.com>
1341 * ForeignKeyConstraint.cs:
1342 - IsConstraintViolated (): no matter what EnforceConstraints is,
1343 this function now honestly validates. It is upto the caller to run
1345 - AddToConstraintCollectionSetup (): AssertConstraint according to
1348 2005-07-21 Boris Kirzner <borisk@mainsoft.com>
1349 * ForeignKeyConstraint.cs - IsConstraintViolated() should check also for Table.EnforceConstraints.
1350 * DataTable.cs - EnforceConstraints becomes internal so it can be used by ForeignKeyConstraint.
1352 2005-07-19 Sureshkumar T <tsureshkumar@novell.com>
1354 * DataTable.cs - CopyConstraints (): copy constraints only if it
1357 * DataSet.cs - Copy ():
1358 - use activator.CreateInstance to create a typed dataset.
1359 - copy tables if target does not exist, otherwise, just add rows.
1360 - add relation only if it does not exists.
1362 Typed datasets create the constraints & relations through
1363 constructors. Fixes bug #75211.
1365 2005-07-14 Sureshkumar T <tsureshkumar@novell.com>
1367 * DataView.cs: Patch from Marc Haisenko to throw descriptive error
1368 message when accessing Item, with invalid index.
1370 2005-07-14 Sureshkumar T <tsureshkumar@novell.com>
1372 reapplied patch from Marc Haisenko.
1373 * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
1376 2005-07-13 Sureshkumar T <tsureshkumar@novell.com>
1378 * DataRelationCollection.cs: adding a relation with same set of
1379 parent columns & child columns, should not be allowed.
1381 2005-07-08 Sureshkumar T <tsureshkumar@novell.com>
1383 * DataTableReader.cs: GetSchemaTable: DataType column should be
1384 passed a type of Type.
1386 * DataRow.cs: Load : Fired necessary events.
1388 * DataTable.cs: LoadDataRow (object [], LoadOption): Fired
1391 2005-06-28 Sureshkumar T <tsureshkumar@novell.com>
1393 * DataRow.cs: Delete (): if row is detached, do nothing.
1396 2005-06-22 Sureshkumar T <tsureshkumar@novell.com>
1398 * DataRow.cs: Added method MergeValuesToRow copy merge two rows
1399 according to the merge rules.
1401 * MergeManager.cs: (MergeRow): use MergeValuesToRow
1402 API. CopyValuesToRow simply makes the target row same as source
1403 row. Rather, MergeValuesToRow merges with the target row according
1406 2005-06-19 Konstantin Triger <kostat@mainsoft.com>
1408 * DataSet.cs: Fixed ReadXml to work with IXmlSerializable
1410 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
1412 * DataViewManager.cs: fixes exception and creates DataView
1414 2005-06-15 Sureshkumar T <tsureshkumar@novell.com>
1416 * DataRow.cs: CheckChildRows: cascade parent changes to child rows
1417 only if there is a change in columns of the fk constraint.
1419 2005-06-14 Sureshkumar T <tsureshkumar@novell.com>
1421 * DataSet.cs: GetChanges: if row is deleted, get parent rows based
1422 on original version. fixes bug #75227.
1424 2005-06-13 Sureshkumar T <tsureshkumar@novell.com>
1426 * DataRowCollection.cs: Find (keys, version): Added an overload to
1427 find keys matching given DataViewRowState filter. Used in
1428 DataSet.Merge and DataTable.LoadDataRow.
1430 * DataTable.cs: LoadDataRow (values, LoadOption): Use
1431 DataRowCollection.Find (object [], DataViewRowState) overload.
1434 - CopyValuesToRow: Create target "records" out of loop. Records
1435 should be created once, not for each column. Dispose Unused target
1439 - MergeRow: Find rows with matching original records. If not,
1440 select with current values.
1441 - MergeRow: While adding new row, use NewNotInitializedRow.
1443 * ForeignKeyConstraint.cs: IsConstraintViolated: should not check
1444 if EnforceConstraints is false.
1446 2005-06-10 Sureshkumar T <tsureshkumar@novell.com>
1448 * DataRow.cs: CopyValuesToRow: if orginal == current, don't create
1449 a new current record.
1451 * DataSet.cs: GetChanges :Temporarily disable EnforceConstraints.
1453 * MergeManager.cs: Merge: Temporarily disable
1454 EnforceConstraints. Patch from george.barbarosie@gmail.com (George
1457 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
1459 * DataView.cs: fixes GetListName
1461 2005-06-02 Atsushi Enomoto <atsushi@ximian.com>
1463 * XmlSchemaConstants.cs,
1464 XmlSchemaDataImporter.cs,
1465 XmlSchemaWriter.cs : AutoIncrementStep support. Patch partly by
1466 George Barbarosie. Fixed bug #75121.
1467 * XmlSchemaMapper.cs : it is not used anymore, so just removed.
1469 2005-05-31 Boris Kirzner <borisk@mainsoft.com>
1470 * DataRow.cs : SetParentRow on Detached row with no Default version throws an exception.
1472 2005-05-29 Konstantin Triger <kostat@mainsoft.com>
1474 * This patch fixes #74813
1475 * DataView.cs: rework the CreateChildView to receive the index into the indexed row array, rowState became protected to be initialized from RelatedDataView
1476 * DataRowView.cs: movo the logic of creating the child view to the DataView
1477 * RelatedDataView.cs: perform correct init.
1479 2005-05-25 Sureshkumar T <tsureshkumar@novell.com>
1481 * DataTable.cs: Reworked DataTable.LoadDataRow method after
1482 regressions caused by Index redesign.
1483 * DataRow.cs: Load : reworked.
1485 2005-05-25 Konstantin Triger <kostat@mainsoft.com>
1487 * ISafeDataRecord.cs: Added GetDateTimeSafe method, the interface was made derived from IDataRecord
1489 2005-05-22 Konstantin Triger <kostat@mainsoft.com>
1491 * 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
1493 2005-05-20 Sureshkumar T <tsureshkumar@novell.com>
1495 * DataTable.cs: CreateRecord :value should be set to auto
1496 increment value or default value if the given value is null.
1498 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
1500 * DataTable.cs: In DataTable.LoadDataRow with LoadOption - reverting the search order back to Original -> Current (by Suresh request)
1502 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
1504 * DataRow.cs, DataTable.cs: code under net_2_0 changed to use the new interface
1505 * DataTable.cs: Added CompareRecords, which compares records in column order
1508 2005-05-16 Sureshkumar T <tsureshkumar@novell.com>
1511 * DataTable.cs: quick fix to make build 2.0 profile (follow up for
1512 check in 2005-05-16). Merge with previous changes.
1514 2005-05-11 Sureshkumar T <tsureshkumar@novell.com>
1516 fix for "import row does not import deleted records"
1518 * UniqueConstraint.cs: Make a way to access value even from a
1519 deleted record. deleted records are added to the collection by
1523 - Added restriction-less methods GetValue to fetch a
1524 value even if it is in deleted state.
1525 - If a row is detached, don't try to delete it from indexes.
1526 - sanity check for record_index in CopyValuesToRow method
1528 2005-05-05 Sureshkumar T <tsureshkumar@novell.com>
1530 * DataTableReader.cs: Implemented Delete handler and move the
1531 current pointer accordingly.
1533 2005-05-04 Sureshkumar T <tsureshkumar@novell.com>
1535 * DataTableReader.cs: Added event handlers to make reader stable
1536 when the datasource is modified. Thanks to Umadevi for giving the
1537 review comments for this implementation.
1539 * DataTable.cs: Clear (): Raise TableCleared event.
1541 * DataTableClearEventArgs.cs: Args for DataTableClearEventHandler.
1543 * DataTableClearEventHandler.cs: Handler for DataTable.TableClear
1546 * DataRow.cs: AcceptChanges: raise row changing & row changed
1549 * DataRowCollection.cs: Clear : remove rows from indexes
1551 2005-05-02 Atsushi Enomoto <atsushi@ximian.com>
1553 * XmlSchemaDataImporter.cs : XmlSchemaParicle might be XmlSchemaAny.
1554 This fixes bug #74784.
1556 2005-04-29 Sureshkumar T <tsureshkumar@novell.com>
1558 * DataTableReader.cs: removed use of _first. throw if given index
1559 is out of range of columns. Copy DataTable [] to local array so
1560 that not to be disturbed.
1562 2005-04-27 Sureshkumar T <tsureshkumar@novell.com>
1564 * DataTableReader.cs: Implemented most of the TODO.
1566 2005-04-22 Sureshkumar T <tsureshkumar@novell.com>
1568 * LoadOption.cs: Changed the enums. Keeping old values for
1571 * DataTable.cs: Implemented methods Load and its overloads. Also
1572 implemented LoadDataRow.
1574 * DataRowCollection.cs: Added a variation of the Find method to
1575 return a row even if it is of state Deleted. This is required for
1576 DataTable.LoadDataRow method.
1578 * DataRow.cs: Implemented internal helper method Load for loading
1579 values from an object array and given an LoadOption (2.0 feature).
1581 * DataRowAction.cs: Added few more enums for .net 2.0. Sorted
1584 2005-05-16 Konstantin Triger <kostat@mainsoft.com>
1586 * UniqueConstraint.cs : IsNull check is relevant for rows having default row version.
1587 * DataTable.cs : The row should be validated when imported
1588 * DataRowCollection.cs : if the row does not contain Proposed neither Current version, it's irrelevant for validation
1590 2005-04-26 Boris Kirzner <borisk@mainsoft.com>
1592 * UniqueConstraint.cs :
1593 - Add indication whenever the constraint belongs to collection.
1594 - Calculation of IsPrimaryKey simplified.
1595 - If constraint is based on single column, the column becomes unique.
1596 - Use boolean IsConstraintViolated() instead of AssertConstraint().
1597 - Use Index.Duplicates to proper exception message formatting.
1598 - AssertConstraint(DataRow) changed to suite new indexes interface.
1599 - Added CanRemoveFromCollection method.
1600 - Contains() method renamed to IsColumnContained().
1601 * RelatedDataView.cs : added new class.
1603 - Reset indexes after merge.
1604 - Add new tables when row array is merged into dataset.
1605 - Clean proposed record in MergeRow.
1606 - Inherit nesting on creating new relations in target data set.
1607 - Avoid double loop on constraints collection.
1608 * Locale.cs : added new class.
1609 * ISafeDataRecord.cs : added new interface.
1610 * Index.cs : commented out. Index implementation moved to System.Data.Common.
1611 * ForeignKeyConstraint.cs :
1612 - No more use of childColumnsExtended since new indexes allow duplicate records.
1613 - Constraints can not be created on expression columns.
1614 - Removed unnecessary delegation.
1615 - Use boolean IsConstraintViolated() instead of AssertConstraint().
1616 - Use proper exception message formatting.
1617 - Contains() method renamed to IsColumnContained().
1618 * DataViewRowState.cs : use enum members to simplify notation.
1619 * MergeManager.cs : implemented RelationCollectionChanged().
1620 * DataView.cs : new implementation.
1621 * DataTableCollection.cs :
1622 - Added boundary check in indexer.
1623 - More accurate handling in AddRange().
1624 - Raise event in Remove().
1626 - Hold primary key as constraint.
1627 - Added accurate handling of DefaultView.
1628 - Hold DataRowBuilder per table.
1629 - Proper exception messages if enforce Constraints is violated.
1630 - If there is no rows, Compute() returns DBNull.
1631 - Use DataRow properties instead of private members.
1632 - CopyProperties() fixed.
1633 - Raise proper events in EndInit().
1634 - Proper order of violation checks in EndLoadData().
1635 - Create array of rows using NewRowArray().
1636 - ImportRow handles rows according to their versions.
1637 - LoadDataRow make use of records (instead of raw object array).
1638 - Added and implemented LoadDataRow() that gets IDataRecord as a parameter (used in Fill)
1639 - Select() uses indexes filtering and sorting ability (instead of "loop-throw-sort" approach).
1640 - Removed redundant RowSorter and Sortable column classes.
1641 - ParseSortString() fixed to threat bracketed column names.
1642 - Table holds collection of property descriptors.
1644 - Reset table case sensitive indexes on CaseSensitive change.
1645 - EnforceConstraints update logic moved to internal method (used by DataTable).
1646 - InAddChangedRow first add row and than copy values for proper handling of default values.
1648 - Changed private member names to suite name convention.
1649 - CancelEdit() fixed.
1650 - CreateChildView() delegates to DataView.
1652 - Proper exception messages in indexers.
1653 - RowVersion uses DataView.
1654 - GetProperties() delegates to corresponding table if needed.
1655 * DataRowCollection.cs :
1656 - Common Add() logic moved to AddInternal() (used also by DataTable).
1657 - Removed redundant check from Contains().
1658 - Dalegate Find() calls when possible.
1660 - RomoveAt() delegates to Remove().
1661 - Optimized constraints check in row validation.
1662 * DataRelationPropertyDescriptor.cs : added new class.
1663 * DataRelationCollection.cs :
1665 - Fixed order of actions in AddCore().
1666 - RemoveCore() also delegates to base.
1667 - Add relation to dataset also in AddCore().
1668 - Remove relation from dataset also in RemoveCore().
1669 - InTransition hold a data relation so we can properly identify the "in transition" state.
1670 - Added threat of parent and child table s property descriptors in Add().
1671 - Common Add() logic moved to AddCore().
1673 - Remove() threats "in transition" state properly.
1674 - Remove methods delegate to single implementation.
1675 * DataColumnPropertyDescriptior.cs :
1676 - Added new constructor.
1677 - Commented out redundant method.
1678 * DataColumnCollection.cs :
1679 - Boundary check in indexer.
1680 - RegisterName and UnregisterName become internal (used also by DataColumn).
1682 - Fixed CanRemove().
1683 - Rethrow correct exception in Clear();
1684 - Change in collection resets parent table property descriptors.
1685 - Added PostEndEdit() helper method (used by DataTable).
1687 - Private member names changed to suite name convention.
1688 - Created method for CanAutoIncrement() logic.
1689 - Proper handling of column name update.
1690 - Proper exception messages on expression update.
1691 - Proper namespace handling (delegates to table when needed).
1692 - Removed redundant check in Unique update.
1693 - Implemented internal Clone().
1694 - GetParentRalation() and GetChildRelation() become private.
1696 - Added abstract methods (implemented in UniqueConstraint and ForeignKeyConstraint).
1697 - Simplified index update.
1698 * ConstraintCollection.cs :
1699 - Use Locale instead of CaseSensitive in column names comparison.
1701 - Rethrow correct exception type in Add().
1702 - Proper update of table primary key in Add().
1703 - Delegate CanRemove() to constraint.
1704 - Remove table primary key in Clear();
1705 - Delegate "can remove" check to constraint in Remove().
1706 - Removed unnecessary methods and properties.
1708 - RowSate becomes calculated property.
1709 - Use properties instead of private members where possible.
1711 - Fixed order of actions in ItemArray update.
1712 - Fixed DetachRow().
1713 - Added ImportRecord() method.
1714 - Removed redundant SetValuesFromDataRecord().
1715 - Fixed IndexFromVersion().
1716 - Added VersionFromIndex() method. Returns row version the passed record index corresponds to.
1717 - Fixed AcceptChanges().
1718 - Fixed creating proposed version in BeginEdit();
1719 - Added record disposal in Delete().
1720 - Fixed CheckChildRows().
1721 - EndEdit() fixed. Checks for readonly. Uses straight flow instead of "try and fix if fail" approach.
1722 - GetChildRows() and GetPrarentRows() rewrited. Use records and indexes for rows lookup.
1723 - GetColumnError() delegates to another implementation.
1724 - HasVersion() fixed.
1725 - RejectCahnges checks on child rows before passing through.
1726 - SetParentRow() fixed. Create relation collection if needed. Use typed data container value copy.
1727 - CopyErrors() logic moved to separate method (used also by DataTable).
1728 * ExpressionElement.cs : added new class.
1729 * Res.cs : added new class.
1731 2005-04-20 Jordi Mas i Hernandez <jordi@ximian.com>
1733 * DataViewManager.cs: implements TypedList.GetListName used in SWF
1735 2005-04-19 Atsushi Enomoto <atsushi@ximian.com>
1737 * DataRowView.cs : indexer should access to DataRow with proper
1738 DataRowVersion. Fixed bug #74650.
1740 2005-04-18 Sureshkumar T <tsureshkumar@novell.com>
1742 * DataRow.cs: if there are no mapping fields, fill with default
1745 2005-04-17 Atsushi Enomoto <atsushi@ximian.com>
1747 * DataView.cs : Delete() should not try to remove row twice.
1750 2005-04-13 Atsushi Enomoto <atsushi@ximian.com>
1752 * DataTable.cs : Use GetRowType() for the base of the returning array
1753 type of Select(). Fix by Gerhard Rittweger.
1754 * CustomDataClassGenerator.cs : Fixed slightly harmless wrong code.
1756 2005-04-13 Atsushi Enomoto <atsushi@ximian.com>
1758 * CustomDataClassGenerator.cs : custom relation was not added to
1759 Relations property. The second entry of bug #69276 was fixed.
1760 Patch by Daniel Rodriguez.
1762 2005-04-07 Lluis Sanchez Gual <lluis@novell.com>
1764 * DataRowCollection.cs: Fix the signature of the Add method
1767 2005-03-16 Atsushi Enomoto <atsushi@ximian.com>
1769 * DataRow.cs : on importing row, it was copying data from incorrect
1770 DataRow. This fixes bug #73288.
1772 2005-03-07 Jackson Harper <jackson@ximian.com>
1774 * DataViewManagerListItemTypeDescriptor.cs: Implement missing
1775 features. These are needed for System.Windows.Forms databinding.
1777 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
1779 * DataColumn.cs : setting negative value on MaxLength of SimpleContent
1780 column is still valid.
1782 2005-02-15 Atsushi Enomoto <atsushi@ximian.com>
1784 * XmlSchemaWriter.cs : new file for outputting XmlSchema.
1785 * DataSet.cs : removed rewritten code in XmlSchemaWriter.
1786 * XmlConstants.cs : added UseCurrentCulture constant.
1788 Use new Xml Schema writer.
1789 Use XmlSchemaDataImporter as we use in DataSet.
1791 2005-02-10 Atsushi Enomoto <atsushi@ximian.com>
1793 * DataView.cs, DataRowView.cs : Fixed bug #72421. CreateChildView()
1794 should target only child rows.
1796 2005-02-03 Atsushi Enomoto <atsushi@ximian.com>
1798 * DataViewManager.cs: misuse of ReadStartElement(string).
1799 * DataRowView.cs : removed some MonoTODO.
1801 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
1802 Ankit Jain <radical@corewars.org>
1804 * DataColumn.cs: throw exception if the column is part of a
1805 relationship, when chaning the data type. Added methods
1806 "GetParentRelation ()" and "GetChildRelation ()" get the relation
1807 which contains the current column
1808 * DataRelation.cs: Added method "Contains (DataColumn)" to check
1809 whether the relation contains the given column.
1811 fixes nunit failure: DataRelationTest.InvalidConstraintException2.
1813 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
1815 * DataColumnCollection.cs: implemented todo item "check for
1816 constraints" when removing columns from table.
1817 * DataRowCollection.cs: Clear (): don't have to throw child key
1818 constraint exception when the child table does not have any
1819 rows. safe to remove parent rows.
1820 * UniqueConstraint.cs: added method "Contains (DataColumn)" to
1821 check whether a column is part of UniqueConstraint.
1822 * ForeignKeyConstraint.cs: added method "Contains (DataColumn,
1823 lookInParent)" to check whether a column is part of foreignkey.
1825 fixes nunit failure: DataTableTest.ClearTest ()
1827 2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
1829 * ForeignKeyConstraint.cs: validating columns: move checking
1830 "tables are of same dataset" before "checking column types".
1832 fixes nunit failure: ForeignKeyConstraint.CtorExceptions.
1834 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1836 * DataViewManager.cs : let's just use StringWriter instead of
1837 XmlTextWriter (to avoid empty tag string mismatch annoyance.)
1838 * DataView.cs : implemented BeginInit() and EndInit(). Don't update
1839 rows during init phase until EndInit() is invoked. During init phase,
1840 just hold properties such as Sort that affects on rows.
1842 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1844 * DataTableCollection.cs : (RemoveAt) just use IndexOutOfRangeException.
1846 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1848 * DataView.cs : DataRowView.EndEdit() raises ItemMoved event.
1849 set_Table clears Sort and RowFilter.
1851 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1854 - Clear() should clear AddNew cache.
1855 - Open() invokes Reset().
1856 - ConstraintCollectionChanged() itself does not invoke OnListChanged().
1857 - Reset() does not Open, Close and Update Index.
1858 - UpdateIndex() can be invoked even if it has no table.
1859 - Reset event is invoked always after actual query to table.
1860 - set_Table should raise PropertyDescriptorChanged event.
1862 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1864 * DataView.cs : ColumnCollectionChanged() is the event invoker (i.e.
1865 when overriden, no column change events are fired).
1867 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1869 * DataView.cs : CancelEditRowView() and DeleteRowView() was incorrectly
1870 checking target tables. They also should raise events if required.
1872 2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
1874 * DataView.cs : simplify code with UnsortedList.
1876 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
1878 * DataView.cs : Mostly reimplemented.
1879 - UpdateIndex() is invoked only when it is required (results in
1880 significant performance improvement).
1881 - Use SortedList and wrapper OptionalSortedList which switches
1882 between SortedList (with Sort) and UnsortedList (without Sort).
1883 - DataView itself now contains two collections for rowviews:
1884 Table rows based pool and AddNew() based cache. Consider those
1885 two collections in every members.
1886 - Reset() does not clear rows. Just invokes UpdateIndex().
1887 - Hook RowDeleting, ColumnChanging and ColumnChanged events in table
1888 which is required to handle state changes.
1889 - Reimplemented Find() and FindRows() because of internal changes.
1891 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
1893 * DataTable.cs : Fixed row comparer. Even if every of the sort target
1894 columns are identical for two rows, they should not be regarded as
1895 the same unless they are Object.ReferenceEquals.
1897 2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
1899 * DataRowCollection.cs : on adding a row, should raise
1900 ChangingDataRow() as well as ChangedDataRow().
1902 2005-01-31 Sureshkumar T <tsureshkumar@novell.com>
1904 * DataRow.cs: SetParentRow (): use relation.ParentColumns &
1905 relation.ChildColumns instead of relation.ChildKeyConstraint.*
1906 because createConstrains flag may be false when creating data
1907 relations. Hack along with Ankit Jain.
1909 2005-01-31 Atsushi Enomoto <atsushi@ximian.com>
1911 * DataView.cs :some interface implementations.
1913 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1915 * DataView.cs : Add to table only when the row is not in the table.
1917 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1919 * DataView.cs : implemented FindRows() (btw we should not use
1920 DataTable since there are detached rows by AddNew().)
1922 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1925 Code cleanup: privatify some members, remove unused methods.
1926 Some event-based invocation methods should not raise NotImplemented.
1928 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1930 * DataSet.cs : ReadXml() became closer to MS behavior, being hacky.
1932 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1934 * XmlSchemaDataImporter.cs : empty element is not regarded as a column.
1936 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1938 * UniqueConstraint.cs : mostly reverted the previous patch + check
1939 IsPrimaryKey before validation.
1941 2005-01-28 Atsushi Enomoto <atsushi@ximian.com>
1943 * DataView.cs : Fixed duplicate insertion to Hashtable.
1944 * UniqueConstraint.cs : Unique constrained pair of columns could be
1947 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1950 Don't do anything for Sort/ApplyDefaultSort/RowFilter/RowStateFilter
1951 when the same value is being set.
1952 Examined UpdateIndex() and marked FIXME where MS does not invoke it.
1953 Removed unused OnColumnChanged().
1954 Now store rowViewPool and reuse DataRowView objects.
1955 Optimized UpdateIndex() - avoid ArrayList. Avoid Haashtable.Rehash().
1957 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1959 * DataViewSettings.cs : no MonoTODO anymore.
1960 * DataViewManager.cs : pass itself to new DataView() (new ctor).
1961 * DataRowView.cs : GetHashCode() returns its Row's hash.
1962 * DataTablePropertyDescriptor.cs : use new ctor().
1963 * DataView.cs : added new ctor()s that accept DataViewManager.
1965 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1967 * DataView.cs, DataRowView.cs : AddNew() should not add the row to table
1968 (it is still detached). So handle those rows differntly.
1969 CancelEdit(), EndEdit() and Delete() propagates those events to
1970 DataView (and handle row collection).
1971 Eliminate "throw new Exception()".
1972 Don't catch all the exception thrown in ListChanged event.
1973 * DataTable.cs : made RowSorter as internal and use it in DataView.
1974 no need to pass DataRow[] to .ctor().
1976 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1978 * DataTable.cs : don't create DefaultView unless it is required. It
1979 significantly improves performance. (i.e. DataView perf. is sick ;-)
1981 2005-01-27 Atsushi Enomoto <atsushi@ximian.com>
1983 * DataViewSetting.cs,
1984 DataViewSettingCollection.cs,
1985 DataViewManager.cs : implemented basic members.
1987 2005-01-26 Atsushi Enomoto <atsushi@ximian.com>
1989 * Node.cs, DataColumnPropertyDescriptor.cs, DataTable.cs :
1990 Eliminate "throw new Exception".
1992 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1994 * DataRow.cs : (set_Item) RowNotInTableExeption check should be done
1995 regardless of index existence.
1997 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
1999 * DataTable.cs : use new IExpression.EvalBoolean() to avoid extraneous
2002 2005-01-25 Sureshkumar T <tsureshkumar@novell.com>
2004 * DataTable.cs: ImportRow :Do not add to rows collection if the
2005 import row is in detached state.
2007 2005-01-25 Sureshkumar T <tsureshkumar@novell.com>
2009 * DataRow.cs: CopyValuesToRow : set the column value with the
2010 default version of the given row.
2011 * DataTable.cs: ImportRow: Copy values before adding row.
2012 * DataSet.cs: AddChangedRow: Add the row to the table after
2015 Fixes bug #67317. Patch by Ankit Jain.
2017 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
2019 * DataRowView.cs : Fixed IsEdit to reflect correct status of DataRow.
2020 * DataRow.cs : Expose editing status internally.
2022 2005-01-25 Atsushi Enomoto <atsushi@ximian.com>
2024 * DataView.cs : missing attributes.
2026 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
2028 * DataRowView.cs : implemented CreateChildView().
2030 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
2032 * DataTable.cs, DataView.cs :
2033 Optimized DataView to compile only once RowFilter and Sort when
2034 those properties are set. To make it possible, extracted
2035 SortableColumn out of DataTable and added internal DataTable.Select()
2036 that accepts precompiled IExpression and SortableColumns[].
2038 2005-01-24 Atsushi Enomoto <atsushi@ximian.com>
2040 * DataColumn.cs : set_MaxLength is not allowed when it is mapped to
2041 SimpleContent. (However, it is weird but it never fails when we set
2042 ColumnMapping = MappingType.SimpleContent when we fhave MaxLength.)
2044 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
2046 * DataRow.cs : more Current -> Default fixes. Check if it should throw
2047 VersionNotFoundException. Patch by Ankit Jain.
2049 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
2051 * DataRow.cs : Default selects the right version for the current
2052 state of the row. Current is not always available. Also change
2053 that for GetParentRow(). Patch by Ankit Jain.
2055 2005-01-21 Atsushi Enomoto <atsushi@ximian.com>
2057 * DataTable.cs : CopyColumn() should copy AutoIncrement after
2058 DefaultValue, or it will raise an error in some cases.
2060 2005-01-20 Atsushi Enomoto <atsushi@ximian.com>
2062 * ConstraintCollection.cs : Add() should throw ArgumentException when
2063 the argument constraint fails validation.
2064 DataTable.cs : set_PrimaryKey should throw ArgumentException when
2065 the argument contains constraints which fail validation.
2067 2005-01-19 Sureshkumar T <tsureshkumar@novell.com>
2069 * DataRelationCollection.cs:
2071 Method Remove : Donot throw exception if DataRelation argument is
2072 null in DataRelationCollection.Remove method.
2074 Method RemoveAt : Exception should be IndexOutOfRangeException if
2075 row index is not in list range.
2077 Fixes nunit failures DataRelationCollection.Remove and
2078 DataRelationCollection.RemoveAt.
2080 2005-01-19 Sureshkumar T <tsureshkumar@novell.com>
2082 * ConstraintCollection.cs: Donot throw exception if constraints
2083 are null in AddRange method. Check for null before using the
2088 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
2090 * XmlDataInferenceLoader.cs,
2091 XmlDataReader.cs : Check if the XmlReader (node) represents DataSet
2092 or a table, reusing code block in XmlDataInferenceLoader.
2093 This fixes bug #60118.
2095 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
2097 * XmlDiffLoader.cs : Ankit Jain <radical@imt.ac.in> has a conflicting
2098 patches and some good catches. Some attributes should be skipped,
2099 and loaded value must be typed.
2101 2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
2104 XmlDataInferenceLoader.cs,
2105 XmlDataReader.cs : use common const for http://www.w3.org/2000/xmlns/.
2106 * XmlDiffLoader.cs : It was not handling attributes. Fixed bug #70961.
2108 2005-01-18 Sureshkumar T <tsureshkumar@novell.com>
2110 Fix for bug #66838. This patch is submitted by "Ankit Jain"
2111 <radical@corewars.org> and refactored.
2113 * DataRow.cs: Allows to set a parent row even if the row is in
2116 * DataRelation.cs: method "UpdateConstraints" is added to check
2117 and create missing keys when adding a relation. This is refactored
2118 approach from DataRelationCollection.Add method.
2120 * DataRelationCollection.cs: AddCore methods of all relation types
2121 are synchronized. A Check for existing constraints is
2122 done. Relation is added to the list only if all checks are passed.
2124 2004-01-18 Atsushi Enomoto <atsushi@ximian.com>
2126 * DataColumnCollection.cs : Clear() throws ArgumentException that
2127 wraps thrown innerException.
2128 * XmlSchemaDataImporter.cs : removed FIXMEs.
2130 2004-01-12 Atsushi Enomoto <atsushi@ximian.com>
2132 * DataSet.cs : When serializing DataTable, BuildSchema() is passed
2133 null relation collections.
2134 Quick fix for XmlSerializer deserialization. It does not require
2135 XML Schema included.
2137 2004-01-11 Atsushi Enomoto <atsushi@ximian.com>
2140 CustomDataClassGenerator.cs :
2141 In DataSet class, IXmlSerializable.GetSchema() returns null.
2142 In strongly-typed class, it returns schema.
2144 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
2146 * XmlDataInferenceLoader.cs : test driver class should be excluded.
2148 2004-12-01 Miguel de Icaza <miguel@ximian.com>
2150 * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
2153 2004-11-10 Atsushi Enomoto <atsushi@ximian.com>
2155 * CustomDataClassGenerator.cs : generated foreign key constraint
2156 construction code was creating empty child columns and thus it
2157 was invalid. This fixes bug #69276 (patch by Martin Voelkle).
2159 2004-11-02 Atsushi Enomoto <atsushi@ximian.com>
2161 * CustomDataClassGenerator.cs : custom DataTable ctor should call
2162 InitializeFields(), and those DataColumns created by that method
2163 should take data type. This should fix bug #68972.
2165 2004-10-15 Atsushi Enomoto <atsushi@ximian.com>
2167 * DataSet.cs : Also clear UnhandledAttributes ArrayList before
2168 generating next attribute column schema. This fixes bug #68432.
2170 2004-10-14 Umadevi S <sumadevi@novell.com>
2171 * DataTable.cs : Corrected the Clone method to use Activator.CreateInstance so that the
2172 correct subclass is returned. This fixes bug #67631
2174 2004-10-14 Umadevi S <sumadevi@novell.com>
2175 * DataSet.cs : Corrected the Clone method to use Activator.CreateInstance so that the
2176 correct subclass is returned. This fixes bug #67627
2178 2004-10-13 Atsushi Enomoto <atsushi@ximian.com>
2180 * DataSet.cs : clear UnhandledAttributes ArrayList before generating
2181 next element column schema. This fixes bug #68256.
2183 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
2185 * DataSet.cs : now xs:schema contains xmlns="".
2186 This fixes bug #68008.
2188 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
2190 * DataSet.cs : DBNull attribute column should not be written as
2191 empty attribute. This fixes bug #68007.
2193 2004-10-12 Atsushi Enomoto <atsushi@ximian.com>
2195 * DataSet.cs, XmlConstant.cs, XmlSchemaDataImporter.cs:
2196 DataColumn.ReadOnly was not handled. This fixes bug #68005.
2197 Attribute defaultValue was not handled too.
2199 2004-10-07 Atsushi Enomoto <atsushi@ximian.com>
2202 - When AllowDBNull is false on attribute DataColumn, its schema
2203 should contain use="required". This fixes bug #66792.
2204 - If MaxLength is set on attribute DataColumn, the mapped schema
2205 type should contain maxLength facet. This fixes bug #66793.
2207 2004-10-04 Atsushi Enomoto <atsushi@ximian.com>
2209 * DataSet.cs : For a row, when a relation is not nested, then it is
2210 still output target since it won't be written as a child of its
2211 parent. It fixes bug #66379.
2213 2004-10-03 Atsushi Enomoto <atsushi@ximian.com>
2215 * DataSet.cs : Attribute constraint field XPath must be written as
2216 @blah. This fixes bug #66366.
2218 2004-09-28 Umadevi S <sumadevi@novell.com>
2219 * DataRow.cs - checked for Enforceconstraints, while using indices to search for related rows
2221 2004-09-24 Sureshkumar T <tsureshkumar@novell.com>
2223 * DataSet.cs : Don't check constraints for dataset clear
2224 * DataRowCollection.cs : check for EnforceConstraints flag
2225 before checking foriegn key constraints in Clear method
2226 * DataTable.cs : Redundant checking removed in Clear method as it is
2227 checked in DataRowCollection.Clear method.
2230 2004-09-19 Sureshkumar T <tsureshkumar@novell.com>
2231 * DataRow.cs : while deserialization of dataset, adding a current row precedes the original row.
2232 hence, adding a row cache is necessary if the original row happens to be current.
2235 2004-08-23 Martin Baulig <martin@ximian.com>
2237 * XmlDataInferenceLoader.cs (Driver): Make this class internal,
2240 2004-08-18 Umadevi S <sumadevi@novell.com>
2241 * DataView.cs - Completed most of the event handling.
2242 Thanks to Punit Todi <punit_todi@da-iict.org> for implementing most of it.
2243 Thanks to Boris Kirzner <borisk@mainsoft.com> for commenting and suggesting changes to the implementation.
2244 * DataTable.cs - Changed Access modifiers of class/methods since it was used by DataView.
2246 2004-08-06 Atsushi Enomoto <atsushi@ximian.com>
2248 * DataSet.cs : DataSet's ExtendedProperties were not XmlConverted.
2250 2004-08-05 Atsushi Enomoto <atsushi@ximian.com>
2252 * XmlConstants.cs : Added constants for "msprop" support.
2253 * DataSet.cs : ExtendedProperties should be written in the schema.
2254 This fixes bug #61233.
2256 2004-07-27 Atsushi Enomoto <atsushi@ximian.com>
2258 * DataSet.cs : on serialization to XmlWriter, XmlConvert should be
2259 used. There were also some culture dependency problems to write int.
2261 2004-06-27 Atsushi Enomoto <atsushi@ximian.com>
2263 * XmlDataInferenceLoader.cs : It was not always filling relation
2264 child table information correctly. This fixes bug #60742.
2266 2004-06-23 Umadevi S <sumadevi@novell.com>
2267 * UniqueConstraint.cs :changed a ifdef true to ifdef NET_1_1
2269 2004-06-22 Atsushi Enomoto <atsushi@ximian.com>
2271 * DataSet.cs : Fixed ReadXml(). When ReadMode is ReadSchema and the
2272 schema is inside the document element (as created in XmlWriteMode
2273 .WriteSchema), it should read schema from that non-document element.
2274 This fixes one case reported in bug #60470.
2276 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
2278 * XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
2279 inference target. For bug #60470. (MS does not support schema
2280 document inference and results in unconsistent dataset structure.)
2282 2004-06-20 Atsushi Enomoto <atsushi@ximian.com>
2284 * DataTableCollection.cs : reset the table's DataSet to null when
2285 removing a table from this collection.
2286 * DataTable.cs : When Namespace is not specified explicitly, its
2287 Namespace property reflects DataSet's Namespace if exist.
2288 This fixes bug #60469.
2290 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
2292 * DBConcurrentcyException.cs: CRLF to LF
2293 * DataViewSetting.cs: CRLF to LF
2295 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
2297 * DataViewSetting.cs: renamed fields to match MS.NET
2299 2004-06-18 Gert Driesen <drieseng@users.sourceforge.net>
2301 * DBConcurrencyException.cs: fixed serialization compatibility with
2304 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2306 * ChangeLog : Fix for misspelled words.
2308 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2310 * DataRowCollection.cs : Removed onColumnRemoved since it is not in use.
2312 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2315 - Table stores default values for columns in special default values row.
2316 It is allocated once (in NewRow).
2317 - DataTable.Copy rewrited. It works with uninitialized rows for better perfomance.
2318 - OnRemoveColumn has nothing to perform by now.
2320 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2323 - Changed access of original, current and proposed indexes to internal.
2324 - ColumnErrors reviewed : now column errors stored in ArrayList and allocated on demand only.
2325 - Added new DataRow constructor that creates uninitialized DataRow (used in DataTable.Copy).
2326 - Use DataContainer.CopyValue and default values row for faster set of default values in row.
2327 - SetColumnValue become CheckValue. Now it does not changes the value, but only checks for its correctness.
2328 Care about Null and DBNull values is now in DataContainer.
2329 - Use DataColumn.AutoIncrementValue and GetInt64 for faster set of autoincrement value.
2330 - Use Datacontainer.CopyValue and default values row to speed up CheckChildRows.
2331 - Fix in CopyState : clone column errors.
2332 - Removed CollectionChanged and onColumnRemoved since we are not using both of them anymore.
2334 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2336 * DataColumnCollection.cs :
2337 - Fix : Add() now delegates to Add(DataColumn).
2338 - autoIncrement list holds DataColumn objects, and not just column names.
2340 2004-06-17 Boris Kirzner <borisk@mainsoft.com>
2343 - AutoIncrementValue fixes. Now AutoIncrement uses DataContainer.GetInt64 to avoid boxing.
2344 - DefaultValue fixes. Default value from now on is also stored in special record in
2345 DataTable, so we're able to set default value for the column faster (typed).
2348 2004-06-15 Atsushi Enomoto <atsushi@ximian.com>
2350 * DataSet.cs : children of non-root rows were not properly written.
2353 2004-06-10 Umadevi S <sumadevi@novell.com>
2354 * DataRelation.cs - Constructor
2355 - The datatypes of the parentcolumn(s) and the childcolumn(s) should match
2357 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
2359 * XmlSchemaDataImporter.cs : We should fill Namespace for DataTable.
2361 2004-06-04 Gert Driesen <drieseng@users.sourceforge.net>
2363 * Constraint.cs: marked methods internal to fix public API
2364 * ConstraintCollection.cs: to fix public API, use
2365 DataTable.fInitInProgress to check whether initialization
2366 of DataTable is in progress
2367 * DataColumn.cs: added stubs for missing methods
2368 * DataRowBuilder.cs: marked Table property internal to
2370 * DataSet.cs: removed extra empty destructor, marked
2371 OnMergeFailed internal to fix public API
2372 * DataTable.cs: use fInitInProgress field to hold init
2373 status, to match MS.NET
2374 * DataView.cs: added missing attributes on IsOpen
2376 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
2378 * DataSet.cs : Use NameTable.Get() before calling LookupNamespace()
2379 in XmlNamespaceManager.
2381 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
2383 * DataSet.cs : complex table content child was not properly added
2384 when it is the only one child in the parent table. Fixed bug #53959.
2386 2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
2387 * DataTableTypeConverter.cs: added
2388 * DataView.cs: added missing attribute on Table property
2389 * DataViewManager.cs: moved attribute to correct property
2390 * UniqueConstraint.cs: removed extra ReadOnly attribute from
2391 IsPrimaryKey property
2393 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
2395 * DataRow.cs : ColumnsChanged event is not required in .ctor().
2397 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
2399 * XmlDataReader.cs : type change is required before setting value
2402 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
2404 * DataSet.cs : Loop-break of the last fix was incorrect.
2406 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
2408 * DataSet.cs : When a row has no parent row but the table has parent
2409 relation(s), that row had been always ignored.
2411 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
2413 * XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
2414 rejected same-named tables in different hierarchy. Thanks to Boris.
2416 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
2418 * XmlDiffLoader.cs : Added some Skip() that is required not to go to
2419 infinite loop. Thanks to Boris for this fix.
2421 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
2423 * XmlDataInferenceLoader.cs : XmlSchema elements should not be infered.
2424 Thanks to Boris for this fix.
2426 2004-05-30 Atsushi Enomoto <atsushi@ximian.com>
2428 * DataTable.cs : serialization .ctor() should use XmlReadMode.DiffGram
2429 for ReadXml(). Thanks to Boris.
2431 2004-05-27 Boris Kirzner <borisk@mainsoft.com>
2433 - CheckReadOnlyStatus : use typed (and faster comparing).
2434 - EndEdit : bug fix - do not dispose record if it holds original version.
2435 - SetValuesFromDataRecord : Take care about autoincrement columns.
2438 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2440 * MergeManager.cs : don't output debug message to Console.
2442 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2444 * XmlDataInferenceLoader.cs : Namespace are not imported to the table
2445 structure. Thanks to Boris Kirzner for the fix.
2447 2004-05-27 Umadevi S <sumadevi@novell.com>
2448 * DataRelationCollection.cs - fixed nunit test errors
2450 2004-05-27 Umadevi S <sumadevi@novell.com>
2451 * DataTableCollection.cs - fixed nunit test errors
2453 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
2455 * DataColumnCollection.cs : NullReferenceException was thrown when
2456 the table was not found.
2457 * DataRowCollection.cs :
2458 Find() just returns null for null value under MS.NET 1.1.
2459 RemoveAt() should also avoid to call AcceptChanges() like Remove().
2460 * UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
2461 directly under MS.NET (for nunit test).
2463 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
2465 * XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf()
2466 caused problem on qualified name to get schema Field name.
2468 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
2470 * XmlDataReader.cs : Now data reader is namespace aware in all places.
2471 When table's namespace is different, it entered to infinite loop.
2473 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
2474 * MergeManager.cs : AdjustSchema now updates by reference new created table,
2475 so in Merge you do not need to lookup for it (were unable to do this for unnamed tables).
2478 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
2480 * DataColumn.cs : In set_Item[int] - if autoincrement, adjust next autoincrement value.
2481 * DataColumnCollection.cs : fixed parantethes.
2483 - AcceptChanges : do nothing if row state is unchanged.
2484 - GetChildRows, GetParentRows : bug fix (use correct index).
2485 * DataRowCollection.cs : bug fix (compare all row's values).
2486 * DataTable.cs : bug fix (use correct row version).
2488 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
2490 * XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
2491 When content type is Mixed, text column is not required (it is
2492 required only when the complex type has no particle).
2493 "Repeated element" column is also created (considering maxOccurs=0
2494 and complex content extension).
2496 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
2498 * XmlSchemaDataImporter.cs : XmlSchemaGroupBase was not handled
2501 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
2503 * XmlSchemaDataImporter.cs : Removed unused code and extra MonoTODO.
2504 Fixed relation inference to consider attribute XPath.
2506 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
2508 * DataColumn.cs : Fixed set_Item[int]. Convert.ToInt64(DBNull.Value)
2511 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
2513 * DataColumn.cs - removed default member attribute.
2515 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
2518 DataColumnChangeEventArgs.cs,
2519 DataColumnCollection.cs,
2521 DataRowCollection.cs,
2523 Index.cs : Data storage in the row is redesigned. Now data is stored in
2524 typed containers inside DataColumn. Row holds its versions as indexes inside
2525 each of data container, accessed through the row that holds it.
2527 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
2529 * UniqueConstraint.cs - added comment.
2531 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
2533 * XmlDataInferenceLoader.cs : Don't add already-existing DataTable to
2536 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
2539 XmlDataInferenceLoader.cs,
2541 XmlSchemaDataImporter.cs : XmlDecode every local name to read and
2542 XmlEncode every local name to write. This should fix bug #58268.
2544 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
2546 * DataSet.cs : Implemented ignored namespaces in InferXmlSchema().
2547 Supported repeated elements. Removed MonoTODOs.
2548 * XmlDataInferenceLoader.cs : Design change to support ignored
2549 namespace and repeated elements.
2550 * XmlSchemaDataImporter.cs : Added mapping support classes.
2552 2004-05-15 Atsushi Enomoto <atsushi@ximian.com>
2554 * CustomDataClassGenerator.cs :
2555 Added property parent "[foo]Row" and children "Get[foo]Row" support
2556 for custom DataRow classes.
2557 Fixed DataColumn property accessibility (public --> internal).
2559 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
2561 * CustomDataClassGenerator.cs :
2562 - Put classes inside custom DataSet class.
2563 - Added automatic DataRelation creation support.
2564 - Added Constraints creation support. That is done separate from
2565 relations, since they might be independently created.
2566 - Added non-MS public DataRelation fields.
2567 - Removed extraneous "DataRelation type generation" code.
2568 - Fixed custom_dataset.Initialize() not to create "c" field that
2569 was created more than once.
2570 - Implemented AddxxxRow() that takes parameters for every column.
2572 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
2574 * XmlSchemaDataImporter.cs : When primary key is used more than once,
2575 DataRelation borked because of empty parent column name.
2577 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
2579 * XmlSchemaDataImporter.cs : When Creating constraints with related
2580 to DataRelation creation, also set PrimaryKey to the parent table.
2582 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
2584 * XmlSchemaDataImporter.cs :
2585 Design change to add indirect table and relation structures.
2586 Support for "relation" annotation for local element.
2587 Support for repeatable simple element column (maxOccurs > 1).
2588 Fixed handling of Nested property on DataRelation (for globally
2589 annotated relation, Nested is false).
2591 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
2593 * DataRow.cs : Added DataElement property to avoid storing every row-
2594 element mapping. It stored even for nodes that should be removed.
2596 2004-05-13 Umadevi S <sumadevi@novell.com>
2598 * RelationshipConverter.cs - Stubbed this class
2599 * DataRelation.cs - added TypeConveterAttribute
2601 2004-05-13 Umadevi S <sumadevi@novell.com>
2603 * DataColumnCollection.cs - Added ResDescriptionAttribute
2604 * DataRelation.cs - Added TypeConverterAttribute
2605 * DataRelationCollection.cs - Added DefaultPropertyAttribute
2606 * DataRowView.cs - Added GetHashCode method with a TODO tag
2607 * DataSet.cs - Added DesignerAttribute
2608 * DataView.cs - Added DesignerAttribute
2609 * DataViewManager.cs - Added DesignerAttribute
2610 * DataViewSetting.cs - Added TypeConverterAttribute
2612 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
2614 * DataRow.cs : Added XmlDataElement initialization code.
2616 2004-05-11 Atsushi Enomoto <atsushi@ximian.com>
2618 * XmlDataInferenceLoader.cs :
2619 It now requires XmlDocument as input. Improved identification of
2620 DataSet element. Removed extra lines.
2621 Moved boresome design notes to bottom of the source and
2622 added standalone runnable driver (not included on build).
2624 Update with related to the change above.
2625 WriteXml() should call Flush() after writing. This fixes bug #58327.
2626 * XmlSchemaDataImporter.cs :
2627 Improved indentification of DataSet element.
2629 2004-05-11 Gert Driesen (drieseng@users.sourceforge.net)
2630 * DataTable: marked initStatus enum internal
2632 2004-05-09 Gert Driesen (drieseng@users.sourceforge.net)
2633 * DataTable.cs: removed TypeConverterAttribute, marked RowsExist
2635 * DataRowView.cs: removed extra Error property
2636 * DataRow.cs: reduced accessibility of CollectionChanged method
2638 * DataColumnPropertyDescriptor.cs: made class internal
2639 * DataColumn.cs: removed extra TypeConvertorAttribute
2640 * ConstrainCollection.cs: marked PostEndInit method internal
2642 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
2645 In WriteXmlSchema(), when complex type contains simple type content
2646 attributes must not added to XmlSchemaComplexType directly. It
2647 causes schema compilation error.
2648 DataRelation should not be output when related columns are hidden.
2650 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
2652 * XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
2653 also expected to do ReadXml(), but I will remove that feature and
2654 support column reordering).
2655 * XmlSchemaDataImporter.cs : Always initialize dataset name.
2656 Always set Nested and primary key for parent table.
2657 * XmlDataReader.cs : Now it is used.
2658 Top level element might not match to dataset name nor any table
2659 name, but still possible to read content tables.
2660 Handle empty element correctly in some places.
2661 Handle Fragment mode (read up XmlReader to the end).
2662 * DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
2663 XmlDataInferenceLoader and XmlDataReader.
2665 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
2668 Eliminated CRLF injection.
2669 More clear message in Clear().
2670 Updates reflecting XmlSchemaDataImporter change.
2671 Added duplicate check for XmlSerializerNamespaces in BuildSchema().
2672 Don't use xmlns attribute for UnhandledAttributes (its not mandatory
2673 but that depends on different behavior from ms.net).
2674 Set locale also for DataTable.
2675 Add xs:element only when target namespace matches to the
2676 element's namespace. Otherwise, add xs:import for external namespace.
2677 Put xs:sequence for dataset element's particle _only when_ actual
2680 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
2682 * XmlDataReader.cs : Added. This class will work better when our
2683 schema inference and schema read engine gets improved. (It contains
2684 standalone testable Driver class.)
2686 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
2688 * ForeignKeyConstraint.cs : Check step change. Existence then column
2689 validity. just for tests.
2690 * XmlSchemaDataImporter.cs : code simplification. reduced extraneous
2693 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2695 * DataSet.cs : Ignore empty content only when output type is diffgram.
2697 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2699 * CustomDataClassGenerator.cs : Modified that DataSet contains each
2700 DataTable field so that each table property can access them directly.
2701 (plus, modified standalone code driver code: shouldn't affect)
2703 2004-05-05 Boris Kirzner <borisk@mainsoft.com>
2705 * DataView.cs , DataRowView.cs : Added implementation to basic methods and properties.
2707 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2709 * XmlSchemaDataImporter.cs :
2710 SimpleContent column support.
2711 Annotated relation support.
2712 Top-level element is counted only when its type is complex.
2713 xs:anyType is no longer treated as complex type.
2714 dataset existence is mandatory now.
2715 Improved DataType and DefaultValue support.
2716 Attribute namespace is properly handled now.
2717 Prohibited attribute is now treated as hidden column.
2718 Reject list or union simple type.
2720 Still incomplete 1) to read relationship in some cases, 2) to
2721 determine whether an element is dataset or table, 3) thus to
2722 exclude extraneous column, 4) to remove extraneous *_Id column.
2724 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2727 We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
2728 serialization .ctor() (thus schema read/inference should be easier).
2729 DataRowSorter should consider Table's Locale.
2731 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2733 * DataColumnCollection.cs : We already had AutoIncrementValue(), so
2734 use it instead of duplicating logic.
2736 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
2738 * ConstraintCollection.cs :
2739 Use Table.CaseSensitive and Table.Locale to compare strings.
2740 Duplicate constraint name exception does not occur under .NET 1.1.
2742 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
2744 * XmlSchemaDataImporter.cs: Added little type check.
2746 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
2748 * DataSet.cs: Implemented support for runtime serialization. Fixed support
2749 for xml serialization.
2750 * XmlDiffLoader.cs: Skip diffgram element when it is empty.
2752 2004-04-30 Umadevi S <sumadevi@novell.com>
2753 * DataColumnCollection.cs : Fixed nunit test errors, removed TODOs
2754 * DataTableCollection.cs : Tested and removed TODO
2755 * TypedDataSetGeneratorException.cs : Fixed a couple of TODOs
2757 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
2759 * DataRow.cs : My previous patch unintentionally reverted Boris patch.
2761 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2763 * UniqueConstraint.cs : Constraint columns becaomes unique after adding constraint ifand only if
2764 constraint is defined on single column.
2766 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
2768 * DataRowCollection.cs : .NET 1.1 throws InvalidConstaintException,
2769 not ArgumentException (maybe changed after 1.1).
2771 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
2773 * DataRow.cs : When Column was added and it was AutoIncrement column,
2774 it extended the item object array incorrectly.
2775 (Plus tiny comment and incorrect indentation fix.)
2777 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2779 * MergeManager.cs : added ( incomplete yet ) support for merging DataSet schema.
2781 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2783 * DataRow.cs : Bug fix in CopyValuesToRow().
2785 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
2787 * UniqueConstraint.cs : There is no reason to mark constraint's columns as unique, because
2788 each of the columns should not be unique, but only all the constraint's columns together.
2790 2004-04-28 Boris Kirzner <borisk@mainsoft.com>
2793 - Added using of list of autoIncrement columns
2794 - SetColumnValue receives also DataColumn to avoid duplicate lookup in DatacolumnCollection
2795 - Fix in CheckNullConstraints
2796 - Fix in this[] and HasVersion() : when evaluating an expression deleted rows values can be accessed.
2797 - Fix in SetColumnValue() , added CanAccess() method to avoid case of accessing internal array values berore it actually allocated.
2798 - Added onColumnRemoved() method to threat column removal accurately.
2800 * DataRowCollection.cs :
2801 - Added using of DataRow._nullConstraintViolation (for perfomance fix in EndLoadData())
2802 - Added method onColumnRemoved() - calls each row's onColumnRemoved() (to ensure column removal is treated accurately)
2805 - Call DataRowCollection.onColumnRemoved() in OnRemoveColumn() (to ensure column removal is treated accurately)
2807 * DataColumnCollection.cs :
2808 - Perfomance fixes :
2809 - collection holds a list of its autoIncrement columns (avoids unnesessary lookup through whole collection)
2810 - collection holds mapping from column names to DataColumn objects (avoids lookup through whole collection).
2811 - automatic creation of column names rewrited (bug fixes + perfomance improvement)
2814 - Uses autoincrement list of a table
2816 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2818 * XmlDataLoader.cs : Even when it should ignore schema, it was
2820 * XmlSchemaDataImporter.cs : DataRelation creation support.
2821 Improved "DataSet" element handing. When attributes are on the
2822 element, it is not a "DataSet" element.
2823 Fixed parent key column name.
2824 Unique name creation is not required. Just raise an error.
2825 Fill facet also for attribute types.
2827 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2829 * DataRow.cs : Null check for CheckReadOnlyStatus() and
2830 CheckNullConstraints(), with some coding guideline fixes.
2831 Type check should be done by Type instance comparison.
2833 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2835 * DataColumnCollection.cs : When add a column to the collection, fill
2836 auto-increment column.
2838 2004-04-26 Boris Kirzner <borisk@mainsoft.com>
2840 * DataColumn.cs : Small perfomance fix (avoid unnesessary string concatenation).
2842 2004-04-26 Atsushi Enomoto <atsushi@ximian.com>
2844 * CustomDataClassGenerator.cs : Added.
2845 * TypedDataSetGenerator.cs : Implemented Generate().
2846 Changed GenerateIdName() to call CustomDataClassGenerator.MakeSafeName
2847 * XmlSchemaDataImporter.cs : Table Locale should be supplied.
2849 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
2851 * DataTable.cs : Small perfomance fix (avoid unnesessary string concatenation).
2853 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
2855 * Constraint.cs : Small perfomance fix (avoid unnesessary string concatenation).
2857 2004-04-23 Umadevi S (sumadevi@novell.com)
2858 * DataRow.cs: Checked BeginEdit,EndEdit,CancelEdit and Delete methods
2859 - Added error handling to the above methods
2861 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
2863 * DataSet.cs : Data should be read when mode is IgnoreSchema (well,
2864 the support is incomplete yet).
2865 * XmlDataLoader.cs :
2866 Reverted ReadModeSchema() argument change. XmlReadMode would be
2867 useful to handle IgnoreSchema.
2868 Don't overwrite DataSetName when mode is not such kind.
2869 Set Prefix and Namespace as well as DataSetName.
2870 AllowDBNull looks set false by default for element column.
2871 Set unique constraint as primary key when infering the table schema.
2873 2004-04-21 Atsushi Enomoto <atsushi@ximian.com>
2876 Never set null string for Prefix and Namespace.
2877 In InferXmlSchema() when null XmlReader is passed, just do nothing.
2878 In WriteXmlSchema(string), earlier try block.
2879 In BuildSchema(), try to add serialization namespaces for each
2880 namespaces in DataSet/DataTable/DataColumn.
2881 Removed namespace argument from WriteColumnAsElement() and don't
2882 overwrite when namespace is "". This fixes bug #57330.
2883 * DataColumn.cs : For Namespace and Prefix, never set null.
2885 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2887 * XmlSchemaMapper.cs : Check for not null unique constraint in ReadXmlSchemaKeyref()
2888 before creating and adding foreign key constraint and relation.
2890 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2892 * MergeManager.cs : In AdjustSchema() source table clone should be added
2893 and not the table itself.
2895 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2898 - CaseSensitive : Additional fix (removed unnesessary assignment).
2899 - CopyProperties : Do not try to copy ExtendedProperties if the collection is empty.
2901 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
2903 * DataTable.cs : Ensure that DataSet property is not null before using it in Clear().
2905 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
2908 - EndLoadData() : perfomance fix in case of null constraint violation
2909 during data load (also in DataRow.cs).
2910 - CaseSensitive : If DataTable belongs to DataSet it should always use
2911 DataSet.CaseSensitive untill explicitly changed.
2912 - CopyProperties() : do not try to copy ExtendedProperties if the collection is empty.
2915 - Pefromance fix in case of null constraint violation
2916 during data load (also in DataTable.cs).
2917 - CollectionChanged() : use correct column number after new DataColumn was added
2918 (differs in case some DataColumn was previosly removed).
2919 - EndEdit() - throw away proposed values only after CheckChildRows() complete.
2921 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
2923 * DataColumnCollection.cs : Since unique constraint is added now
2924 in DataColumn.SetTable() the additional creation of constraint in
2925 DataColumnCollection.Add() is redundant and causes exception - fixed.
2927 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
2929 * XmlDataLoader.cs : Added "never add data rows" mode.
2930 Removed unused code. However, it is temporary fixes to unify
2931 ReadXml() and InferXmlSchema().
2932 * DataSet.cs : Implemented InferXmlSchema(), though it is incomplete.
2934 I'll create another XmlDataLoader since there are many problems
2935 such that 1) it is too waste to read the entire xml into an
2936 XmlDocument, 2) it does not handle attributes correctly, and 3) it
2937 must handle "ignored namespaces".
2939 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
2941 * Added XmlSchemaDataImporter.cs (new schema reader).
2942 * DataSet.cs : Use XmlSchemaDataImporter (right now for DataSet only)
2943 for ReadXmlSchema().
2944 Let schema reading work to ReadXmlSchema().
2945 Don't return ReadSchema when argument read mode was DiffGram.
2947 2004-04-15 Umadevi S (sumadevi@novell.com)
2948 * Updated Clone/Copy methods in DataSet along with Testcase
2949 * ForeignKeyConstraint.cs - special ctor implemented
2950 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).
2951 * Changes in ConstraintCollection.cs for the above
2952 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.
2955 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
2957 * XmlSchemaMapper.cs : set parent key and foreign key info to
2958 DataRelation when reading refkey constraints.
2959 Supply constraint name for fkey.
2961 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
2963 * XmlDataLoader.cs : Don't overwrite existing DataSetName. When read
2964 mode is Auto, just ignore the schema if there is already schema info.
2965 * DataSet.cs : Similarly ignore schema info for XmlReadMode = Auto.
2967 2004-04-14 Atsushi Enomoto <atsushi@ximian.com>
2970 - In MS output, XML declaration looks to have standalone decl (yes).
2971 - ReadXml(reader) just calls to ReadXml(reader, XmlReadMode.Auto)
2972 - ReadXml(reader, mode)
2973 1) return originally specified mode, instead of (always) Auto.
2974 2) Check empty reader.
2975 3) Check diffgram schema and content separately.
2976 4) When diffgram exists, remaining (the same-level) contents
2978 5) Similar fact should be applied, but somewhat different.
2979 InferSchema and IgnoreSchema just skips, Fragment reads both
2980 schema and content, others just reads schema.
2981 - Removed unused code.
2982 * XmlDataLoader.cs :
2983 - Read() should skip in some ReadMode.
2984 - Don't compare schema element name as case-insensitive (well,
2985 should schemas be checked here?)
2986 - Avoided BuildDocument() not to create confusing DataSet
2988 - Don't add any tables when reader has single element.
2989 * XmlDiffLoader.cs :
2990 When target table was not found, MS.NET doesn't raise an error.
2991 * XmlSchemaMapper.cs :
2992 When XmlSchema.Read() left xml reader at </xs:schema>, read once.
2994 2004-04-13 Atsushi Enomoto <atsushi@ximian.com>
2997 - InferXmlSchema(): Throw explicit NotImplementedException now.
2998 - Don't put XML declaration everywhere. Write just for filename arg.
2999 - xmlns="" should not be written. Maybe WebService problem is
3000 because default namespace is overwritten. This patch will keep
3001 the WS problem away and actually fixes some unit tests (i.e. use
3002 explicit String.Empty for null namespace in WriteStartElement()).
3003 - MoveToContent() should always be called, not only when
3004 LocalName="xml". It will ignore prolog (DTD, PI, comment etc.).
3005 - Even XmlReadMode is DiffGram, reader might not be "diffgram"
3006 element. As to MSDN, diffgram does not contain schema.
3008 2004-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3010 * DataTable.cs: made _initStatus private so that System.Data is CLS
3013 2004-04-13 Umadevi S <sumadevi@novell.com>
3014 * UniqueConstraint.cs:
3015 * ConstraintCollection.cs:
3017 - Implemented a Constructor for UniqueConstraint.cs
3018 - Used EndInit on DataTable to call a delegate which adds the
3019 constraints passed to the most recent call of AddRange().Used
3020 AddRange() on ConstraintCollection to check whether
3021 DataTable.BeginInit has occurred. If yes, save the argument
3022 constraint collection passed, then return. If no, Check whether the
3023 constraints are of type UniqueConstraint and initialized with the
3024 special constructor If yes Initialized the table property of this
3025 UniqueConstraint object with table assosciated with the current
3026 instance of ConstraintCollection class.
3028 2004-04-07 Marek Safar <marek.safar@seznam.cz>
3030 * Constraint.cs: changed ClsCompliant to CLSCompliant, build fix.
3032 2004-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3035 * DataColumnCollection.cs:
3036 * DataRelationCollection.cs:
3037 * DataRowCollection.cs:
3038 * DataTableCollection.cs:
3039 * InternalDataCollectionBase.cs:
3040 * Node.cs: CLS compliance for System.Data. Patch by Gert Driesen.
3043 2004-04-05 Jackson Harper <jackson@ximian.com>
3045 * DataTable.cs: Add rows to the row list if there is no filter.
3047 2004-03-31 Juraj Skripsky <juraj@hotfeet.ch>
3049 * DataColumn.cs : Setting Caption to null sets it to the empty string
3050 (ms.net behaviour, testcase is in DataColumnTest).
3052 * DataRow.cs : Evaluate DataColumn.Expression when such a column's
3055 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
3057 * DataColumn.cs: In Expression setter, set the expression member even if
3058 it is an empty string.
3059 * DataSet.cs: Support serialization of byte[] columns.
3060 * XmlDataLoader.cs: Support deserialization of Guid columns.
3061 Set MappingType.Attribute to columns infered from attributes.
3063 2004-03-29 Juraj Skripsky <juraj@hotfeet.ch>
3065 * ExpressionElements.cs : remove
3066 * DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
3067 Integration of new Mono.Data.SqlExpressions classes used in
3068 DataTable.{Select, Compute}.
3069 Fixes bug #55503 and lots of failures in DataTableTest.cs.
3071 2004-03-28 Juraj Skripsky <juraj@hotfeet.ch>
3073 * Index.cs: Simple fix in ComparePartialRowNonUnique.
3074 This fixes bugs #56129 and #56014.
3076 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
3078 * DataSet.cs: In WriteXml (string filename, XmlWriteMode mode), close the
3079 stream after writing the dataset. This fixes bug #52581.
3080 Also added several writer.Close into finally blocks, so writers are properly
3081 closed in case of an exception.
3083 2004-03-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
3085 * Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
3086 * DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
3087 * ColumnTypeConverter.cs: Added stub
3088 * DefaultValueTypeConverter: Added stub
3089 * ConstraintConverter.cs: Added stub
3091 2004-03-04 Eran Domb <erand@mainsoft.com>
3093 * XmlDataLoader.cs : Xml reading reviewed. Added support for additional xml formats as described
3094 in MS.NET documentation (missing DataSet element etc).
3096 2004-03-04 Eran Domb <erand@mainsoft.com>
3099 * Index.cs : Rollback last changes.
3101 2004-03-03 Atsushi Enomoto <atsushi@ximian.com>
3103 * Index.cs : justa build fix.
3105 2004-03-03 Eran Domb <erand@mainsoft.com>
3108 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint, ConstraintCollection.cs, DataColumn.cs,
3109 DataRow.cs, DataRowCollection.cs, DataSet.cs, DataTable.cs : Changes made for using indexes on tables.
3110 This changes made for performance improvement.
3112 2004-02-08 Eran Domb <erand@mainsoft.com>
3114 * XmlSchemaMapper.cs : Read columns is they were written as SimpleContent or as Attributes.
3116 2004-02-08 Eran Domb <erand@mainsoft.com>
3118 * DataSet.cs: Fix some bugs in ReadXml().
3120 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
3122 * DataSet.cs: Added missing method that broke the build.
3124 2004-02-04 Eran Domb <erand@mainsoft.com>
3126 * DataRowCollection.cs (InsertAt): Add a check for null row. Replace check of IndexOf with RowId for
3128 * DataSet.cs (GetTableSchema) : Add supprot for simple content columns. Change the condition for a case
3129 when all column are attributes (elements count is 0), we still want to add the relations. No relations
3130 can be on simple contents.
3131 (AddUniqueConstraints) Check that the column of the constraint are not hidden.
3132 (AddForeignKeys) Check that the relation has constraints attach to it.
3133 * XmlConstants.cs : Added constant.
3135 2004-02-04 Eran Domb <erand@mainsoft.com>
3137 * DataSet.cs : GetSchemaSerializable() return null and not BuildSchema().
3138 DoWriteXmlSchema calls BuildSchema ().
3140 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
3142 * DataRow.cs: Added SetOriginalValue(), which is used to set the original
3144 * DataRowCollection.cs: In InsertAt(), perform the correct checks and
3146 * DataSet.cs: Fixed method GetChanges(): Parent rows of modified rows must
3147 also be added to the dataset.
3148 In WriteTable(), do not write unchanged rows when writing the original
3149 version of the table.
3150 Added WriteIndividualTableContent(), for writing the contents of a single
3152 Changed BuildSchema and related methods, so it can generate a schema for
3153 any set of tables, not just the tables of the dataset (needed for
3154 single datatable serialization).
3155 * DataTable.cs: Implemented serialization constructor and GetObjectData method.
3156 Also implemented some ReadXmlSchema methods.
3157 * XmlDiffLoader.cs: Read and process the xml document directly from XmlReader,
3158 instead of loading the full dataset in an XmlDocument. It is faster and
3159 saves memory. Also fixed several problems when generating the changes.
3160 * XmlSchemaMapper.cs: Support reading schemas for single tables (used by
3161 table serialization).
3163 2004-02-02 Eran Domb <erand@mainsoft.com>
3165 * DataSet.cs : Add indentation to the xml serialization only if we create the XmlWriter.
3166 Add the namespace attribute even if namespace is an empty string for inteoperability with MS.NET.
3167 * DataTable.cs (NewRow): Create only one DataRowBuilder.
3168 Initiate new row with row id -1.
3169 * DataRow.cs : Add RowId property.
3170 * DataRowBuilder.cs : Add _rowId member.
3171 * DataRowCollection.cs (Add) : Use the RowId property of the new row to check if it is already exists in the collection.
3173 2004-01-26 Eran Domb <erand@mainsoft.com>
3175 * XmlConstants.cs : Added some constants.
3176 * DataColumn.cs : Added a method to retrive AutoIncrement value.
3177 * XmlDataLoader.cs : Set the value of the foriegn key column, according to the value of the
3178 parent table column.
3179 * XmlDiffLoader.cs : Convert the value comming from the xml.
3180 * XmlSchemaMapper.cs (Read) : Set the DataSet namespace.
3181 (ReadXmlSchemaSequence) : Change the logic that decides if this element is a column or a table.
3182 (ReadXmlSchemaElement) : Set the locale of the dataset.
3183 (ReadColumn) : Set the column type. Find if the column is AutoIncrement.
3184 (GetColumnType) : New method to get the column type from the attribute value.
3185 (ReadXmlSchemaUnique) : Improve parsing of XPath. Set the constraint as a PK if needed,
3186 and add the constraint to the table.
3187 (ReadXmlSchemaKeyref) : Improve parsing of XPath. Create the FK constraint and add it to
3189 * DataSet.cs : Improving writing of unique constraints, and foriegn key constraint. Givving them the correct names.
3190 Writing more information to the schema for interoperability with ms.net.
3191 Improve diffgarm writing mode.
3194 2004-01-21 Atsushi Enomoto <atsushi@ximian.com>
3196 * TypedDataSetGenerator.cs : Implemented GenerateIdName().
3198 2004-01-21 Eran Domb <erand@mainsoft.com>
3200 * XmlDataLoader.cs (AddRowToTable) : Give thre new relation correct name.
3201 Do not set the child column to be AutoIncrement.
3202 Create the new column for the relation as MappingType.Hidden so they will not be serialized
3203 when writing the dataset to xml.
3205 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
3207 * Added missing TypedDataSetGenerator.cs.
3209 2004-01-08 Eran Domb <erand@mainsoft.com>
3211 * XmlSchemaMapper.cs : Fix a bug. Check if table already in DataSet before adding it.
3212 * DataSet.cs (ReadXml) : Fix bugs. Read correctly the xml file with XmlReadMode of DiffGram,
3213 InferSchema, ReadSchema and IgnoreSchema.
3214 * XmlDataLoader.cs : All modes use the same logic.
3215 * XmlDiffLoader.cs : Adding BuildXmlDocument method to the class.
3217 2004-01-06 Eran Domb <erand@mainsoft.com>
3219 * DataRelationCollection.cs : Use IndexOf in indexer.
3220 * DataSet.cs : Adding support for WriteXml with diffgram. Code style changes.
3221 * XmlDataLoader.cs : Set the DataSet.enforceConstraints to false before loading the tables.
3222 * XmlDiffLoader.cs : Reading nested tables.
3223 * XmlSchemaMapper.cs : Reading the relation.
3224 * XmlConstants.cs : Adding some constants.
3226 2004-01-05 Jackson Harper <jackson@ximian.com>
3228 * DataView.cs: Set readonly property of property descriptor. This
3231 2004-01-01 Sanjay Gupta <gsanjay@novell.com>
3233 * DataRelationCollection.cs : Fixed incorrect generation of default
3235 * DataSet.cs : Added missing functionality in WriteXml().
3236 * XmlConstants.cs : Added new constants.
3238 2003-12-27 Atsushi Enomoto <atsushi@ximian.com>
3240 * DataSet.cs : Fixed incorrect WriteXml() signature.
3242 2003-12-18 Jackson Harper <jackson@ximian.com>
3244 * DataView.cs: Implement AddNew, Delete, and OnListChanged.
3246 2003-12-17 Atsushi Enomoto <atsushi@ximian.com>
3248 * DataSet.cs, XmlDataLoader.cs : Table name should be encoded before
3249 they take shape of xml. This fixed bug #52240
3251 2003-12-16 Tim Coleman <tim@timcoleman.com>
3252 * KeyRestrictionBehavior.cs:
3253 New stubs added for .NET 1.2
3257 2003-12-08 Eran Domb <erand@mainsoft.com>
3258 * DataColumn.cs (Expression) : Validate the expression.
3260 * DataRelationCollection.cs (IndexOf) : Added new method sensetive to case differences in relation name.
3261 (Contains, IndexOf, this[], Add) : Call new IndexOf when needed.
3263 * DataRow.cs (this[]) : Fix the condition for throwing RowNotInTableException.
3264 (RejectChanges) : Detach row when state was Added.
3265 (CollectionChanged) : Fix a bug.
3267 * ExpressionElement (ValidateExpression) : Fix a bug.
3269 * ForeignKeyConstraint.cs (AssertConstraint) : Added implementation. Check all rows from child table have
3270 a parent row in the parent table.
3271 (_validateColumns) : Fix bugs.
3273 * MergeManager.cs (AdjustSchema) : Fix a bug.
3275 * XmlDataLoader.cs (ReadModeInferSchema) : Change implementation. Now we can read nested xml, and we generate the relations
3278 2003-11-30 Eran Domb <erand@mainsoft.com>
3279 * DataColumnCollection.cs (this[string name]) : Use IndexOf to find the column.
3280 (Add) : Find if the new column name is the same as the one found in IndexOf.
3281 (IndexOf) : New method.
3282 (Contains) : Use new IndexOf.
3283 (IndexOf) : Use new IndexOf.
3285 * DataRelationCollection.cs (DataRelationCollection.AddCore) : Add The Relation to the collection.
3286 (DataSetRelationCollection.AddCore) : First add the UniqueConstraint.
3288 * DataRow.cs (this[int columnIndex, DataRowVersion version]) : Change exceptions.
3289 (Delete) : Detach row if the RowState was Added.
3290 (GetChildRows) : Get the array form the ChildTable.
3291 (GetParentRows) : Get the array from the ParenTable.
3293 * DataRowCollection.cs (Remove) : Check if row state is Detached to avoid exception.
3295 * DataSet.cs (IXmlSerializable.ReadXml) : Do not call MoveToContent and ReadEndElement - the XmlSerializationReader does it.
3297 * DataTable.cs (PrimaryKey) : Fix bugs.
3298 (Compute) : First call Select. Then create ExpressionAggregate to aggregate the Select result.
3300 * DataTableCollection.cs (Add) : Fix a bug.
3302 * ExpressionElement.cs (ValidateExpression) : Turning ValidateExpression to static.
3303 (Result) : Added new interface to AggregateExpression that get DataRow[] as a param.
3304 Some code style changes (tab instead of whit spaces, alignment, etc...).
3306 * ForeignKeyConstraint.cs (_validateColumns) : Throw correct exception.
3308 * MergeManager.cs (AdjustSchema) : Fix a bug.
3312 2003-11-26 Miguel de Icaza <miguel@ximian.com>
3314 * DataSet.cs: Add a few more missing methods, code style updated
3317 2003-11-26 Tim Coleman <tim@timcoleman.com>
3319 * ConflictOptions.cs DataAdapterException.cs DataTableReader.cs
3320 * DbMetaData.cs FillOptions.cs IDataReader2.cs IDataRecord2.cs
3321 * IDataUpdatableRecord.cs IDbAsyncCommand.cs IDbAsyncConnection.cs
3322 * IDbExecutionContext.cs IGetTypedData.cs ISetTypedData.cs
3323 * LoadOption.cs OperationAbortedException.cs ResultSetOptions.cs
3324 * ResultSetSensitivity.cs StatementCompletedEventArgs.cs
3325 * StatementCompletedEventHandler.cs UpdateOptions.cs:
3326 New classes added for NET_2_0
3327 * DBConcurrencyException.cs DataRelation.cs DataSet.cs DataTable.cs
3328 * DataTableCollection.cs DataView.cs ForeignKeyConstraint.cs:
3329 Modifications to add new NET_2_0 functions
3331 2003-11-25 Tim Coleman <tim@timcoleman.com>
3335 2003-11-21 Pedro Martinez Julia <yoros@wanadoo.es>
3337 * DataRow.cs: Detached row can be accesible (new rows from data
3338 table are detached). Closes but #51263.
3340 2003-11-19 Eran Domb <erand@mainsoft.com>
3341 * DataRow.cs : Throw exceptions if Row is Detached.
3342 (EndEdit) : Check that we are not in middle of ChangeEvent.
3343 (AcceptChanges) : Detach the row.
3345 * DataRelation.cs : throw correct exception.
3346 *UniqueConstraint.cs : throw correct exception.
3349 2003-11-09 Pedro Martinez Julia <yoros@wanadoo.es>
3351 * DataRow.cs: Use RemoveInternal instead of Remove because the last
3352 one uses Delete and AcceptChanges.
3354 * DataRowCollection.cs: When removing, Delete and AcceptChanges
3355 method from the row are called. Added an internal method that will
3356 be used by DataRow to "physically" remove the row from the list.
3358 2003-11-09 Pedro Martinez Julia <yoros@wanadoo.es>
3360 * DataRowCollection.cs: To follow the specification: Remove and
3361 RemoveAt should remove the row. But needed to call DeletingDataRow
3362 to prepare the deleting.
3364 * DataRow.cs: Don't call DeletingDataRow when it is called by the
3365 method Table.Rows.Remove.
3367 2003-11-09 Pedro Martinez Julia <yoros@wanadoo.es>
3369 * DataRowCollection.cs: Make the row be deleted by itself. If not,
3370 it fails because we need to call OnRowDeleting and OnRowDeleted. It
3371 is full implemented inside DataRow.
3373 2003-11-05 Eran Domb <erand@mainsoft.com>
3374 * DataView.cs (ctor) : Changing default RowStateFilter to CurrentRow.
3376 2003-11-04 Eran Domb <erand@mainsoft.com>
3377 * DataRow.cs (CheckChildRows) : Improving the implementation - checking child for all FK, and not
3379 (GetChildRows) : Adding some checks.
3380 (GetParentRows) : Adding some checks. Fix a bug in implementation.
3381 (SetParentRow) : Added implementation.
3383 * DataRowCollection.cs (Add) : Added more checks on the row added to the collection.
3384 * DataTable.cs (Copy) : Set the During Loading flag to save unnecessary assertions.
3385 * ForeignKeyConstraint.cs (AssertConstraint) : Fixing bugs in implementation. Checking for DBNull values in the row.
3386 * MergeManager.cs : Check that the target table is not null.
3388 2003-10-27 Eran Domb <erand@mainsoft.com>
3389 * DataColumn.cs (DefaultValue) : Changing null value to DBNull. Checking that the type of the new default value
3390 can be converted to the column type.
3392 * DataRelationCollection.cs (AddCore) : Give the new FK the name of the relation.
3394 * DataRow.cs (EndEdit) : Check if we need to validate the constraints.
3395 (GetParentRows, GetChildRows) : Checking that the row has the wanted version, before accessing the row's value.
3397 * DataRowCollection.cs (Add) : Fixing a bug.
3398 (Clear) : Before clearing the array check that there is no violation of FK constraint.
3400 * DataSet.cs (Prefix) : If value is null chage it to empty string.
3401 (GetXml) : Removing the Processing Instructions from the xml string as in MS ADO.NET.
3403 * ExpressionElement : Adding support for IN expresion.
3405 * DataTable (CopyConstraints) : New method that copy the tables constraints to the copy table.
3406 (Select) : Adding support for DataViewwRowState.
3408 * ForeignKeyConstraint.cs (AssertConstraint) : Adding implementation.
3410 * MergeManager.cs (MergeRow) : Fix bugs.
3412 2003-10-27 Eran Domb <erand@mainsoft.com>
3413 * DataRow.cs (SetColumnValue): Donot check null value when in midle of loading data.
3414 check null values when ending loading data.
3416 * DataSet.cs (RejectChanges) : Imlementation.
3417 (Prefix) : If prefix was changed fire event. Check that the prefix is not null - if null,
3418 change it to empty string.
3420 * DataTable.cs (BeginLoadData, EndLoadData) : Impemantation.
3422 2003-10-22 Eran Domb <erand@mainsoft.com>
3423 * MergeManager.cs : Fixing bugs. Adding check for PrimaryKey matching.
3425 * ConstraintCollection.cs (RamoveAt): Change implemntation.
3427 * DataTableCollection (CanRemove): Removing cast to Constraint.
3429 2003-10-22 Eran Domb <erand@mainsoft.com>
3430 * DataRelationCollection.cs (AddCore): The unique constraint was added even if the createConstraints flag was false.
3431 (Clear): The collection was cleared without removing the relation from the parent and child tables.
3433 * DataSet.cs (Copy, Clone): The Relations of the DataSet were not copy.
3434 (HasChanges, Reset): Imlementation.
3436 * DataTable.cs (HasErrors): There is no flag for errors, instead the table ask her row if they have any errors.
3437 This is because the we do not no when to turn off the flag.
3438 (Locale): Changing implementation to behave like ADO.NET.
3439 (AcceptChanges): Fix bug.
3440 (Clear): Check that this table is not referenced from a foreign key constraint.
3441 (Copy): Do not try to access a deleted row.
3442 (CopyProperties): Copy the PrimaryKey.
3443 (GetChanges, ImportRow): Implementation.
3444 (LoadDataRow): Adding implementation if the table has PrimaryKey.
3445 (ToString): Changing implementation to behave like ADO.NET.
3447 * UniqueConstraint.cs (AssertConstraint): support for Multiple DataColumns in the constraint.
3449 * DataRow.cs (Ctor): In the constructor we initiate the current array, but we should initiate only the proposed array for new rows.
3450 (HasErrors): Implementation.
3451 (Delete): Added checking for child rows of the deleted row.
3452 (EndEdit): Added checking for child row and firing events.
3453 (GetColumnError): Added a check that the method will not return null, as in ADO.NET(an empty string is returned).
3454 (GetColumnsInError): Added a check for null values in column error.
3455 (HasVersion): Added special treatment for special RowState.
3456 (CollectionChanged): More checks to avoid NullReferenceException.
3458 * DataRowCollection.cs (Remove): Fix a bug.
3461 2003-10-01 Duncan Mak <duncan@ximian.com>
3463 More patches from Eran Domb <erand@mainsoft.com>.
3465 * MergeManager.cs: New file.
3467 * DataRelationCollection.cs (AddCore): Check that a
3468 UniqueConstraint is already exists. It loops over the Relations
3469 instead of the Constraints.
3470 (Add, AddCore): The relation was added twice.
3472 * DataSet.cs (Merge, GetChanges, HasChanges): Implemented.
3474 2003-09-30 Duncan Mak <duncan@ximian.com>
3476 Patches from Eran Domb <erand@mainsoft.com>.
3478 * DataRelation.cs (constructor): When the name of the relation is
3479 null, it should return an empty, not "Relation".
3481 * DataRow.cs (AcceptChanges): Added special case for
3483 (CancelEdit): Set editing flag to false.
3484 (IsNull): Check that the value is DBNull.
3486 * DataRowCollection.cs (Add): There was no check that the table of
3487 the collection is owned by a DataSet.
3489 * DataSet.cs (OnMergeFailed): Added.
3491 * UniqueConstraint.cs (AssertConstraint): There was no check that
3492 values in the row are not null, where it is a primary key
3493 column. Also check that the row has a proposed version, if not,
3494 get the current version when we compare the rows.
3496 2003-09-25 Duncan Mak <duncan@ximian.com>
3498 Patches from Eran Domb <erand@mainsoft.com>.
3500 * DataColumn.cs (Unique): Implemented.
3503 * ConstraintCollection.cs:
3504 * ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
3505 an Exception thrown. Details:
3506 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html
3508 * DataRowCollection.cs (Add): There is no checking that there is
3509 no violation of the unique constrains.
3511 * UniqueConstraint.cs (AssertConstraint): There is no checking on
3512 all columns in the constraint.
3514 * DataTableCollection (Add): Correctly throw an Exception, more
3516 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002117.html
3517 (Remove, RemoveAt): Implemented.
3519 2003-07-31 Duncan Mak <duncan@ximian.com>
3521 * DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
3523 2003-07-25 Ravi Pratap <ravi@ximian.com>
3525 * DataRelation.cs (OnPropertyChanging): Calling the 'Invoke'
3526 method on a delegate is disallowed - fix this.
3528 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
3530 * DataSet.cs: Implemented IXmlSerializable interface. Added basic support for
3531 xml serialization. Modified method of writing schema. Now it creates
3532 a XmlSchema object and serializes it using XmlSerializer.
3533 * XmlConstants.cs: Added constants for data type names.
3534 * XmlDataLoader.cs: Fixed deserialization of data. Now converts data to the
3535 type specified in the column.
3537 2003-04-20 Alan Tam <Tam@SiuLung.com>
3539 * DataRelationCollection.cs: Fix a bug that prevent relations
3540 from being added via DataSet.
3542 2003-04-12 Ville Palo <vi64pa@kolumbus.fi>
3544 * UniqueConstraint.cs: one tiny fix.
3546 2003-04-05 Ville Palo <vi64pa@kolumbus.fi>
3548 * DataTable.cs: Remove UniqueConstraints when adding new ones
3550 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
3552 * DataColumnCollection.cs: Little 'case sensitive' fix
3554 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
3556 * DataRow.cs: AutoIncrement handling to Constructor
3557 * DataRowCollection.cs: This doesnt need anymore AutoIncrements
3559 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
3561 * DataTable.cs: Some fixes to PrimaryKey etc...
3562 * UniqueConstraint.cs: Little clean up
3564 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
3566 * DataTable.cs: Tiny fix to ToString () -method
3568 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
3570 * ConstraintCollection.cs: Little fix.
3571 * DataColumn.cs: Added new internal method SetUnique()
3572 * UniqueConstraint.cs: some little fixes
3574 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
3576 * DataRowCollection.cs: Bugfixes, implementation,...
3578 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
3580 * DataColumn.cs: If DataType if set to something else than short, int
3581 or long and AutoIncrement is true, AutoIncrement is must set to false.
3583 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3586 (BeginEdit): fixed array bound problem when a column has been added.
3587 (EndEdit): just assign proposed to current as proposed is set to null.
3588 This also fixes another array boudn problem.
3590 2003-03-21 Alan Tam <Tam@SiuLung.com>
3592 * DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
3593 EndEdit and AcceptChanges to act correctly according to DataRowState
3595 * DataRowCollection.cs: Call AttachRow and DetachRow when a row is
3596 attached and detached from the collection.
3598 2003-03-20 Alan Tam <Tam@SiuLung.com>
3600 * DataColumn.cs: Store empty string for Expression when null is passed in.
3601 Classes generated by XSD.exe passes null by default.
3603 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
3605 * DataColumnCollection.cs: Tiny clean up
3607 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
3609 * DataColumn.cs: little fixes.
3610 * DataColumnCollection.cs: Lots of little fixes and improvments.
3612 2003-03-12 Alan Tam <Tam@SiuLung.com>
3614 * DataSet.cs: Fixed a bug that the file written does not close correctly.
3616 2003-03-08 Alan Tam <Tam@SiuLung.com>
3618 * DataRelationCollection.cs: Removed the mis-overridden methods
3619 * DataRow.cs: Fixed an attribute
3620 * DataSet.cs: Fixed the modifiers
3622 2003-03-06 Aleksey Demakov <avd@openlinksw.com>
3624 * DataTableCollection.cs: The Contains (string name),
3625 IndexOf (string name) methods, and item[string name] indexer
3626 now behave more like .NET with respect to case-sensitivity.
3627 That is if there is an exactly matching item then this one is used.
3628 If there is only one item differing in case then it used.
3629 If there are more than one item differing in case then
3630 Contains returns false, IndexOf returns -1, and item[]
3631 throws an ArgumentException.
3633 2003-02-28 Ville Palo <vi64pa@kolumbus.fi>
3635 * ExpressionElement.cs: More implementation.
3637 2003-02-28 Alan Tam <Tam@SiuLung.com>
3638 * DataSet.cs: Changed WriteTable so that it now calls the newly written
3639 WriteObjectXml to direct the call to the respective XmlConvert method.
3640 This fixes the wrong format written to XML files of bool, float,
3641 double, DateTime and TimeSpan types.
3643 2003-02-25 Alan Tam <Tam@SiuLung.com>
3645 * DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
3646 * DataRelationCollection.cs: Implemented AddRange and Contains.
3647 Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
3648 Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
3649 Reimplemented most Add methods to eliminate duplicated checks.
3650 Centralized RelationName generation procedure in GetNextDefaultRelationName.
3652 2003-02-25 Alan Tam <Tam@SiuLung.com>
3654 * DataColumn.cs: Fixed wrong storage representation of Expression
3655 (using empty string instead of null) so that ToString() returns nothing.
3656 * DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
3657 auto column naming now works as expected. Reimplemented some Add methods
3658 to eliminate code duplication.
3660 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
3662 * DataTable.cs: DataTable.CaseSensitive follows parent
3663 DataSet.CaseSensitive property if DataTable.CaseSensitive has never
3664 been changed directly from DataTable
3666 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
3668 * DataSet.cs: When CaseSensitive property is changed all of the Tables
3669 of DataSet have to change too
3671 2003-02-19 Daniel Morgan <danmorg@sc.rr.com>
3673 * InternalDataCollectionBase.cs: revert change to field
3676 * DataViewManager.cs
3679 * DataSet.cs: commented use of DesignerAttribute
3680 because it broke the build. According to MSDN,
3681 DesignerAttribute does not have a zero-argument constructor
3683 2003-02-18 Ville Palo <vi64pa@kolumbus.fi>
3685 * DataColumnCollectin.cs: Little fix for indexer and case sensitivity
3687 2003-02-18 Alan Tam <Tam@SiuLung.com>
3689 * DataRow.cs: Implemented GetParentRow and GetParentRows.
3690 * DataSet.cs: Added stub for HasChanges, InferXmlSchema,
3691 OnPropertyChanging, OnRemoveRelation, OnRemoveTable,
3692 RaisePropertyChanging.
3693 * DataTable.cs: Implemented NewRowArray.
3694 * DataTablePropertyDescriptor: Fixed a modifier.
3695 * InternalDataCollectionBase.cs: Fixed modifiers. Implemented SyncRoot.
3696 * PropertyCollection.cs: Minor fix.
3697 * ConstraintCollection.cs DataColumn.cs DataColumnCollection.cs
3698 * DataRelation.cs DataRelationCollection.cs DataRow.cs
3699 * DataRowCollection.cs DataRowState.cs DataSet.cs DataTable.cs
3700 * DataTableCollection.cs DataTablePropertyDescriptor.cs DataView.cs
3701 * DataViewManager.cs DataViewRowState.cs DataViewSettingCollection.cs
3702 * ForeignKeyConstraint.cs InternalDataCollectionBase.cs
3703 * PropertyCollection.cs UniqueConstraint.cs: Added missing attributes
3705 2003-02-08 Ville Palo <vi64pa@koti.soon.fi>
3707 * ExpressionElement.cs: More implementation
3709 2003-02-05 Alan Tam <Tam@SiuLung.com>
3711 * DataSet.cs: Added framework for DataSet.Update Implemented missing
3712 methods GetSchemaSerializable, GetSerializationData,
3713 ReadXmlSerializable, ShouldSerializeRelations and ShouldSerializeTables
3715 * DataTable.cs: Implemented missing methods CreateInstance and
3716 GetRowType for DataTable
3718 2003-02-03 Ville Palo <vi64pa@koti.soon.fi>
3720 * DataSet.cs: Implemented private method MapType for
3721 mapping datatypes for XmlSchema
3723 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3725 * DataView.cs: implemented Dispose.
3727 2003-01-30 Ville Palo <vi64pa@koti.soon.fi>
3729 * ExpressionElement.cs: Added new file. This file is for parsing
3730 and DataData.Select () -methods and DataColumn.Expression -property
3731 * DataTable.cs: Implemented Select(string) -method
3733 2003-01-28 Ville Palo <vi64pa@koti.soon.fi>
3735 * DataSet.cs: One little fix to writing xml
3737 2003-01-27 Ville Palo <vi64pa@koti.soon.fi>
3739 * XmlSchemaMapper.cs: Some fixes.
3740 * DatSet.cs: Some XmlFixes and BeginInit ()/ EndInit () -fix
3743 2003-01-24 Ville Palo <vi64pa@koti.soon.fi>
3745 * UniqueConstraint.cs: Do not set columns Unique property true
3747 * ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table
3749 2003-01-18 Ville Palo <vi64pa@koti.soon.fi>
3751 * DataTableCollection.cs: Now names new DataTable if it doesn't
3752 already have a name.
3754 2003-01-17 Ville Palo <vi64pa@koti.soon.fi>
3756 * XmlSchemaMapper.cs: Improvments.
3757 * XmlConstaints.cs: Added more constants.
3758 * DataSet.cs: Improvments of reading and writing xml
3759 * DataColumn.cs: Added default values of properties.
3761 2003-01-14 Ville Palo <vi64pa@koti.soon.fi>
3763 * XmlSchemaMapper.cs: Some improvments
3765 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
3767 * DataRowCollection.cs: Added IndexOutOfRangeException
3768 * DataTableCollection.cs: Added OnCollectionChanging and
3769 OnCollectionChanged events.
3770 * DataSet.cs: Many fixes. Implemented Clone () and Copy () -methods
3771 * DataTable.cs: Implemented Copy () and Clone () methods.
3772 * XmlDataLoader.cs: some fixes.
3773 * XmlSchemaMapper.cs: comments.
3775 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3777 * DataColumnPropertyDescriptor.cs: store columnIndex in the .ctor.
3779 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3781 * DataColumnPropertyDescriptor.cs: fixed typo.
3782 * DataViewManagerListItemTypeDescriptor.cs: added new internal property
3783 to get the DataViewManager and removed TablePD class.
3784 * DataTablePropertyDescriptor.cs: TablePD class is now this one as
3785 suggested by danmorg.
3787 2003-01-06 Ville Palo <vi64pa@koti.soon.fi>
3789 * XmlDataLoader.cs: Moved diffgram stuff to new internal class
3791 * XmlDiffLoader.cs: new class for diffgrams. Added handling of
3792 diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
3794 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3796 * DataView.cs: made dataViewManager internal.
3797 * DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
3798 properties of the object, but the values of the columns present in a
3801 * DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
3802 which returns a PropertyDescriptorCollection. Created a new class
3803 derived from PropertyDescriptor that treats Table as an object whose
3804 properties are DataRowView.
3806 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
3808 * XmlSchemaMapper.cs: Added handling for Constraints, Attributes.
3810 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
3812 * DataColumn.cs: ExtendedProperties is by default !null-
3814 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
3816 * DataColumnCollection.cs: Add (DataColumn Column) -method didn't
3817 set column's ordinal.
3819 2003-01-02 Ville Palo <vi64pa@koti.soon.fi>
3822 * XmlDataLoader.cs: XmlReader closing fixes.
3823 * XmlSchemaReader.cs: Added support for ref=
3825 2003-01-01 Ville Palo <vi64pa@koti.soon.fi>
3828 - Added XmlReader and XmlWriter Closing.
3829 - Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
3830 * XmlSchemaMapper.cs
3831 - Much better way IMHO to map xmlschema than the old one in
3832 DataSet.cs. Its, more flexible, cleaner, ...
3834 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
3836 * XmlDataLoader.cs: Reading diffgrams.
3838 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
3840 * DataRow.cs: Little fix to indexer and DataColumnCang* trigger fixes.
3841 * DataTable.cs: Added ChanginDataColumn () for triggering
3842 DataColumnChanging event
3844 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
3846 * DataSet.cs: Indentations to WriteXmlSchema () and one little fix
3848 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
3850 * DataSet.cs: Indentations to WriteXml ()
3852 2002-12-27 Ville Palo <vi64pa@koti.soon.fi>
3855 * XmlDataLoader.cs: Moved ReadXml -stuff from DataSet.cs to new
3856 class XmlDataLoader.cs
3858 2002-12-19 Ville Palo <vi64pa@koti.soon.fi>
3860 * DataSet.cs Implemented ReadXml with XmlReadMode.ReadSchema
3862 2002-12-18 Ville Palo <vi64pa@koti.soon.fi>
3864 * DataSet.cs: Started to implement ReadXml-methods.
3866 2002-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3868 * DataSet.cs: implemented DefaultViewManager and GetList.
3870 * DataViewManager.cs: a bit of work on IList and ITypedList needed by
3871 DataList in System.Web.
3873 * DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
3876 2002-12-16 Ville Palo <vi64pa@koti.soon.fi>
3879 * DataTable.cs: Fixed NullException (rollback -event)
3880 * DataSet.cs: WriteXml -method does not anymore write <?xml... row.
3882 2002-12-15 Ville Palo <vi64pa@koti.soon.fi>
3885 * DataRowCollection.cs: Moved event triggering from DataRow to
3888 2002-12-09 Ville Palo <vi64pa@koti.soon.fi>
3890 * DataSet.cs: Little fix to WriteTable () -method
3891 and DoReadXmlSchema () -method.
3893 2002-12-06 Ville Palo <vi64pa@koti.soon.fi>
3895 * DataSet.cs: Clean up to reading xmlschema. This looks much better
3896 now (work better too), but it not working correctly yet.
3898 2002-12-04 Ville Palo <vi64pa@koti.soon.fi>
3901 * DataRowCollection.cs: Added some event handlins stuff.
3902 * DataSet.cs: Some fixes.
3903 * DataTable.cs: Added event handlers.
3905 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
3907 * DataRowChangeEventArgs.cs: Implemented Action and Row properties
3909 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
3911 * System.Data/DataRow.cs: Added internal property XmlDataID
3913 2002-11-29 Ville Palo <vi64pa@koti.soon.fi>
3915 * DataSystem.Data.DataTableCollection.cs:
3916 Removed HashTable. There could be situations where DataTable
3917 is added to collection before it hava TableName. So using
3918 HashTable is impossible.
3920 2002-11-19 Carlos Guzman Alvarez <carlosga@telefonica.net>
3922 * DataRow.cs: an object that is equal to null
3923 should be allowed to be set in this indexer too
3926 2002-11-06 Daniel Morgan <danmorg@sc.rr.com>
3928 * DataColumnPropertyDescriptor.cs: added file
3930 * System.Data/DataRowView.cs: started implementation
3932 * DataTable.cs: stubbed more interfaces. Implemented
3933 IListSource.GetList()
3935 * DataView.cs: stubbed more interfaces. Implemented
3936 some properties and methods: GetEnumerator(),
3937 ITypedList.GetItemProperties, Item indexer, CopyTo()
3939 2002-05-18 Nick Drochak <ndrochak@gol.com>
3941 * DataRow.cs: Fix typo.