1 2004-06-15 Atsushi Enomoto <atsushi@ximian.com>
3 * DataSet.cs : children of non-root rows were not properly written.
6 2004-06-10 Umadevi S <sumadevi@novell.com>
7 * DataRelation.cs - Constructor
8 - The datatypes of the parentcolumn(s) and the childcolumn(s) should match
10 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
12 * XmlSchemaDataImporter.cs : We should fill Namespace for DataTable.
14 2004-06-04 Gert Driesen <drieseng@users.sourceforge.net>
16 * Constraint.cs: marked methods internal to fix public API
17 * ConstraintCollection.cs: to fix public API, use
18 DataTable.fInitInProgress to check whether initialization
19 of DataTable is in progress
20 * DataColumn.cs: added stubs for missing methods
21 * DataRowBuilder.cs: marked Table property internal to
23 * DataSet.cs: removed extra empty destructor, marked
24 OnMergeFailed internal to fix public API
25 * DataTable.cs: use fInitInProgress field to hold init
26 status, to match MS.NET
27 * DataView.cs: added missing attributes on IsOpen
29 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
31 * DataSet.cs : Use NameTable.Get() before calling LookupNamespace()
32 in XmlNamespaceManager.
34 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
36 * DataSet.cs : complex table content child was not properly added
37 when it is the only one child in the parent table. Fixed bug #53959.
39 2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
40 * DataTableTypeConverter.cs: added
41 * DataView.cs: added missing attribute on Table property
42 * DataViewManager.cs: moved attribute to correct property
43 * UniqueConstraint.cs: removed extra ReadOnly attribute from
46 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
48 * DataRow.cs : ColumnsChanged event is not required in .ctor().
50 2004-06-01 Atsushi Enomoto <atsushi@ximian.com>
52 * XmlDataReader.cs : type change is required before setting value
55 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
57 * DataSet.cs : Loop-break of the last fix was incorrect.
59 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
61 * DataSet.cs : When a row has no parent row but the table has parent
62 relation(s), that row had been always ignored.
64 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
66 * XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
67 rejected same-named tables in different hierarchy. Thanks to Boris.
69 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
71 * XmlDiffLoader.cs : Added some Skip() that is required not to go to
72 infinite loop. Thanks to Boris for this fix.
74 2004-05-31 Atsushi Enomoto <atsushi@ximian.com>
76 * XmlDataInferenceLoader.cs : XmlSchema elements should not be infered.
77 Thanks to Boris for this fix.
79 2004-05-30 Atsushi Enomoto <atsushi@ximian.com>
81 * DataTable.cs : serialization .ctor() should use XmlReadMode.DiffGram
82 for ReadXml(). Thanks to Boris.
84 2004-05-27 Boris Kirzner <borisk@mainsoft.com>
86 - CheckReadOnlyStatus : use typed (and faster comparing).
87 - EndEdit : bug fix - do not dispose record if it holds original version.
88 - SetValuesFromDataRecord : Take care about autoincrement columns.
91 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
93 * MergeManager.cs : don't output debug message to Console.
95 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
97 * XmlDataInferenceLoader.cs : Namespace are not imported to the table
98 structure. Thanks to Boris Kirzner for the fix.
100 2004-05-27 Umadevi S <sumadevi@novell.com>
101 * DataRelationCollection.cs - fixed nunit test errors
103 2004-05-27 Umadevi S <sumadevi@novell.com>
104 * DataTableCollection.cs - fixed nunit test errors
106 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
108 * DataColumnCollection.cs : NullReferenceException was thrown when
109 the table was not found.
110 * DataRowCollection.cs :
111 Find() just returns null for null value under MS.NET 1.1.
112 RemoveAt() should also avoid to call AcceptChanges() like Remove().
113 * UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
114 directly under MS.NET (for nunit test).
116 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
118 * XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf()
119 caused problem on qualified name to get schema Field name.
121 2004-05-21 Atsushi Enomoto <atsushi@ximian.com>
123 * XmlDataReader.cs : Now data reader is namespace aware in all places.
124 When table's namespace is different, it entered to infinite loop.
126 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
127 * MergeManager.cs : AdjustSchema now updates by reference new created table,
128 so in Merge you do not need to lookup for it (were unable to do this for unnamed tables).
131 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
133 * DataColumn.cs : In set_Item[int] - if autoincrement, adjust next autoincrement value.
134 * DataColumnCollection.cs : fixed parantethes.
136 - AcceptChanges : do nothing if row state is unchanged.
137 - GetChildRows, GetParentRows : bug fix (use correct index).
138 * DataRowCollection.cs : bug fix (compare all row's values).
139 * DataTable.cs : bug fix (use correct row version).
141 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
143 * XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
144 When content type is Mixed, text column is not required (it is
145 required only when the complex type has no particle).
146 "Repeated element" column is also created (considering maxOccurs=0
147 and complex content extension).
149 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
151 * XmlSchemaDataImporter.cs : XmlSchemaGroupBase was not handled
154 2004-05-20 Atsushi Enomoto <atsushi@ximian.com>
156 * XmlSchemaDataImporter.cs : Removed unused code and extra MonoTODO.
157 Fixed relation inference to consider attribute XPath.
159 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
161 * DataColumn.cs : Fixed set_Item[int]. Convert.ToInt64(DBNull.Value)
164 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
166 * DataColumn.cs - removed default member attribute.
168 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
171 DataColumnChangeEventArgs.cs,
172 DataColumnCollection.cs,
174 DataRowCollection.cs,
176 Index.cs : Data storage in the row is redesigned. Now data is stored in
177 typed containers inside DataColumn. Row holds its versions as indexes inside
178 each of data container, accessed through the row that holds it.
180 2004-05-19 Boris Kirzner <borisk@mainsoft.com>
182 * UniqueConstraint.cs - added comment.
184 2004-05-19 Atsushi Enomoto <atsushi@ximian.com>
186 * XmlDataInferenceLoader.cs : Don't add already-existing DataTable to
189 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
192 XmlDataInferenceLoader.cs,
194 XmlSchemaDataImporter.cs : XmlDecode every local name to read and
195 XmlEncode every local name to write. This should fix bug #58268.
197 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
199 * DataSet.cs : Implemented ignored namespaces in InferXmlSchema().
200 Supported repeated elements. Removed MonoTODOs.
201 * XmlDataInferenceLoader.cs : Design change to support ignored
202 namespace and repeated elements.
203 * XmlSchemaDataImporter.cs : Added mapping support classes.
205 2004-05-15 Atsushi Enomoto <atsushi@ximian.com>
207 * CustomDataClassGenerator.cs :
208 Added property parent "[foo]Row" and children "Get[foo]Row" support
209 for custom DataRow classes.
210 Fixed DataColumn property accessibility (public --> internal).
212 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
214 * CustomDataClassGenerator.cs :
215 - Put classes inside custom DataSet class.
216 - Added automatic DataRelation creation support.
217 - Added Constraints creation support. That is done separate from
218 relations, since they might be independently created.
219 - Added non-MS public DataRelation fields.
220 - Removed extraneous "DataRelation type generation" code.
221 - Fixed custom_dataset.Initialize() not to create "c" field that
222 was created more than once.
223 - Implemented AddxxxRow() that takes parameters for every column.
225 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
227 * XmlSchemaDataImporter.cs : When primary key is used more than once,
228 DataRelation borked because of empty parent column name.
230 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
232 * XmlSchemaDataImporter.cs : When Creating constraints with related
233 to DataRelation creation, also set PrimaryKey to the parent table.
235 2004-05-14 Atsushi Enomoto <atsushi@ximian.com>
237 * XmlSchemaDataImporter.cs :
238 Design change to add indirect table and relation structures.
239 Support for "relation" annotation for local element.
240 Support for repeatable simple element column (maxOccurs > 1).
241 Fixed handling of Nested property on DataRelation (for globally
242 annotated relation, Nested is false).
244 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
246 * DataRow.cs : Added DataElement property to avoid storing every row-
247 element mapping. It stored even for nodes that should be removed.
249 2004-05-13 Umadevi S <sumadevi@novell.com>
251 * RelationshipConverter.cs - Stubbed this class
252 * DataRelation.cs - added TypeConveterAttribute
254 2004-05-13 Umadevi S <sumadevi@novell.com>
256 * DataColumnCollection.cs - Added ResDescriptionAttribute
257 * DataRelation.cs - Added TypeConverterAttribute
258 * DataRelationCollection.cs - Added DefaultPropertyAttribute
259 * DataRowView.cs - Added GetHashCode method with a TODO tag
260 * DataSet.cs - Added DesignerAttribute
261 * DataView.cs - Added DesignerAttribute
262 * DataViewManager.cs - Added DesignerAttribute
263 * DataViewSetting.cs - Added TypeConverterAttribute
265 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
267 * DataRow.cs : Added XmlDataElement initialization code.
269 2004-05-11 Atsushi Enomoto <atsushi@ximian.com>
271 * XmlDataInferenceLoader.cs :
272 It now requires XmlDocument as input. Improved identification of
273 DataSet element. Removed extra lines.
274 Moved boresome design notes to bottom of the source and
275 added standalone runnable driver (not included on build).
277 Update with related to the change above.
278 WriteXml() should call Flush() after writing. This fixes bug #58327.
279 * XmlSchemaDataImporter.cs :
280 Improved indentification of DataSet element.
282 2004-05-11 Gert Driesen (drieseng@users.sourceforge.net)
283 * DataTable: marked initStatus enum internal
285 2004-05-09 Gert Driesen (drieseng@users.sourceforge.net)
286 * DataTable.cs: removed TypeConverterAttribute, marked RowsExist
288 * DataRowView.cs: removed extra Error property
289 * DataRow.cs: reduced accessibility of CollectionChanged method
291 * DataColumnPropertyDescriptor.cs: made class internal
292 * DataColumn.cs: removed extra TypeConvertorAttribute
293 * ConstrainCollection.cs: marked PostEndInit method internal
295 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
298 In WriteXmlSchema(), when complex type contains simple type content
299 attributes must not added to XmlSchemaComplexType directly. It
300 causes schema compilation error.
301 DataRelation should not be output when related columns are hidden.
303 2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
305 * XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
306 also expected to do ReadXml(), but I will remove that feature and
307 support column reordering).
308 * XmlSchemaDataImporter.cs : Always initialize dataset name.
309 Always set Nested and primary key for parent table.
310 * XmlDataReader.cs : Now it is used.
311 Top level element might not match to dataset name nor any table
312 name, but still possible to read content tables.
313 Handle empty element correctly in some places.
314 Handle Fragment mode (read up XmlReader to the end).
315 * DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
316 XmlDataInferenceLoader and XmlDataReader.
318 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
321 Eliminated CRLF injection.
322 More clear message in Clear().
323 Updates reflecting XmlSchemaDataImporter change.
324 Added duplicate check for XmlSerializerNamespaces in BuildSchema().
325 Don't use xmlns attribute for UnhandledAttributes (its not mandatory
326 but that depends on different behavior from ms.net).
327 Set locale also for DataTable.
328 Add xs:element only when target namespace matches to the
329 element's namespace. Otherwise, add xs:import for external namespace.
330 Put xs:sequence for dataset element's particle _only when_ actual
333 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
335 * XmlDataReader.cs : Added. This class will work better when our
336 schema inference and schema read engine gets improved. (It contains
337 standalone testable Driver class.)
339 2004-05-06 Atsushi Enomoto <atsushi@ximian.com>
341 * ForeignKeyConstraint.cs : Check step change. Existence then column
342 validity. just for tests.
343 * XmlSchemaDataImporter.cs : code simplification. reduced extraneous
346 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
348 * DataSet.cs : Ignore empty content only when output type is diffgram.
350 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
352 * CustomDataClassGenerator.cs : Modified that DataSet contains each
353 DataTable field so that each table property can access them directly.
354 (plus, modified standalone code driver code: shouldn't affect)
356 2004-05-05 Boris Kirzner <borisk@mainsoft.com>
358 * DataView.cs , DataRowView.cs : Added implementation to basic methods and properties.
360 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
362 * XmlSchemaDataImporter.cs :
363 SimpleContent column support.
364 Annotated relation support.
365 Top-level element is counted only when its type is complex.
366 xs:anyType is no longer treated as complex type.
367 dataset existence is mandatory now.
368 Improved DataType and DefaultValue support.
369 Attribute namespace is properly handled now.
370 Prohibited attribute is now treated as hidden column.
371 Reject list or union simple type.
373 Still incomplete 1) to read relationship in some cases, 2) to
374 determine whether an element is dataset or table, 3) thus to
375 exclude extraneous column, 4) to remove extraneous *_Id column.
377 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
380 We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
381 serialization .ctor() (thus schema read/inference should be easier).
382 DataRowSorter should consider Table's Locale.
384 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
386 * DataColumnCollection.cs : We already had AutoIncrementValue(), so
387 use it instead of duplicating logic.
389 2004-05-05 Atsushi Enomoto <atsushi@ximian.com>
391 * ConstraintCollection.cs :
392 Use Table.CaseSensitive and Table.Locale to compare strings.
393 Duplicate constraint name exception does not occur under .NET 1.1.
395 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
397 * XmlSchemaDataImporter.cs: Added little type check.
399 2004-05-04 Lluis Sanchez Gual <lluis@ximian.com>
401 * DataSet.cs: Implemented support for runtime serialization. Fixed support
402 for xml serialization.
403 * XmlDiffLoader.cs: Skip diffgram element when it is empty.
405 2004-04-30 Umadevi S <sumadevi@novell.com>
406 * DataColumnCollection.cs : Fixed nunit test errors, removed TODOs
407 * DataTableCollection.cs : Tested and removed TODO
408 * TypedDataSetGeneratorException.cs : Fixed a couple of TODOs
410 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
412 * DataRow.cs : My previous patch unintentionally reverted Boris patch.
414 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
416 * UniqueConstraint.cs : Constraint columns becaomes unique after adding constraint ifand only if
417 constraint is defined on single column.
419 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
421 * DataRowCollection.cs : .NET 1.1 throws InvalidConstaintException,
422 not ArgumentException (maybe changed after 1.1).
424 2004-04-29 Atsushi Enomoto <atsushi@ximian.com>
426 * DataRow.cs : When Column was added and it was AutoIncrement column,
427 it extended the item object array incorrectly.
428 (Plus tiny comment and incorrect indentation fix.)
430 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
432 * MergeManager.cs : added ( incomplete yet ) support for merging DataSet schema.
434 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
436 * DataRow.cs : Bug fix in CopyValuesToRow().
438 2004-04-29 Boris Kirzner <borisk@mainsoft.com>
440 * UniqueConstraint.cs : There is no reason to mark constraint's columns as unique, because
441 each of the columns should not be unique, but only all the constraint's columns together.
443 2004-04-28 Boris Kirzner <borisk@mainsoft.com>
446 - Added using of list of autoIncrement columns
447 - SetColumnValue receives also DataColumn to avoid duplicate lookup in DatacolumnCollection
448 - Fix in CheckNullConstraints
449 - Fix in this[] and HasVersion() : when evaluating an expression deleted rows values can be accessed.
450 - Fix in SetColumnValue() , added CanAccess() method to avoid case of accessing internal array values berore it actually allocated.
451 - Added onColumnRemoved() method to threat column removal accurately.
453 * DataRowCollection.cs :
454 - Added using of DataRow._nullConstraintViolation (for perfomance fix in EndLoadData())
455 - Added method onColumnRemoved() - calls each row's onColumnRemoved() (to ensure column removal is treated accurately)
458 - Call DataRowCollection.onColumnRemoved() in OnRemoveColumn() (to ensure column removal is treated accurately)
460 * DataColumnCollection.cs :
462 - collection holds a list of its autoIncrement columns (avoids unnesessary lookup through whole collection)
463 - collection holds mapping from column names to DataColumn objects (avoids lookup through whole collection).
464 - automatic creation of column names rewrited (bug fixes + perfomance improvement)
467 - Uses autoincrement list of a table
469 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
471 * XmlDataLoader.cs : Even when it should ignore schema, it was
473 * XmlSchemaDataImporter.cs : DataRelation creation support.
474 Improved "DataSet" element handing. When attributes are on the
475 element, it is not a "DataSet" element.
476 Fixed parent key column name.
477 Unique name creation is not required. Just raise an error.
478 Fill facet also for attribute types.
480 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
482 * DataRow.cs : Null check for CheckReadOnlyStatus() and
483 CheckNullConstraints(), with some coding guideline fixes.
484 Type check should be done by Type instance comparison.
486 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
488 * DataColumnCollection.cs : When add a column to the collection, fill
489 auto-increment column.
491 2004-04-26 Boris Kirzner <borisk@mainsoft.com>
493 * DataColumn.cs : Small perfomance fix (avoid unnesessary string concatenation).
495 2004-04-26 Atsushi Enomoto <atsushi@ximian.com>
497 * CustomDataClassGenerator.cs : Added.
498 * TypedDataSetGenerator.cs : Implemented Generate().
499 Changed GenerateIdName() to call CustomDataClassGenerator.MakeSafeName
500 * XmlSchemaDataImporter.cs : Table Locale should be supplied.
502 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
504 * DataTable.cs : Small perfomance fix (avoid unnesessary string concatenation).
506 2004-04-25 Boris Kirzner <borisk@mainsoft.com>
508 * Constraint.cs : Small perfomance fix (avoid unnesessary string concatenation).
510 2004-04-23 Umadevi S (sumadevi@novell.com)
511 * DataRow.cs: Checked BeginEdit,EndEdit,CancelEdit and Delete methods
512 - Added error handling to the above methods
514 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
516 * DataSet.cs : Data should be read when mode is IgnoreSchema (well,
517 the support is incomplete yet).
519 Reverted ReadModeSchema() argument change. XmlReadMode would be
520 useful to handle IgnoreSchema.
521 Don't overwrite DataSetName when mode is not such kind.
522 Set Prefix and Namespace as well as DataSetName.
523 AllowDBNull looks set false by default for element column.
524 Set unique constraint as primary key when infering the table schema.
526 2004-04-21 Atsushi Enomoto <atsushi@ximian.com>
529 Never set null string for Prefix and Namespace.
530 In InferXmlSchema() when null XmlReader is passed, just do nothing.
531 In WriteXmlSchema(string), earlier try block.
532 In BuildSchema(), try to add serialization namespaces for each
533 namespaces in DataSet/DataTable/DataColumn.
534 Removed namespace argument from WriteColumnAsElement() and don't
535 overwrite when namespace is "". This fixes bug #57330.
536 * DataColumn.cs : For Namespace and Prefix, never set null.
538 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
540 * XmlSchemaMapper.cs : Check for not null unique constraint in ReadXmlSchemaKeyref()
541 before creating and adding foreign key constraint and relation.
543 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
545 * MergeManager.cs : In AdjustSchema() source table clone should be added
546 and not the table itself.
548 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
551 - CaseSensitive : Additional fix (removed unnesessary assignment).
552 - CopyProperties : Do not try to copy ExtendedProperties if the collection is empty.
554 2004-04-21 Boris Kirzner <borisk@mainsoft.com>
556 * DataTable.cs : Ensure that DataSet property is not null before using it in Clear().
558 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
561 - EndLoadData() : perfomance fix in case of null constraint violation
562 during data load (also in DataRow.cs).
563 - CaseSensitive : If DataTable belongs to DataSet it should always use
564 DataSet.CaseSensitive untill explicitly changed.
565 - CopyProperties() : do not try to copy ExtendedProperties if the collection is empty.
568 - Pefromance fix in case of null constraint violation
569 during data load (also in DataTable.cs).
570 - CollectionChanged() : use correct column number after new DataColumn was added
571 (differs in case some DataColumn was previosly removed).
572 - EndEdit() - throw away proposed values only after CheckChildRows() complete.
574 2004-04-20 Boris Kirzner <borisk@mainsoft.com>
576 * DataColumnCollection.cs : Since unique constraint is added now
577 in DataColumn.SetTable() the additional creation of constraint in
578 DataColumnCollection.Add() is redundant and causes exception - fixed.
580 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
582 * XmlDataLoader.cs : Added "never add data rows" mode.
583 Removed unused code. However, it is temporary fixes to unify
584 ReadXml() and InferXmlSchema().
585 * DataSet.cs : Implemented InferXmlSchema(), though it is incomplete.
587 I'll create another XmlDataLoader since there are many problems
588 such that 1) it is too waste to read the entire xml into an
589 XmlDocument, 2) it does not handle attributes correctly, and 3) it
590 must handle "ignored namespaces".
592 2004-04-19 Atsushi Enomoto <atsushi@ximian.com>
594 * Added XmlSchemaDataImporter.cs (new schema reader).
595 * DataSet.cs : Use XmlSchemaDataImporter (right now for DataSet only)
597 Let schema reading work to ReadXmlSchema().
598 Don't return ReadSchema when argument read mode was DiffGram.
600 2004-04-15 Umadevi S (sumadevi@novell.com)
601 * Updated Clone/Copy methods in DataSet along with Testcase
602 * ForeignKeyConstraint.cs - special ctor implemented
603 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).
604 * Changes in ConstraintCollection.cs for the above
605 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.
608 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
610 * XmlSchemaMapper.cs : set parent key and foreign key info to
611 DataRelation when reading refkey constraints.
612 Supply constraint name for fkey.
614 2004-04-15 Atsushi Enomoto <atsushi@ximian.com>
616 * XmlDataLoader.cs : Don't overwrite existing DataSetName. When read
617 mode is Auto, just ignore the schema if there is already schema info.
618 * DataSet.cs : Similarly ignore schema info for XmlReadMode = Auto.
620 2004-04-14 Atsushi Enomoto <atsushi@ximian.com>
623 - In MS output, XML declaration looks to have standalone decl (yes).
624 - ReadXml(reader) just calls to ReadXml(reader, XmlReadMode.Auto)
625 - ReadXml(reader, mode)
626 1) return originally specified mode, instead of (always) Auto.
627 2) Check empty reader.
628 3) Check diffgram schema and content separately.
629 4) When diffgram exists, remaining (the same-level) contents
631 5) Similar fact should be applied, but somewhat different.
632 InferSchema and IgnoreSchema just skips, Fragment reads both
633 schema and content, others just reads schema.
634 - Removed unused code.
636 - Read() should skip in some ReadMode.
637 - Don't compare schema element name as case-insensitive (well,
638 should schemas be checked here?)
639 - Avoided BuildDocument() not to create confusing DataSet
641 - Don't add any tables when reader has single element.
643 When target table was not found, MS.NET doesn't raise an error.
644 * XmlSchemaMapper.cs :
645 When XmlSchema.Read() left xml reader at </xs:schema>, read once.
647 2004-04-13 Atsushi Enomoto <atsushi@ximian.com>
650 - InferXmlSchema(): Throw explicit NotImplementedException now.
651 - Don't put XML declaration everywhere. Write just for filename arg.
652 - xmlns="" should not be written. Maybe WebService problem is
653 because default namespace is overwritten. This patch will keep
654 the WS problem away and actually fixes some unit tests (i.e. use
655 explicit String.Empty for null namespace in WriteStartElement()).
656 - MoveToContent() should always be called, not only when
657 LocalName="xml". It will ignore prolog (DTD, PI, comment etc.).
658 - Even XmlReadMode is DiffGram, reader might not be "diffgram"
659 element. As to MSDN, diffgram does not contain schema.
661 2004-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
663 * DataTable.cs: made _initStatus private so that System.Data is CLS
666 2004-04-13 Umadevi S <sumadevi@novell.com>
667 * UniqueConstraint.cs:
668 * ConstraintCollection.cs:
670 - Implemented a Constructor for UniqueConstraint.cs
671 - Used EndInit on DataTable to call a delegate which adds the
672 constraints passed to the most recent call of AddRange().Used
673 AddRange() on ConstraintCollection to check whether
674 DataTable.BeginInit has occurred. If yes, save the argument
675 constraint collection passed, then return. If no, Check whether the
676 constraints are of type UniqueConstraint and initialized with the
677 special constructor If yes Initialized the table property of this
678 UniqueConstraint object with table assosciated with the current
679 instance of ConstraintCollection class.
681 2004-04-07 Marek Safar <marek.safar@seznam.cz>
683 * Constraint.cs: changed ClsCompliant to CLSCompliant, build fix.
685 2004-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
688 * DataColumnCollection.cs:
689 * DataRelationCollection.cs:
690 * DataRowCollection.cs:
691 * DataTableCollection.cs:
692 * InternalDataCollectionBase.cs:
693 * Node.cs: CLS compliance for System.Data. Patch by Gert Driesen.
696 2004-04-05 Jackson Harper <jackson@ximian.com>
698 * DataTable.cs: Add rows to the row list if there is no filter.
700 2004-03-31 Juraj Skripsky <juraj@hotfeet.ch>
702 * DataColumn.cs : Setting Caption to null sets it to the empty string
703 (ms.net behaviour, testcase is in DataColumnTest).
705 * DataRow.cs : Evaluate DataColumn.Expression when such a column's
708 2004-03-30 Lluis Sanchez Gual <lluis@ximian.com>
710 * DataColumn.cs: In Expression setter, set the expression member even if
711 it is an empty string.
712 * DataSet.cs: Support serialization of byte[] columns.
713 * XmlDataLoader.cs: Support deserialization of Guid columns.
714 Set MappingType.Attribute to columns infered from attributes.
716 2004-03-29 Juraj Skripsky <juraj@hotfeet.ch>
718 * ExpressionElements.cs : remove
719 * DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
720 Integration of new Mono.Data.SqlExpressions classes used in
721 DataTable.{Select, Compute}.
722 Fixes bug #55503 and lots of failures in DataTableTest.cs.
724 2004-03-28 Juraj Skripsky <juraj@hotfeet.ch>
726 * Index.cs: Simple fix in ComparePartialRowNonUnique.
727 This fixes bugs #56129 and #56014.
729 2004-03-25 Lluis Sanchez Gual <lluis@ximian.com>
731 * DataSet.cs: In WriteXml (string filename, XmlWriteMode mode), close the
732 stream after writing the dataset. This fixes bug #52581.
733 Also added several writer.Close into finally blocks, so writers are properly
734 closed in case of an exception.
736 2004-03-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
738 * Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
739 * DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
740 * ColumnTypeConverter.cs: Added stub
741 * DefaultValueTypeConverter: Added stub
742 * ConstraintConverter.cs: Added stub
744 2004-03-04 Eran Domb <erand@mainsoft.com>
746 * XmlDataLoader.cs : Xml reading reviewed. Added support for additional xml formats as described
747 in MS.NET documentation (missing DataSet element etc).
749 2004-03-04 Eran Domb <erand@mainsoft.com>
752 * Index.cs : Rollback last changes.
754 2004-03-03 Atsushi Enomoto <atsushi@ximian.com>
756 * Index.cs : justa build fix.
758 2004-03-03 Eran Domb <erand@mainsoft.com>
761 * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint, ConstraintCollection.cs, DataColumn.cs,
762 DataRow.cs, DataRowCollection.cs, DataSet.cs, DataTable.cs : Changes made for using indexes on tables.
763 This changes made for performance improvement.
765 2004-02-08 Eran Domb <erand@mainsoft.com>
767 * XmlSchemaMapper.cs : Read columns is they were written as SimpleContent or as Attributes.
769 2004-02-08 Eran Domb <erand@mainsoft.com>
771 * DataSet.cs: Fix some bugs in ReadXml().
773 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
775 * DataSet.cs: Added missing method that broke the build.
777 2004-02-04 Eran Domb <erand@mainsoft.com>
779 * DataRowCollection.cs (InsertAt): Add a check for null row. Replace check of IndexOf with RowId for
781 * DataSet.cs (GetTableSchema) : Add supprot for simple content columns. Change the condition for a case
782 when all column are attributes (elements count is 0), we still want to add the relations. No relations
783 can be on simple contents.
784 (AddUniqueConstraints) Check that the column of the constraint are not hidden.
785 (AddForeignKeys) Check that the relation has constraints attach to it.
786 * XmlConstants.cs : Added constant.
788 2004-02-04 Eran Domb <erand@mainsoft.com>
790 * DataSet.cs : GetSchemaSerializable() return null and not BuildSchema().
791 DoWriteXmlSchema calls BuildSchema ().
793 2004-02-04 Lluis Sanchez Gual <lluis@ximian.com>
795 * DataRow.cs: Added SetOriginalValue(), which is used to set the original
797 * DataRowCollection.cs: In InsertAt(), perform the correct checks and
799 * DataSet.cs: Fixed method GetChanges(): Parent rows of modified rows must
800 also be added to the dataset.
801 In WriteTable(), do not write unchanged rows when writing the original
802 version of the table.
803 Added WriteIndividualTableContent(), for writing the contents of a single
805 Changed BuildSchema and related methods, so it can generate a schema for
806 any set of tables, not just the tables of the dataset (needed for
807 single datatable serialization).
808 * DataTable.cs: Implemented serialization constructor and GetObjectData method.
809 Also implemented some ReadXmlSchema methods.
810 * XmlDiffLoader.cs: Read and process the xml document directly from XmlReader,
811 instead of loading the full dataset in an XmlDocument. It is faster and
812 saves memory. Also fixed several problems when generating the changes.
813 * XmlSchemaMapper.cs: Support reading schemas for single tables (used by
814 table serialization).
816 2004-02-02 Eran Domb <erand@mainsoft.com>
818 * DataSet.cs : Add indentation to the xml serialization only if we create the XmlWriter.
819 Add the namespace attribute even if namespace is an empty string for inteoperability with MS.NET.
820 * DataTable.cs (NewRow): Create only one DataRowBuilder.
821 Initiate new row with row id -1.
822 * DataRow.cs : Add RowId property.
823 * DataRowBuilder.cs : Add _rowId member.
824 * DataRowCollection.cs (Add) : Use the RowId property of the new row to check if it is already exists in the collection.
826 2004-01-26 Eran Domb <erand@mainsoft.com>
828 * XmlConstants.cs : Added some constants.
829 * DataColumn.cs : Added a method to retrive AutoIncrement value.
830 * XmlDataLoader.cs : Set the value of the foriegn key column, according to the value of the
832 * XmlDiffLoader.cs : Convert the value comming from the xml.
833 * XmlSchemaMapper.cs (Read) : Set the DataSet namespace.
834 (ReadXmlSchemaSequence) : Change the logic that decides if this element is a column or a table.
835 (ReadXmlSchemaElement) : Set the locale of the dataset.
836 (ReadColumn) : Set the column type. Find if the column is AutoIncrement.
837 (GetColumnType) : New method to get the column type from the attribute value.
838 (ReadXmlSchemaUnique) : Improve parsing of XPath. Set the constraint as a PK if needed,
839 and add the constraint to the table.
840 (ReadXmlSchemaKeyref) : Improve parsing of XPath. Create the FK constraint and add it to
842 * DataSet.cs : Improving writing of unique constraints, and foriegn key constraint. Givving them the correct names.
843 Writing more information to the schema for interoperability with ms.net.
844 Improve diffgarm writing mode.
847 2004-01-21 Atsushi Enomoto <atsushi@ximian.com>
849 * TypedDataSetGenerator.cs : Implemented GenerateIdName().
851 2004-01-21 Eran Domb <erand@mainsoft.com>
853 * XmlDataLoader.cs (AddRowToTable) : Give thre new relation correct name.
854 Do not set the child column to be AutoIncrement.
855 Create the new column for the relation as MappingType.Hidden so they will not be serialized
856 when writing the dataset to xml.
858 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
860 * Added missing TypedDataSetGenerator.cs.
862 2004-01-08 Eran Domb <erand@mainsoft.com>
864 * XmlSchemaMapper.cs : Fix a bug. Check if table already in DataSet before adding it.
865 * DataSet.cs (ReadXml) : Fix bugs. Read correctly the xml file with XmlReadMode of DiffGram,
866 InferSchema, ReadSchema and IgnoreSchema.
867 * XmlDataLoader.cs : All modes use the same logic.
868 * XmlDiffLoader.cs : Adding BuildXmlDocument method to the class.
870 2004-01-06 Eran Domb <erand@mainsoft.com>
872 * DataRelationCollection.cs : Use IndexOf in indexer.
873 * DataSet.cs : Adding support for WriteXml with diffgram. Code style changes.
874 * XmlDataLoader.cs : Set the DataSet.enforceConstraints to false before loading the tables.
875 * XmlDiffLoader.cs : Reading nested tables.
876 * XmlSchemaMapper.cs : Reading the relation.
877 * XmlConstants.cs : Adding some constants.
879 2004-01-05 Jackson Harper <jackson@ximian.com>
881 * DataView.cs: Set readonly property of property descriptor. This
884 2004-01-01 Sanjay Gupta <gsanjay@novell.com>
886 * DataRelationCollection.cs : Fixed incorrect generation of default
888 * DataSet.cs : Added missing functionality in WriteXml().
889 * XmlConstants.cs : Added new constants.
891 2003-12-27 Atsushi Enomoto <atsushi@ximian.com>
893 * DataSet.cs : Fixed incorrect WriteXml() signature.
895 2003-12-18 Jackson Harper <jackson@ximian.com>
897 * DataView.cs: Implement AddNew, Delete, and OnListChanged.
899 2003-12-17 Atsushi Enomoto <atsushi@ximian.com>
901 * DataSet.cs, XmlDataLoader.cs : Table name should be encoded before
902 they take shape of xml. This fixed bug #52240
904 2003-12-16 Tim Coleman <tim@timcoleman.com>
905 * KeyRestrictionBehavior.cs:
906 New stubs added for .NET 1.2
910 2003-12-08 Eran Domb <erand@mainsoft.com>
911 * DataColumn.cs (Expression) : Validate the expression.
913 * DataRelationCollection.cs (IndexOf) : Added new method sensetive to case differences in relation name.
914 (Contains, IndexOf, this[], Add) : Call new IndexOf when needed.
916 * DataRow.cs (this[]) : Fix the condition for throwing RowNotInTableException.
917 (RejectChanges) : Detach row when state was Added.
918 (CollectionChanged) : Fix a bug.
920 * ExpressionElement (ValidateExpression) : Fix a bug.
922 * ForeignKeyConstraint.cs (AssertConstraint) : Added implementation. Check all rows from child table have
923 a parent row in the parent table.
924 (_validateColumns) : Fix bugs.
926 * MergeManager.cs (AdjustSchema) : Fix a bug.
928 * XmlDataLoader.cs (ReadModeInferSchema) : Change implementation. Now we can read nested xml, and we generate the relations
931 2003-11-30 Eran Domb <erand@mainsoft.com>
932 * DataColumnCollection.cs (this[string name]) : Use IndexOf to find the column.
933 (Add) : Find if the new column name is the same as the one found in IndexOf.
934 (IndexOf) : New method.
935 (Contains) : Use new IndexOf.
936 (IndexOf) : Use new IndexOf.
938 * DataRelationCollection.cs (DataRelationCollection.AddCore) : Add The Relation to the collection.
939 (DataSetRelationCollection.AddCore) : First add the UniqueConstraint.
941 * DataRow.cs (this[int columnIndex, DataRowVersion version]) : Change exceptions.
942 (Delete) : Detach row if the RowState was Added.
943 (GetChildRows) : Get the array form the ChildTable.
944 (GetParentRows) : Get the array from the ParenTable.
946 * DataRowCollection.cs (Remove) : Check if row state is Detached to avoid exception.
948 * DataSet.cs (IXmlSerializable.ReadXml) : Do not call MoveToContent and ReadEndElement - the XmlSerializationReader does it.
950 * DataTable.cs (PrimaryKey) : Fix bugs.
951 (Compute) : First call Select. Then create ExpressionAggregate to aggregate the Select result.
953 * DataTableCollection.cs (Add) : Fix a bug.
955 * ExpressionElement.cs (ValidateExpression) : Turning ValidateExpression to static.
956 (Result) : Added new interface to AggregateExpression that get DataRow[] as a param.
957 Some code style changes (tab instead of whit spaces, alignment, etc...).
959 * ForeignKeyConstraint.cs (_validateColumns) : Throw correct exception.
961 * MergeManager.cs (AdjustSchema) : Fix a bug.
965 2003-11-26 Miguel de Icaza <miguel@ximian.com>
967 * DataSet.cs: Add a few more missing methods, code style updated
970 2003-11-26 Tim Coleman <tim@timcoleman.com>
972 * ConflictOptions.cs DataAdapterException.cs DataTableReader.cs
973 * DbMetaData.cs FillOptions.cs IDataReader2.cs IDataRecord2.cs
974 * IDataUpdatableRecord.cs IDbAsyncCommand.cs IDbAsyncConnection.cs
975 * IDbExecutionContext.cs IGetTypedData.cs ISetTypedData.cs
976 * LoadOption.cs OperationAbortedException.cs ResultSetOptions.cs
977 * ResultSetSensitivity.cs StatementCompletedEventArgs.cs
978 * StatementCompletedEventHandler.cs UpdateOptions.cs:
979 New classes added for NET_2_0
980 * DBConcurrencyException.cs DataRelation.cs DataSet.cs DataTable.cs
981 * DataTableCollection.cs DataView.cs ForeignKeyConstraint.cs:
982 Modifications to add new NET_2_0 functions
984 2003-11-25 Tim Coleman <tim@timcoleman.com>
988 2003-11-21 Pedro Martínez Juliá <yoros@wanadoo.es>
990 * DataRow.cs: Detached row can be accesible (new rows from data
991 table are detached). Closes but #51263.
993 2003-11-19 Eran Domb <erand@mainsoft.com>
994 * DataRow.cs : Throw exceptions if Row is Detached.
995 (EndEdit) : Check that we are not in middle of ChangeEvent.
996 (AcceptChanges) : Detach the row.
998 * DataRelation.cs : throw correct exception.
999 *UniqueConstraint.cs : throw correct exception.
1002 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1004 * DataRow.cs: Use RemoveInternal instead of Remove because the last
1005 one uses Delete and AcceptChanges.
1007 * DataRowCollection.cs: When removing, Delete and AcceptChanges
1008 method from the row are called. Added an internal method that will
1009 be used by DataRow to "physically" remove the row from the list.
1011 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1013 * DataRowCollection.cs: To follow the specification: Remove and
1014 RemoveAt should remove the row. But needed to call DeletingDataRow
1015 to prepare the deleting.
1017 * DataRow.cs: Don't call DeletingDataRow when it is called by the
1018 method Table.Rows.Remove.
1020 2003-11-09 Pedro Martínez Juliá <yoros@wanadoo.es>
1022 * DataRowCollection.cs: Make the row be deleted by itself. If not,
1023 it fails because we need to call OnRowDeleting and OnRowDeleted. It
1024 is full implemented inside DataRow.
1026 2003-11-05 Eran Domb <erand@mainsoft.com>
1027 * DataView.cs (ctor) : Changing default RowStateFilter to CurrentRow.
1029 2003-11-04 Eran Domb <erand@mainsoft.com>
1030 * DataRow.cs (CheckChildRows) : Improving the implementation - checking child for all FK, and not
1032 (GetChildRows) : Adding some checks.
1033 (GetParentRows) : Adding some checks. Fix a bug in implementation.
1034 (SetParentRow) : Added implementation.
1036 * DataRowCollection.cs (Add) : Added more checks on the row added to the collection.
1037 * DataTable.cs (Copy) : Set the During Loading flag to save unnecessary assertions.
1038 * ForeignKeyConstraint.cs (AssertConstraint) : Fixing bugs in implementation. Checking for DBNull values in the row.
1039 * MergeManager.cs : Check that the target table is not null.
1041 2003-10-27 Eran Domb <erand@mainsoft.com>
1042 * DataColumn.cs (DefaultValue) : Changing null value to DBNull. Checking that the type of the new default value
1043 can be converted to the column type.
1045 * DataRelationCollection.cs (AddCore) : Give the new FK the name of the relation.
1047 * DataRow.cs (EndEdit) : Check if we need to validate the constraints.
1048 (GetParentRows, GetChildRows) : Checking that the row has the wanted version, before accessing the row's value.
1050 * DataRowCollection.cs (Add) : Fixing a bug.
1051 (Clear) : Before clearing the array check that there is no violation of FK constraint.
1053 * DataSet.cs (Prefix) : If value is null chage it to empty string.
1054 (GetXml) : Removing the Processing Instructions from the xml string as in MS ADO.NET.
1056 * ExpressionElement : Adding support for IN expresion.
1058 * DataTable (CopyConstraints) : New method that copy the tables constraints to the copy table.
1059 (Select) : Adding support for DataViewwRowState.
1061 * ForeignKeyConstraint.cs (AssertConstraint) : Adding implementation.
1063 * MergeManager.cs (MergeRow) : Fix bugs.
1065 2003-10-27 Eran Domb <erand@mainsoft.com>
1066 * DataRow.cs (SetColumnValue): Donot check null value when in midle of loading data.
1067 check null values when ending loading data.
1069 * DataSet.cs (RejectChanges) : Imlementation.
1070 (Prefix) : If prefix was changed fire event. Check that the prefix is not null - if null,
1071 change it to empty string.
1073 * DataTable.cs (BeginLoadData, EndLoadData) : Impemantation.
1075 2003-10-22 Eran Domb <erand@mainsoft.com>
1076 * MergeManager.cs : Fixing bugs. Adding check for PrimaryKey matching.
1078 * ConstraintCollection.cs (RamoveAt): Change implemntation.
1080 * DataTableCollection (CanRemove): Removing cast to Constraint.
1082 2003-10-22 Eran Domb <erand@mainsoft.com>
1083 * DataRelationCollection.cs (AddCore): The unique constraint was added even if the createConstraints flag was false.
1084 (Clear): The collection was cleared without removing the relation from the parent and child tables.
1086 * DataSet.cs (Copy, Clone): The Relations of the DataSet were not copy.
1087 (HasChanges, Reset): Imlementation.
1089 * DataTable.cs (HasErrors): There is no flag for errors, instead the table ask her row if they have any errors.
\r
1090 This is because the we do not no when to turn off the flag.
1091 (Locale): Changing implementation to behave like ADO.NET.
1092 (AcceptChanges): Fix bug.
1093 (Clear): Check that this table is not referenced from a foreign key constraint.
1094 (Copy): Do not try to access a deleted row.
1095 (CopyProperties): Copy the PrimaryKey.
1096 (GetChanges, ImportRow): Implementation.
1097 (LoadDataRow): Adding implementation if the table has PrimaryKey.
1098 (ToString): Changing implementation to behave like ADO.NET.
1100 * UniqueConstraint.cs (AssertConstraint): support for Multiple DataColumns in the constraint.
1102 * DataRow.cs (Ctor): In the constructor we initiate the current array, but we should initiate only the proposed array for new rows.
1103 (HasErrors): Implementation.
1104 (Delete): Added checking for child rows of the deleted row.
1105 (EndEdit): Added checking for child row and firing events.
1106 (GetColumnError): Added a check that the method will not return null, as in ADO.NET(an empty string is returned).
1107 (GetColumnsInError): Added a check for null values in column error.
1108 (HasVersion): Added special treatment for special RowState.
1109 (CollectionChanged): More checks to avoid NullReferenceException.
1111 * DataRowCollection.cs (Remove): Fix a bug.
\r
1114 2003-10-01 Duncan Mak <duncan@ximian.com>
1116 More patches from Eran Domb <erand@mainsoft.com>.
1118 * MergeManager.cs: New file.
1120 * DataRelationCollection.cs (AddCore): Check that a
1121 UniqueConstraint is already exists. It loops over the Relations
1122 instead of the Constraints.
1123 (Add, AddCore): The relation was added twice.
1125 * DataSet.cs (Merge, GetChanges, HasChanges): Implemented.
1127 2003-09-30 Duncan Mak <duncan@ximian.com>
1129 Patches from Eran Domb <erand@mainsoft.com>.
1131 * DataRelation.cs (constructor): When the name of the relation is
1132 null, it should return an empty, not "Relation".
1134 * DataRow.cs (AcceptChanges): Added special case for
1136 (CancelEdit): Set editing flag to false.
1137 (IsNull): Check that the value is DBNull.
1139 * DataRowCollection.cs (Add): There was no check that the table of
1140 the collection is owned by a DataSet.
1142 * DataSet.cs (OnMergeFailed): Added.
1144 * UniqueConstraint.cs (AssertConstraint): There was no check that
1145 values in the row are not null, where it is a primary key
1146 column. Also check that the row has a proposed version, if not,
1147 get the current version when we compare the rows.
1149 2003-09-25 Duncan Mak <duncan@ximian.com>
1151 Patches from Eran Domb <erand@mainsoft.com>.
1153 * DataColumn.cs (Unique): Implemented.
1156 * ConstraintCollection.cs:
1157 * ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
1158 an Exception thrown. Details:
1159 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html
1161 * DataRowCollection.cs (Add): There is no checking that there is
1162 no violation of the unique constrains.
1164 * UniqueConstraint.cs (AssertConstraint): There is no checking on
1165 all columns in the constraint.
1167 * DataTableCollection (Add): Correctly throw an Exception, more
1169 http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002117.html
1170 (Remove, RemoveAt): Implemented.
1172 2003-07-31 Duncan Mak <duncan@ximian.com>
1174 * DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
1176 2003-07-25 Ravi Pratap <ravi@ximian.com>
1178 * DataRelation.cs (OnPropertyChanging): Calling the 'Invoke'
1179 method on a delegate is disallowed - fix this.
1181 2003-07-22 Lluis Sanchez Gual <lluis@ximian.com>
1183 * DataSet.cs: Implemented IXmlSerializable interface. Added basic support for
1184 xml serialization. Modified method of writing schema. Now it creates
1185 a XmlSchema object and serializes it using XmlSerializer.
1186 * XmlConstants.cs: Added constants for data type names.
1187 * XmlDataLoader.cs: Fixed deserialization of data. Now converts data to the
1188 type specified in the column.
1190 2003-04-20 Alan Tam <Tam@SiuLung.com>
1192 * DataRelationCollection.cs: Fix a bug that prevent relations
1193 from being added via DataSet.
1195 2003-04-12 Ville Palo <vi64pa@kolumbus.fi>
1197 * UniqueConstraint.cs: one tiny fix.
1199 2003-04-05 Ville Palo <vi64pa@kolumbus.fi>
1201 * DataTable.cs: Remove UniqueConstraints when adding new ones
1203 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
1205 * DataColumnCollection.cs: Little 'case sensitive' fix
1207 2003-04-04 Ville Palo <vi64pa@kolumbus.fi>
1209 * DataRow.cs: AutoIncrement handling to Constructor
1210 * DataRowCollection.cs: This doesnt need anymore AutoIncrements
1212 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
1214 * DataTable.cs: Some fixes to PrimaryKey etc...
1215 * UniqueConstraint.cs: Little clean up
1217 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
1219 * DataTable.cs: Tiny fix to ToString () -method
1221 2003-03-27 Ville Palo <vi64pa@kolumbus.fi>
1223 * ConstraintCollection.cs: Little fix.
1224 * DataColumn.cs: Added new internal method SetUnique()
1225 * UniqueConstraint.cs: some little fixes
1227 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
1229 * DataRowCollection.cs: Bugfixes, implementation,...
1231 2003-03-26 Ville Palo <vi64pa@kolumbus.fi>
1233 * DataColumn.cs: If DataType if set to something else than short, int
1234 or long and AutoIncrement is true, AutoIncrement is must set to false.
1236 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1239 (BeginEdit): fixed array bound problem when a column has been added.
1240 (EndEdit): just assign proposed to current as proposed is set to null.
1241 This also fixes another array boudn problem.
1243 2003-03-21 Alan Tam <Tam@SiuLung.com>
1245 * DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
1246 EndEdit and AcceptChanges to act correctly according to DataRowState
1248 * DataRowCollection.cs: Call AttachRow and DetachRow when a row is
1249 attached and detached from the collection.
1251 2003-03-20 Alan Tam <Tam@SiuLung.com>
1253 * DataColumn.cs: Store empty string for Expression when null is passed in.
1254 Classes generated by XSD.exe passes null by default.
1256 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
1258 * DataColumnCollection.cs: Tiny clean up
1260 2003-03-16 Ville Palo <vi64pa@kolumbus.fi>
1262 * DataColumn.cs: little fixes.
1263 * DataColumnCollection.cs: Lots of little fixes and improvments.
1265 2003-03-12 Alan Tam <Tam@SiuLung.com>
1267 * DataSet.cs: Fixed a bug that the file written does not close correctly.
1269 2003-03-08 Alan Tam <Tam@SiuLung.com>
1271 * DataRelationCollection.cs: Removed the mis-overridden methods
1272 * DataRow.cs: Fixed an attribute
1273 * DataSet.cs: Fixed the modifiers
1275 2003-03-06 Aleksey Demakov <avd@openlinksw.com>
1277 * DataTableCollection.cs: The Contains (string name),
1278 IndexOf (string name) methods, and item[string name] indexer
1279 now behave more like .NET with respect to case-sensitivity.
1280 That is if there is an exactly matching item then this one is used.
1281 If there is only one item differing in case then it used.
1282 If there are more than one item differing in case then
1283 Contains returns false, IndexOf returns -1, and item[]
1284 throws an ArgumentException.
1286 2003-02-28 Ville Palo <vi64pa@kolumbus.fi>
1288 * ExpressionElement.cs: More implementation.
1290 2003-02-28 Alan Tam <Tam@SiuLung.com>
1291 * DataSet.cs: Changed WriteTable so that it now calls the newly written
1292 WriteObjectXml to direct the call to the respective XmlConvert method.
1293 This fixes the wrong format written to XML files of bool, float,
1294 double, DateTime and TimeSpan types.
1296 2003-02-25 Alan Tam <Tam@SiuLung.com>
1298 * DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
1299 * DataRelationCollection.cs: Implemented AddRange and Contains.
1300 Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
1301 Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
1302 Reimplemented most Add methods to eliminate duplicated checks.
1303 Centralized RelationName generation procedure in GetNextDefaultRelationName.
1305 2003-02-25 Alan Tam <Tam@SiuLung.com>
1307 * DataColumn.cs: Fixed wrong storage representation of Expression
1308 (using empty string instead of null) so that ToString() returns nothing.
1309 * DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
1310 auto column naming now works as expected. Reimplemented some Add methods
1311 to eliminate code duplication.
1313 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
1315 * DataTable.cs: DataTable.CaseSensitive follows parent
1316 DataSet.CaseSensitive property if DataTable.CaseSensitive has never
1317 been changed directly from DataTable
1319 2003-02-19 Ville Palo <vi64pa@kolumbus.fi>
1321 * DataSet.cs: When CaseSensitive property is changed all of the Tables
1322 of DataSet have to change too
1324 2003-02-19 Daniel Morgan <danmorg@sc.rr.com>
1326 * InternalDataCollectionBase.cs: revert change to field
1329 * DataViewManager.cs
1332 * DataSet.cs: commented use of DesignerAttribute
1333 because it broke the build. According to MSDN,
1334 DesignerAttribute does not have a zero-argument constructor
1336 2003-02-18 Ville Palo <vi64pa@kolumbus.fi>
1338 * DataColumnCollectin.cs: Little fix for indexer and case sensitivity
1340 2003-02-18 Alan Tam <Tam@SiuLung.com>
1342 * DataRow.cs: Implemented GetParentRow and GetParentRows.
1343 * DataSet.cs: Added stub for HasChanges, InferXmlSchema,
1344 OnPropertyChanging, OnRemoveRelation, OnRemoveTable,
1345 RaisePropertyChanging.
1346 * DataTable.cs: Implemented NewRowArray.
1347 * DataTablePropertyDescriptor: Fixed a modifier.
1348 * InternalDataCollectionBase.cs: Fixed modifiers. Implemented SyncRoot.
1349 * PropertyCollection.cs: Minor fix.
1350 * ConstraintCollection.cs DataColumn.cs DataColumnCollection.cs
1351 * DataRelation.cs DataRelationCollection.cs DataRow.cs
1352 * DataRowCollection.cs DataRowState.cs DataSet.cs DataTable.cs
1353 * DataTableCollection.cs DataTablePropertyDescriptor.cs DataView.cs
1354 * DataViewManager.cs DataViewRowState.cs DataViewSettingCollection.cs
1355 * ForeignKeyConstraint.cs InternalDataCollectionBase.cs
1356 * PropertyCollection.cs UniqueConstraint.cs: Added missing attributes
1358 2003-02-08 Ville Palo <vi64pa@koti.soon.fi>
1360 * ExpressionElement.cs: More implementation
1362 2003-02-05 Alan Tam <Tam@SiuLung.com>
1364 * DataSet.cs: Added framework for DataSet.Update Implemented missing
1365 methods GetSchemaSerializable, GetSerializationData,
1366 ReadXmlSerializable, ShouldSerializeRelations and ShouldSerializeTables
1368 * DataTable.cs: Implemented missing methods CreateInstance and
1369 GetRowType for DataTable
1371 2003-02-03 Ville Palo <vi64pa@koti.soon.fi>
1373 * DataSet.cs: Implemented private method MapType for
1374 mapping datatypes for XmlSchema
1376 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1378 * DataView.cs: implemented Dispose.
1380 2003-01-30 Ville Palo <vi64pa@koti.soon.fi>
1382 * ExpressionElement.cs: Added new file. This file is for parsing
1383 and DataData.Select () -methods and DataColumn.Expression -property
1384 * DataTable.cs: Implemented Select(string) -method
1386 2003-01-28 Ville Palo <vi64pa@koti.soon.fi>
1388 * DataSet.cs: One little fix to writing xml
1390 2003-01-27 Ville Palo <vi64pa@koti.soon.fi>
1392 * XmlSchemaMapper.cs: Some fixes.
1393 * DatSet.cs: Some XmlFixes and BeginInit ()/ EndInit () -fix
1396 2003-01-24 Ville Palo <vi64pa@koti.soon.fi>
1398 * UniqueConstraint.cs: Do not set columns Unique property true
1400 * ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table
1402 2003-01-18 Ville Palo <vi64pa@koti.soon.fi>
1404 * DataTableCollection.cs: Now names new DataTable if it doesn't
1405 already have a name.
1407 2003-01-17 Ville Palo <vi64pa@koti.soon.fi>
1409 * XmlSchemaMapper.cs: Improvments.
1410 * XmlConstaints.cs: Added more constants.
1411 * DataSet.cs: Improvments of reading and writing xml
1412 * DataColumn.cs: Added default values of properties.
1414 2003-01-14 Ville Palo <vi64pa@koti.soon.fi>
1416 * XmlSchemaMapper.cs: Some improvments
1418 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
1420 * DataRowCollection.cs: Added IndexOutOfRangeException
1421 * DataTableCollection.cs: Added OnCollectionChanging and
1422 OnCollectionChanged events.
1423 * DataSet.cs: Many fixes. Implemented Clone () and Copy () -methods
1424 * DataTable.cs: Implemented Copy () and Clone () methods.
1425 * XmlDataLoader.cs: some fixes.
1426 * XmlSchemaMapper.cs: comments.
1428 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1430 * DataColumnPropertyDescriptor.cs: store columnIndex in the .ctor.
1432 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1434 * DataColumnPropertyDescriptor.cs: fixed typo.
1435 * DataViewManagerListItemTypeDescriptor.cs: added new internal property
1436 to get the DataViewManager and removed TablePD class.
1437 * DataTablePropertyDescriptor.cs: TablePD class is now this one as
1438 suggested by danmorg.
1440 2003-01-06 Ville Palo <vi64pa@koti.soon.fi>
1442 * XmlDataLoader.cs: Moved diffgram stuff to new internal class
1444 * XmlDiffLoader.cs: new class for diffgrams. Added handling of
1445 diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
1447 2003-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1449 * DataView.cs: made dataViewManager internal.
1450 * DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
1451 properties of the object, but the values of the columns present in a
1454 * DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
1455 which returns a PropertyDescriptorCollection. Created a new class
1456 derived from PropertyDescriptor that treats Table as an object whose
1457 properties are DataRowView.
1459 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
1461 * XmlSchemaMapper.cs: Added handling for Constraints, Attributes.
1463 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
1465 * DataColumn.cs: ExtendedProperties is by default !null-
1467 2003-01-04 Ville Palo <vi64pa@koti.soon.fi>
1469 * DataColumnCollection.cs: Add (DataColumn Column) -method didn't
1470 set column's ordinal.
1472 2003-01-02 Ville Palo <vi64pa@koti.soon.fi>
1475 * XmlDataLoader.cs: XmlReader closing fixes.
1476 * XmlSchemaReader.cs: Added support for ref=
1478 2003-01-01 Ville Palo <vi64pa@koti.soon.fi>
1481 - Added XmlReader and XmlWriter Closing.
1482 - Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
1483 * XmlSchemaMapper.cs
1484 - Much better way IMHO to map xmlschema than the old one in
1485 DataSet.cs. Its, more flexible, cleaner, ...
1487 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
1489 * XmlDataLoader.cs: Reading diffgrams.
1491 2002-12-29 Ville Palo <vi64pa@koti.soon.fi>
1493 * DataRow.cs: Little fix to indexer and DataColumnCang* trigger fixes.
1494 * DataTable.cs: Added ChanginDataColumn () for triggering
1495 DataColumnChanging event
1497 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
1499 * DataSet.cs: Indentations to WriteXmlSchema () and one little fix
1501 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
1503 * DataSet.cs: Indentations to WriteXml ()
1505 2002-12-27 Ville Palo <vi64pa@koti.soon.fi>
1508 * XmlDataLoader.cs: Moved ReadXml -stuff from DataSet.cs to new
1509 class XmlDataLoader.cs
1511 2002-12-19 Ville Palo <vi64pa@koti.soon.fi>
1513 * DataSet.cs Implemented ReadXml with XmlReadMode.ReadSchema
1515 2002-12-18 Ville Palo <vi64pa@koti.soon.fi>
1517 * DataSet.cs: Started to implement ReadXml-methods.
1519 2002-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1521 * DataSet.cs: implemented DefaultViewManager and GetList.
1523 * DataViewManager.cs: a bit of work on IList and ITypedList needed by
1524 DataList in System.Web.
1526 * DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
1529 2002-12-16 Ville Palo <vi64pa@koti.soon.fi>
1532 * DataTable.cs: Fixed NullException (rollback -event)
1533 * DataSet.cs: WriteXml -method does not anymore write <?xml... row.
1535 2002-12-15 Ville Palo <vi64pa@koti.soon.fi>
1538 * DataRowCollection.cs: Moved event triggering from DataRow to
1541 2002-12-09 Ville Palo <vi64pa@koti.soon.fi>
1543 * DataSet.cs: Little fix to WriteTable () -method
1544 and DoReadXmlSchema () -method.
1546 2002-12-06 Ville Palo <vi64pa@koti.soon.fi>
1548 * DataSet.cs: Clean up to reading xmlschema. This looks much better
1549 now (work better too), but it not working correctly yet.
1551 2002-12-04 Ville Palo <vi64pa@koti.soon.fi>
1554 * DataRowCollection.cs: Added some event handlins stuff.
1555 * DataSet.cs: Some fixes.
1556 * DataTable.cs: Added event handlers.
1558 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
1560 * DataRowChangeEventArgs.cs: Implemented Action and Row properties
1562 2002-11-30 Ville Palo <vi64pa@koti.soon.fi>
1564 * System.Data/DataRow.cs: Added internal property XmlDataID
1566 2002-11-29 Ville Palo <vi64pa@koti.soon.fi>
1568 * DataSystem.Data.DataTableCollection.cs:
1569 Removed HashTable. There could be situations where DataTable
1570 is added to collection before it hava TableName. So using
1571 HashTable is impossible.
1573 2002-11-19 Carlos Guzmán Álvarez <carlosga@telefonica.net>
1575 * DataRow.cs: an object that is equal to null
1576 should be allowed to be set in this indexer too
1579 2002-11-06 Daniel Morgan <danmorg@sc.rr.com>
1581 * DataColumnPropertyDescriptor.cs: added file
1583 * System.Data/DataRowView.cs: started implementation
1585 * DataTable.cs: stubbed more interfaces. Implemented
1586 IListSource.GetList()
1588 * DataView.cs: stubbed more interfaces. Implemented
1589 some properties and methods: GetEnumerator(),
1590 ITypedList.GetItemProperties, Item indexer, CopyTo()
1592 2002-05-18 Nick Drochak <ndrochak@gol.com>
1594 * DataRow.cs: Fix typo.