ChangeLog 115 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093
  1. 2006-05-31 Gert Driesen <[email protected]>
  2. * DataTable.cs: Renamed initInProgress to fInitInProgress. BeginInit
  3. and EndInit must only be virtual in 2.0 profile. Set eol-style to CRLF.
  4. 2006-05-31 Senganal T <[email protected]>
  5. * XmlDataInferenceLoader.cs :
  6. - InferTableElement : Repeated element should result in a single
  7. inferred table.
  8. Patch from Deepak Kr Velachha
  9. 2006-04-21 Senganal T <[email protected]>
  10. * DataRowCollection.cs :
  11. - Find : If search on the table using PrimaryKey fails and if
  12. index is not being maintained (during table load), search the
  13. entire table.
  14. - Find (int) : Removed. Deadcode.
  15. - Clear :
  16. - Not necessary to delete each row from the Index.
  17. Just reset the Indexes after cleaning up the row
  18. collection.
  19. - Simplify dependency check for child tables
  20. * DataTable.cs :
  21. - LoadDataRow :
  22. - Do not use DataRowCollection.Find to search for
  23. existing records as this wud check even newly loaded rows.
  24. Use Index.Find.
  25. - Do not add new records to Index. Update Index only
  26. if an existing record is modified. New records will be
  27. taken care by EndLoadData.
  28. 2006-04-19 Senganal T <[email protected]>
  29. * XmlHelper.cs : A helper class for encoding/decoding schema names.
  30. Caches the Schema names to minimize encoding/decoding operations and
  31. duplicate strings created.
  32. * XmlSchemaWriter :
  33. - Use XmlHelper for encoding/decoding schema names.
  34. - Encode ConstraintNames when writing as xml.
  35. * DataSet.cs
  36. * XmlDataReader.cs
  37. * XmlDataInferenceLoader.cs
  38. * XmlSchemaDataImporter.cs
  39. - Use XmlHelper for encoding/decoding schema names.
  40. * DataTableCollections : Minor code refactor.
  41. * DataRow.cs : Create XmlElement only if required.
  42. 2006-04-07 Senganal T <[email protected]>
  43. * DataSet.cs :
  44. - InternalEnforceConstraints() : Reset Indexes of all tables
  45. before validating constraints. Fixes #78010
  46. 2006-03-04 Boris Kirzner <[email protected]>
  47. * TypeDataSetGeneratorException.cs: fix .Net Soap serialization compatibility.
  48. 2006-03-25 Senganal T <[email protected]>
  49. * DataRow.cs :
  50. - RejectChanges : When row is in Deleted state, add the row back to
  51. Indexes and Validate the row.
  52. 2006-03-23 Senganal T <[email protected]>
  53. * DataTable.cs :
  54. - LoadDataRow : Add the row to the indexes, when loading a new row.
  55. 2006-03-22 Senganal T <[email protected]>
  56. * DataTable.cs :
  57. - PrimaryKey : Set the IsPrimaryKey attribute before Removing from collection.
  58. - RemoveUniqueConstraints : Removed. dead code.
  59. * DataColumn.cs :
  60. - Unique :
  61. - If adding/removing constraint fails, retain Unique value
  62. - Remove redundant code
  63. * UniqueConstraint.cs :
  64. - SetIsPrimaryKey : Added. Sets the value of IsPrimaryKey.
  65. - RemoveFromConstraintCollectionCleanup : If constraint is on a single column, then
  66. set Unique for that column to false.
  67. - CanRemoveFromCollection : Do not remove constraint, if its a PrimaryKey
  68. 2006-03-20 Senganal T <[email protected]>
  69. * DataSet.cs :
  70. - CopyRelations () : When copying the relation, do not add constraints
  71. automatically for the relation.
  72. - OnMergeFailed () : If merge fails and no handler is set for the MergeFailedEvent,
  73. then throw DataException
  74. * ConstraintCollection.cs :
  75. - Add () : Check if a constraint already exists on the Columns that are being
  76. constrained.
  77. - IndexOf () : Do not check for equivalent constraints, check for the exact instance.
  78. * MergeManager.cs ():
  79. - AdjustSchema () :
  80. - Handle the MissingSchemaAction.Error case,
  81. - Do not create constraints when mergin the DataRelation
  82. - Follow the semantics for schema merge/validation when constraints are already present
  83. in the target DataSet.
  84. - AdjustPrimaryKeys () :
  85. - Code cleanup
  86. - Verify Order of Columns in the PrimaryKey when merging.
  87. - ResolveColumns : Changed the arument to DataSet. Simplifies code elsewhere.
  88. - CompareColumnArrays, CompareColumnArrays : Helper funtions.
  89. 2006-03-09 Senganal T <[email protected]>
  90. * DataRow.cs :
  91. - RejectChanges () : Add the row to index, if it was in deleted state and
  92. Update the index if in Modified State.
  93. - AcceptChanges () : Do not update the Indexes.
  94. - EndEdit () : Update the indexes even if BeginLoadData has been called
  95. on the table. Ideally, indexes should not be maintained during DataLoad,
  96. but this needs to handled in multiple places correctly. For now, just maintain
  97. the index to ensure correct operation.
  98. 2006-03-05 Senganal T <[email protected]>
  99. * DataSet.cs :
  100. - BeginInit (), EndInit () : Implemented methods
  101. - InitInProgress : Added.
  102. * DataTable.cs
  103. - EndInit () : Move the adding of columns and constraints
  104. to FinishInit.
  105. - FinishInit () : Added. Adds the Constraints and Columns
  106. to the collection.
  107. - InitInProgress : Added.
  108. * Constraint.cs
  109. - FinishInit () : Added. Virtual method
  110. - InitInProgress : Added. Virtual property
  111. * UniqueConstraint.cs
  112. * ForeignKeyConstraint.cs
  113. - FinishInit () : Added.
  114. - InitInProgress : Added.
  115. - DataColsNotValidated : Removed.
  116. * ConstraintCollection.cs
  117. - PostAddRange : Removed event
  118. - PostEndEdit () : Renamed to PostAddRange
  119. - Add () : Simplified the testing if constraint is initialized
  120. - AddRange () : Simplified initializing the constraints
  121. * DataTableCollection.cs
  122. - PostAddRange () : Added. Adds the tables to the collection
  123. * DataColumnColletion.cs
  124. - PostEndInit () : Renamed to PostAddRange.Also, add column to
  125. the collection only if not null.
  126. Added/Implemented methods for design time support. Renamed some methods for consistency
  127. in naming across classes for methods serving the same purpose.
  128. 2006-02-24 Senganal T <[email protected]>
  129. * UniqueConstraint.cs :
  130. - ChildConstraint : Added. Simplifies verifying if constraints are
  131. related.
  132. - CanRemoveFromCollection : Fixed the check to verify if constraints is
  133. linked to a ForeignKeyConstraint. Fixes #77630
  134. * ForeignKeyConstraint.cs :
  135. - _validateRemoveParentConstraint : Removed. Not used anymore
  136. - ParentConstraint : Added. Simplifies verifying if constraints are
  137. 2006-02-22 Senganal T <[email protected]>
  138. * DataRow.cs
  139. - RejectChanges : Do not remove Row from Indexes when state is Deleted.
  140. - CheckChildRows : When checking for the ChildRows, use the current value
  141. and not the original value.
  142. 2006-02-18 Atsushi Enomoto <[email protected]>
  143. * CustomDataClassGenerator.cs : Patch by Marek Habersack. xsd now
  144. outputs AutoIncrement, AutoIncrementSeed, AutoIncrementStep and
  145. ReadOnly properties. This fixes bug #77576.
  146. 2006-02-17 Chris Toshok <[email protected]>
  147. * System.Data/DataSet.cs, System.Data/DataView.cs,
  148. System.Data/ForeignKeyConstraint.cs,
  149. System.Data/DataViewManager.cs, System.Data/DataRow.cs,
  150. System.Data/DataSysDescriptionAttribute.cs,
  151. System.Data/UniqueConstraint.cs, System.Data/DataTable.cs,
  152. System.Data/DataRelation.cs: lots of attribute work, removing
  153. DataSysDescription atributes (and marking the class obsolete) for
  154. 2.0.
  155. 2006-02-17 Chris Toshok <[email protected]>
  156. * DataAdapterException.cs: remove this file.
  157. 2006-02-17 Chris Toshok <[email protected]>
  158. * DataTableReader.cs: Switch to the (bool) form of Dispose to
  159. override, as the no-arg form isn't virtual.
  160. * Constraint.cs: #ifdef out more DataSysDescriptions.
  161. * ConstraintException.cs: add ..ctor (string, Exception) for 2.0.
  162. 2006-02-17 Chris Toshok <[email protected]>
  163. * DataColumn.cs: #ifdef all the DataSysDescriptions !NET_2_0.
  164. * AdapterMappingException.cs: nuke this file.
  165. * IDbAsyncConnection.cs, IDbAsyncCommand.cs, IGetTypedData.cs,
  166. ISetTypedData.cs, IDataReader2.cs, IDataSources.cs,
  167. IDbExecutionContext.cs, IDataRecord2.cs, IDataUpdatableRecord.cs:
  168. remove these 2.0 files.
  169. 2006-02-17 Chris Toshok <[email protected]>
  170. * ConstraintCollection.cs: in 2.0, class is not serializable and
  171. is sealed. make all the "virtuals" #if !NET_2_0 as well.
  172. * Constraint.cs: not serializable in 2.0.
  173. * DataColumnCollection.cs: in 2.0, class is not serializable and
  174. is sealed. make all the "virtuals" #if !NET_2_0 as well.
  175. * DataRelationCollection.cs: not serializable in 2.0.
  176. * DataRelation.cs: not serializable in 2.0.
  177. * DataRowBuilder.cs: class is sealed in 2.0.
  178. * DataRowCollection.cs: in 2.0, class is not serialized and is
  179. sealed. Also, Add isn't virtual in 2.0 (as the class is sealed).
  180. * DataRow.cs: not serializable in 2.0.
  181. * DataSet.cs: remove some DataSysDescriptions from the 2.0 build,
  182. and s/GetDataReader/CreateDataReader.
  183. * DataTableCollection.cs: in 2.0, class is not serializable and is
  184. sealed. make all the "virtuals" #if !NET_2_0 as well.
  185. * DataTableReader.cs: remove VisibleFieldCount property.
  186. * DataViewSettingCollection.cs: not serializable in 2.0.
  187. * DataViewSetting.cs: not serializable in 2.0.
  188. * ForeignKeyConstraint.cs: serializable in 2.0.
  189. * OperationAbortedException.cs: class is sealed and serializable.
  190. * PropertyCollection.cs: serializable in 2.0.
  191. * StatementCompletedEventArgs.cs: class is sealed.
  192. * UniqueConstraint.cs: not serializable in 2.0.
  193. 2006-02-16 Senganal T <[email protected]>
  194. * XmlSchemaWriter :
  195. WriteDataSetElement : Add an annotation element if exists.
  196. WriteDataRelationAnnotation : New. Write a DataRelation as an annotation.
  197. WriteConstraints : Write ForeignKeyConstraint even when not associated with
  198. a DataRelation and add a "ConstraintOnly=true" attribute for such constraints.
  199. * XmlConstants.cs : Add a new constant - ConstraintOnly
  200. * XmlSchemaImporter.cs :
  201. - ConstraintStructure : Add field ,IsConstraintOnly, to distinguish if a foreignkeyconstraint
  202. is related to relation or not.
  203. - GenerateRelation : Handle the case when parentkey and childkey contain multiple columnnames.
  204. 2006-02-11 Senganal T <[email protected]>
  205. * UniqueConstraint.cs :
  206. - PostAddRange : Check PrimaryKey is not already set for the table
  207. * DataTable.cs :
  208. - PrimaryKey : follow ms.net behavior when BeginInit , EndInit is used.
  209. - Add new priamry key only when EndInit is called.
  210. - Incase of an error, retain old primarykey
  211. - EndInit :
  212. - Add Constraints after columns are added.
  213. - If both PrimaryKey Property and PrimaryKey Constraint are set,
  214. then the Constraint takes precedence.
  215. fixes bug #77404
  216. 2006-02-03 Senganal T <[email protected]>
  217. * DataTableCollection.cs :
  218. - Remove () : Check for invalid TableName
  219. - Add () : Verify the table doesn't belong to another dataset
  220. * DataView.cs :
  221. - CompleteLastAdded () : Do not raise ItemAdded Event as it is
  222. already raised in AddNew().
  223. * DataColumn.cs :
  224. - Expression : Verify that the Column names in the expression are valid
  225. - ResetCollectionInfo : Renamed to ResetColumnInfo
  226. * DataRow.cs :
  227. - RejectChanges () : Reorganized the code to do the Right thing.
  228. - Item : Dont check for detached and deleted rows as these are
  229. done elsewhere.
  230. * DataRowCollection.cs :
  231. - Add () : Check for null value
  232. * DataTable.cs :
  233. - PrimaryKey : Set AllowDBNull=false for all the key columns
  234. - ImportRow : Import the row only if it is not in Detached state. if in Deleted
  235. state, perform the validation when AcceptChanges/RejectChanges is called.
  236. * DataColumnCollection.cs :
  237. - Add : Validate the column expression before adding it to the collection.
  238. - GetColumnDependency () : New. Get the dependencies on the column
  239. - CanRemove : Move checks to GetColumnDependency
  240. - Clear () : Simplified code. Remove unncessary checks.Also, dont check Expression col.
  241. - IndexOf - Check argument.
  242. Overall , appropriate error msg's are thrown if Remove/Clear fails. Removed a few
  243. redundant checks performed and moved the common code to GetColumnDependency.
  244. 2006-01-31 Senganal T <[email protected]>
  245. * DataSet.cs : Modified CopyRelations ()
  246. - Added code to copy ForeignKeyConstraints. Fixes #77411.
  247. 2006-01-18 Boris Kirzner <[email protected]>
  248. * DataColumn.cs: added PropertyCchangedEvent handling.
  249. 2006-01-17 Senganal T <[email protected]>
  250. * DataRow.cs:
  251. ItemArray : Modified to raise RowInTableException only if
  252. the concerned row has been removed from the table.Fixes
  253. bug #77267
  254. 2006-01-16 Boris Kirzner <[email protected]>
  255. * DataTable.cs: Drop dependend indexes on column removal.
  256. 2006-01-16 Atsushi Enomoto <[email protected]>
  257. * CustomDataClassGenerator.cs :
  258. When a DataRelation connects the same table as parent and child,
  259. generate parent row property as BlahRowParent. Fixed bug #77248.
  260. 2006-01-10 Senganal T <[email protected]>
  261. * DataRowCollection.cs
  262. - Added ListChangedEvent to notify reset of the collection.
  263. * DataView.cs
  264. - Subscribes to the ListChangedEvent of DataRowCollection
  265. Fixes bug #77188
  266. 2006-01-09 Senganal T <[email protected]>
  267. * RelatedDataView.cs
  268. * DataColumn.cs
  269. - Resolving a name clash in IExpression
  270. 2006-01-06 Senganal T <[email protected]>
  271. * DataColumn.cs
  272. * DataColumnCollection.cs
  273. - Reset the Parameters of DataColumn to Default Values when
  274. column is removed from the Table's Collection
  275. 2006-01-03 Senganal T <[email protected]>
  276. * DataTable.cs :
  277. - ParseSortString() : Changed the way the sort string is parsed.
  278. Using a regex to parse the string.Fixes bug #77104
  279. 2005-12-12 Konstantin Triger <[email protected]>
  280. * DataRow.cs: Added index Updates.
  281. EndEdit() fixed to first update indices and then AssertConstraints
  282. based on those indices.
  283. Added Validate() and AssertConstraints() functions.
  284. * DataRowCollection.cs: Removed ValidateDataRowInternal().
  285. * DataTable: Fixed Clear().
  286. 2005-12-06 Atsushi Enomoto <[email protected]>
  287. * CustomDataClassGenerator.cs : (InitializeFields) handle AllowDBNull
  288. and DefaultValue as well. Patch by Marek Habersack (bug #76709).
  289. 2005-12-01 Miguel de Icaza <[email protected]>
  290. * DataSet.cs: Apply patch from Robert Jordan, to fix #76817
  291. 2005-11-26 Konstantin Triger <[email protected]>
  292. * ConflictOption.cs: TARGET_JVM include.
  293. 2005-11-11 Senganal T <[email protected]>
  294. * ConflictOption.cs (new file)
  295. - Added ConflictOption Enumeration
  296. * DataTableReader.cs
  297. * IDataRecord2.cs
  298. - GetProviderSpecificFieldType : Corrected the method name
  299. 2005-11-11 Senganal T <[email protected]>
  300. * DataSet.cs : Added the SchemaSerializationMode Property for NET_2_0
  301. compatibility.
  302. * SchemaSerializationMode.cs : Added SchemaSerializationMode Enumeration
  303. for NET_2_0 compatibility.
  304. Fixes bug #76517
  305. 2005-10-20 Atsushi Enomoto <[email protected]>
  306. * XmlSchemaWriter.cs : escape names in the schema with XmlConvert.
  307. Fixed bug #76480.
  308. 2005-10-14 Sureshkumar T <[email protected]>
  309. * DataView.cs: Correct multiple throwing of events. Patch from
  310. Marc Haisenko.
  311. (RowStateFilter): Fire ListChangedEvent.
  312. (ApplyDefaultSort): Fire ListChangedEvent.
  313. (CompleteLastAdded): call UpdateIndex to remove the row from rowCache.
  314. (IBindingList.Find): Implemented.
  315. 2005-10-11 Sureshkumar T <[email protected]>
  316. * DataView.cs (IBindingList): Implemented methods for IBindingList interface.
  317. 2005-09-26 Lluis Sanchez Gual <[email protected]>
  318. * DataSet.cs: In IXmlSerializable.GetSchema, return null again for
  319. untyped datasets. Fixes bug #76101.
  320. 2005-09-21 Boris Kirzner <[email protected]>
  321. * DataRow.cs: Fixes for index updating.
  322. * DataTable.cs:
  323. - Reset case-sensitive indexes also if their filter contains columns
  324. of type string.
  325. - Use GetIndex instead of FindIndex, so the indexes created in Select()
  326. are reused.
  327. * RelatedDataView.cs: implement IExpression.Equals() and GetHashCode().
  328. 2005-09-20 Sureshkumar T <[email protected]>
  329. * DataView.cs (Sort): Apply default Sorting Order if Sort property
  330. is reset to null. Sort property handles this. Patch from Marc.
  331. * DataTable.cs (ParseSortString): Patch from Marc Haisenko for
  332. allowing [ & ] in DataView.Sort string.
  333. 2005-09-01 Boris Kirzner <[email protected]>
  334. * System.Data/DataRowCollection.cs: indexes should be updated even if
  335. EnforceConstraints is false. Check for EnforceConstraints in
  336. ValidateDataRowInternal.
  337. 2005-08-08 Gert Driesen <[email protected]>
  338. * DataView.cs: Changed accessibility of dataTable, rowState and
  339. rowCache field to internal to fix public API. Assigned TypeConverter
  340. to Table property.
  341. * ForeignKeyConstraint.cs: IsConstraintViolated is now internal.
  342. * Constraint.cs: IsConstraintViolated is now internal.
  343. * UniqueConstraint.cs: IsConstraintViolated is now internal.
  344. 2005-08-05 Atsushi Enomoto <[email protected]>
  345. * XmlSchemaDataImporter.cs : When "dataset element" has identity
  346. constraints, then first reserve constraints room for them and then
  347. process elements, skipping pkey creation if there is already
  348. reserved one. Fixed bug #75711.
  349. 2005-08-05 Atsushi Enomoto <[email protected]>
  350. * XmlDataInferenceLoader.cs : in GetElementMappingType(), don't guess
  351. the same (QNamed) element again when it was already evaluated as
  352. not simple type. Fixed one part of bug #75711.
  353. 2005-08-02 Boris Kirzner <[email protected]>
  354. * XmlSchemaDataImporter.cs : Data relations should be processed after the
  355. keys, so no redundant constraints created while relations processing.
  356. 2005-07-25 Boris Kirzner <[email protected]>
  357. * FillOptions.cs, ConflictOptions.cs, UpdateOptions.cs:
  358. added ifdef TARGET_JVM.
  359. 2005-07-22 Sureshkumar T <[email protected]>
  360. * DataViewSettingCollection.cs, DataTableCollection.cs,
  361. DataSet.cs, DataView.cs, DataColumn.cs, ForeignKeyConstraint.cs,
  362. DataRelationCollection.cs, UniqueConstraint.cs, DataTable.cs,
  363. DataColumnCollection.cs, DataRelation.cs, DataSet.cs:
  364. - updated attributes & attribute descriptions to match with
  365. masterinfos.
  366. * DataView.cs: changed protected members
  367. rowstate,rowcache,dataTable to protected internal.
  368. * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint.cs:
  369. changed InConstraintViolated to protected internal.
  370. * ConflictOptions.cs, UpdateOptions.cs, FillOptions.cs: enclosed
  371. with NET_2_0 define.
  372. 2005-07-21 Sureshkumar T <[email protected]>
  373. * ForeignKeyConstraint.cs:
  374. - IsConstraintViolated (): no matter what EnforceConstraints is,
  375. this function now honestly validates. It is upto the caller to run
  376. this or not.
  377. - AddToConstraintCollectionSetup (): AssertConstraint according to
  378. EnforceConstraints.
  379. 2005-07-21 Boris Kirzner <[email protected]>
  380. * ForeignKeyConstraint.cs - IsConstraintViolated() should check also for Table.EnforceConstraints.
  381. * DataTable.cs - EnforceConstraints becomes internal so it can be used by ForeignKeyConstraint.
  382. 2005-07-19 Sureshkumar T <[email protected]>
  383. * DataTable.cs - CopyConstraints (): copy constraints only if it
  384. does not exist.
  385. * DataSet.cs - Copy ():
  386. - use activator.CreateInstance to create a typed dataset.
  387. - copy tables if target does not exist, otherwise, just add rows.
  388. - add relation only if it does not exists.
  389. Typed datasets create the constraints & relations through
  390. constructors. Fixes bug #75211.
  391. 2005-07-14 Sureshkumar T <[email protected]>
  392. * DataView.cs: Patch from Marc Haisenko to throw descriptive error
  393. message when accessing Item, with invalid index.
  394. 2005-07-14 Sureshkumar T <[email protected]>
  395. reapplied patch from Marc Haisenko.
  396. * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
  397. is never null.
  398. 2005-07-13 Sureshkumar T <[email protected]>
  399. * DataRelationCollection.cs: adding a relation with same set of
  400. parent columns & child columns, should not be allowed.
  401. 2005-07-08 Sureshkumar T <[email protected]>
  402. * DataTableReader.cs: GetSchemaTable: DataType column should be
  403. passed a type of Type.
  404. * DataRow.cs: Load : Fired necessary events.
  405. * DataTable.cs: LoadDataRow (object [], LoadOption): Fired
  406. necessary events.
  407. 2005-06-28 Sureshkumar T <[email protected]>
  408. * DataRow.cs: Delete (): if row is detached, do nothing.
  409. fixes bug #75388.
  410. 2005-06-22 Sureshkumar T <[email protected]>
  411. * DataRow.cs: Added method MergeValuesToRow copy merge two rows
  412. according to the merge rules.
  413. * MergeManager.cs: (MergeRow): use MergeValuesToRow
  414. API. CopyValuesToRow simply makes the target row same as source
  415. row. Rather, MergeValuesToRow merges with the target row according
  416. to the merge rules.
  417. 2005-06-19 Konstantin Triger <[email protected]>
  418. * DataSet.cs: Fixed ReadXml to work with IXmlSerializable
  419. 2005-06-17 Jordi Mas i Hernandez <[email protected]>
  420. * DataViewManager.cs: fixes exception and creates DataView
  421. 2005-06-15 Sureshkumar T <[email protected]>
  422. * DataRow.cs: CheckChildRows: cascade parent changes to child rows
  423. only if there is a change in columns of the fk constraint.
  424. 2005-06-14 Sureshkumar T <[email protected]>
  425. * DataSet.cs: GetChanges: if row is deleted, get parent rows based
  426. on original version. fixes bug #75227.
  427. 2005-06-13 Sureshkumar T <[email protected]>
  428. * DataRowCollection.cs: Find (keys, version): Added an overload to
  429. find keys matching given DataViewRowState filter. Used in
  430. DataSet.Merge and DataTable.LoadDataRow.
  431. * DataTable.cs: LoadDataRow (values, LoadOption): Use
  432. DataRowCollection.Find (object [], DataViewRowState) overload.
  433. * DataRow.cs:
  434. - CopyValuesToRow: Create target "records" out of loop. Records
  435. should be created once, not for each column. Dispose Unused target
  436. records.
  437. * MergeManager.cs:
  438. - MergeRow: Find rows with matching original records. If not,
  439. select with current values.
  440. - MergeRow: While adding new row, use NewNotInitializedRow.
  441. * ForeignKeyConstraint.cs: IsConstraintViolated: should not check
  442. if EnforceConstraints is false.
  443. 2005-06-10 Sureshkumar T <[email protected]>
  444. * DataRow.cs: CopyValuesToRow: if orginal == current, don't create
  445. a new current record.
  446. * DataSet.cs: GetChanges :Temporarily disable EnforceConstraints.
  447. * MergeManager.cs: Merge: Temporarily disable
  448. EnforceConstraints. Patch from [email protected] (George
  449. Barbarosie).
  450. 2005-06-09 Jordi Mas i Hernandez <[email protected]>
  451. * DataView.cs: fixes GetListName
  452. 2005-06-02 Atsushi Enomoto <[email protected]>
  453. * XmlSchemaConstants.cs,
  454. XmlSchemaDataImporter.cs,
  455. XmlSchemaWriter.cs : AutoIncrementStep support. Patch partly by
  456. George Barbarosie. Fixed bug #75121.
  457. * XmlSchemaMapper.cs : it is not used anymore, so just removed.
  458. 2005-05-31 Boris Kirzner <[email protected]>
  459. * DataRow.cs : SetParentRow on Detached row with no Default version throws an exception.
  460. 2005-05-29 Konstantin Triger <[email protected]>
  461. * This patch fixes #74813
  462. * DataView.cs: rework the CreateChildView to receive the index into the indexed row array, rowState became protected to be initialized from RelatedDataView
  463. * DataRowView.cs: movo the logic of creating the child view to the DataView
  464. * RelatedDataView.cs: perform correct init.
  465. 2005-05-25 Sureshkumar T <[email protected]>
  466. * DataTable.cs: Reworked DataTable.LoadDataRow method after
  467. regressions caused by Index redesign.
  468. * DataRow.cs: Load : reworked.
  469. 2005-05-25 Konstantin Triger <[email protected]>
  470. * ISafeDataRecord.cs: Added GetDateTimeSafe method, the interface was made derived from IDataRecord
  471. 2005-05-22 Konstantin Triger <[email protected]>
  472. * 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
  473. 2005-05-20 Sureshkumar T <[email protected]>
  474. * DataTable.cs: CreateRecord :value should be set to auto
  475. increment value or default value if the given value is null.
  476. 2005-05-16 Konstantin Triger <[email protected]>
  477. * DataTable.cs: In DataTable.LoadDataRow with LoadOption - reverting the search order back to Original -> Current (by Suresh request)
  478. 2005-05-16 Konstantin Triger <[email protected]>
  479. * DataRow.cs, DataTable.cs: code under net_2_0 changed to use the new interface
  480. * DataTable.cs: Added CompareRecords, which compares records in column order
  481. 2005-05-16 Sureshkumar T <[email protected]>
  482. * DataRow.cs:
  483. * DataTable.cs: quick fix to make build 2.0 profile (follow up for
  484. check in 2005-05-16). Merge with previous changes.
  485. 2005-05-11 Sureshkumar T <[email protected]>
  486. fix for "import row does not import deleted records"
  487. * UniqueConstraint.cs: Make a way to access value even from a
  488. deleted record. deleted records are added to the collection by
  489. ImportRow method.
  490. * DataRow.cs:
  491. - Added restriction-less methods GetValue to fetch a
  492. value even if it is in deleted state.
  493. - If a row is detached, don't try to delete it from indexes.
  494. - sanity check for record_index in CopyValuesToRow method
  495. 2005-05-05 Sureshkumar T <[email protected]>
  496. * DataTableReader.cs: Implemented Delete handler and move the
  497. current pointer accordingly.
  498. 2005-05-04 Sureshkumar T <[email protected]>
  499. * DataTableReader.cs: Added event handlers to make reader stable
  500. when the datasource is modified. Thanks to Umadevi for giving the
  501. review comments for this implementation.
  502. * DataTable.cs: Clear (): Raise TableCleared event.
  503. * DataTableClearEventArgs.cs: Args for DataTableClearEventHandler.
  504. * DataTableClearEventHandler.cs: Handler for DataTable.TableClear
  505. event.
  506. * DataRow.cs: AcceptChanges: raise row changing & row changed
  507. events.
  508. * DataRowCollection.cs: Clear : remove rows from indexes
  509. 2005-05-02 Atsushi Enomoto <[email protected]>
  510. * XmlSchemaDataImporter.cs : XmlSchemaParicle might be XmlSchemaAny.
  511. This fixes bug #74784.
  512. 2005-04-29 Sureshkumar T <[email protected]>
  513. * DataTableReader.cs: removed use of _first. throw if given index
  514. is out of range of columns. Copy DataTable [] to local array so
  515. that not to be disturbed.
  516. 2005-04-27 Sureshkumar T <[email protected]>
  517. * DataTableReader.cs: Implemented most of the TODO.
  518. 2005-04-22 Sureshkumar T <[email protected]>
  519. * LoadOption.cs: Changed the enums. Keeping old values for
  520. migration.
  521. * DataTable.cs: Implemented methods Load and its overloads. Also
  522. implemented LoadDataRow.
  523. * DataRowCollection.cs: Added a variation of the Find method to
  524. return a row even if it is of state Deleted. This is required for
  525. DataTable.LoadDataRow method.
  526. * DataRow.cs: Implemented internal helper method Load for loading
  527. values from an object array and given an LoadOption (2.0 feature).
  528. * DataRowAction.cs: Added few more enums for .net 2.0. Sorted
  529. alphabetically.
  530. 2005-05-16 Konstantin Triger <[email protected]>
  531. * UniqueConstraint.cs : IsNull check is relevant for rows having default row version.
  532. * DataTable.cs : The row should be validated when imported
  533. * DataRowCollection.cs : if the row does not contain Proposed neither Current version, it's irrelevant for validation
  534. 2005-04-26 Boris Kirzner <[email protected]>
  535. * UniqueConstraint.cs :
  536. - Add indication whenever the constraint belongs to collection.
  537. - Calculation of IsPrimaryKey simplified.
  538. - If constraint is based on single column, the column becomes unique.
  539. - Use boolean IsConstraintViolated() instead of AssertConstraint().
  540. - Use Index.Duplicates to proper exception message formatting.
  541. - AssertConstraint(DataRow) changed to suite new indexes interface.
  542. - Added CanRemoveFromCollection method.
  543. - Contains() method renamed to IsColumnContained().
  544. * RelatedDataView.cs : added new class.
  545. * MergeManager.cs :
  546. - Reset indexes after merge.
  547. - Add new tables when row array is merged into dataset.
  548. - Clean proposed record in MergeRow.
  549. - Inherit nesting on creating new relations in target data set.
  550. - Avoid double loop on constraints collection.
  551. * Locale.cs : added new class.
  552. * ISafeDataRecord.cs : added new interface.
  553. * Index.cs : commented out. Index implementation moved to System.Data.Common.
  554. * ForeignKeyConstraint.cs :
  555. - No more use of childColumnsExtended since new indexes allow duplicate records.
  556. - Constraints can not be created on expression columns.
  557. - Removed unnecessary delegation.
  558. - Use boolean IsConstraintViolated() instead of AssertConstraint().
  559. - Use proper exception message formatting.
  560. - Contains() method renamed to IsColumnContained().
  561. * DataViewRowState.cs : use enum members to simplify notation.
  562. * MergeManager.cs : implemented RelationCollectionChanged().
  563. * DataView.cs : new implementation.
  564. * DataTableCollection.cs :
  565. - Added boundary check in indexer.
  566. - More accurate handling in AddRange().
  567. - Raise event in Remove().
  568. * DataTable.cs :
  569. - Hold primary key as constraint.
  570. - Added accurate handling of DefaultView.
  571. - Hold DataRowBuilder per table.
  572. - Proper exception messages if enforce Constraints is violated.
  573. - If there is no rows, Compute() returns DBNull.
  574. - Use DataRow properties instead of private members.
  575. - CopyProperties() fixed.
  576. - Raise proper events in EndInit().
  577. - Proper order of violation checks in EndLoadData().
  578. - Create array of rows using NewRowArray().
  579. - ImportRow handles rows according to their versions.
  580. - LoadDataRow make use of records (instead of raw object array).
  581. - Added and implemented LoadDataRow() that gets IDataRecord as a parameter (used in Fill)
  582. - Select() uses indexes filtering and sorting ability (instead of "loop-throw-sort" approach).
  583. - Removed redundant RowSorter and Sortable column classes.
  584. - ParseSortString() fixed to threat bracketed column names.
  585. - Table holds collection of property descriptors.
  586. * DataSet.cs :
  587. - Reset table case sensitive indexes on CaseSensitive change.
  588. - EnforceConstraints update logic moved to internal method (used by DataTable).
  589. - InAddChangedRow first add row and than copy values for proper handling of default values.
  590. * DataRowView.cs :
  591. - Changed private member names to suite name convention.
  592. - CancelEdit() fixed.
  593. - CreateChildView() delegates to DataView.
  594. - IsNew fixed.
  595. - Proper exception messages in indexers.
  596. - RowVersion uses DataView.
  597. - GetProperties() delegates to corresponding table if needed.
  598. * DataRowCollection.cs :
  599. - Common Add() logic moved to AddInternal() (used also by DataTable).
  600. - Removed redundant check from Contains().
  601. - Dalegate Find() calls when possible.
  602. - Remove() fixed.
  603. - RomoveAt() delegates to Remove().
  604. - Optimized constraints check in row validation.
  605. * DataRelationPropertyDescriptor.cs : added new class.
  606. * DataRelationCollection.cs :
  607. - Indexers fixed.
  608. - Fixed order of actions in AddCore().
  609. - RemoveCore() also delegates to base.
  610. - Add relation to dataset also in AddCore().
  611. - Remove relation from dataset also in RemoveCore().
  612. - InTransition hold a data relation so we can properly identify the "in transition" state.
  613. - Added threat of parent and child table s property descriptors in Add().
  614. - Common Add() logic moved to AddCore().
  615. - Clear() fixed.
  616. - Remove() threats "in transition" state properly.
  617. - Remove methods delegate to single implementation.
  618. * DataColumnPropertyDescriptior.cs :
  619. - Added new constructor.
  620. - Commented out redundant method.
  621. * DataColumnCollection.cs :
  622. - Boundary check in indexer.
  623. - RegisterName and UnregisterName become internal (used also by DataColumn).
  624. - Fixed AddRange().
  625. - Fixed CanRemove().
  626. - Rethrow correct exception in Clear();
  627. - Change in collection resets parent table property descriptors.
  628. - Added PostEndEdit() helper method (used by DataTable).
  629. * DataColumn.cs :
  630. - Private member names changed to suite name convention.
  631. - Created method for CanAutoIncrement() logic.
  632. - Proper handling of column name update.
  633. - Proper exception messages on expression update.
  634. - Proper namespace handling (delegates to table when needed).
  635. - Removed redundant check in Unique update.
  636. - Implemented internal Clone().
  637. - GetParentRalation() and GetChildRelation() become private.
  638. * Constraint.cs :
  639. - Added abstract methods (implemented in UniqueConstraint and ForeignKeyConstraint).
  640. - Simplified index update.
  641. * ConstraintCollection.cs :
  642. - Use Locale instead of CaseSensitive in column names comparison.
  643. - Removed #ifdef
  644. - Rethrow correct exception type in Add().
  645. - Proper update of table primary key in Add().
  646. - Delegate CanRemove() to constraint.
  647. - Remove table primary key in Clear();
  648. - Delegate "can remove" check to constraint in Remove().
  649. - Removed unnecessary methods and properties.
  650. * DataRow.cs :
  651. - RowSate becomes calculated property.
  652. - Use properties instead of private members where possible.
  653. - Fixed indexer.
  654. - Fixed order of actions in ItemArray update.
  655. - Fixed DetachRow().
  656. - Added ImportRecord() method.
  657. - Removed redundant SetValuesFromDataRecord().
  658. - Fixed IndexFromVersion().
  659. - Added VersionFromIndex() method. Returns row version the passed record index corresponds to.
  660. - Fixed AcceptChanges().
  661. - Fixed creating proposed version in BeginEdit();
  662. - Added record disposal in Delete().
  663. - Fixed CheckChildRows().
  664. - EndEdit() fixed. Checks for readonly. Uses straight flow instead of "try and fix if fail" approach.
  665. - GetChildRows() and GetPrarentRows() rewrited. Use records and indexes for rows lookup.
  666. - GetColumnError() delegates to another implementation.
  667. - HasVersion() fixed.
  668. - RejectCahnges checks on child rows before passing through.
  669. - SetParentRow() fixed. Create relation collection if needed. Use typed data container value copy.
  670. - CopyErrors() logic moved to separate method (used also by DataTable).
  671. * ExpressionElement.cs : added new class.
  672. * Res.cs : added new class.
  673. 2005-04-20 Jordi Mas i Hernandez <[email protected]>
  674. * DataViewManager.cs: implements TypedList.GetListName used in SWF
  675. 2005-04-19 Atsushi Enomoto <[email protected]>
  676. * DataRowView.cs : indexer should access to DataRow with proper
  677. DataRowVersion. Fixed bug #74650.
  678. 2005-04-18 Sureshkumar T <[email protected]>
  679. * DataRow.cs: if there are no mapping fields, fill with default
  680. value.
  681. 2005-04-17 Atsushi Enomoto <[email protected]>
  682. * DataView.cs : Delete() should not try to remove row twice.
  683. Fixed bug #74631.
  684. 2005-04-13 Atsushi Enomoto <[email protected]>
  685. * DataTable.cs : Use GetRowType() for the base of the returning array
  686. type of Select(). Fix by Gerhard Rittweger.
  687. * CustomDataClassGenerator.cs : Fixed slightly harmless wrong code.
  688. 2005-04-13 Atsushi Enomoto <[email protected]>
  689. * CustomDataClassGenerator.cs : custom relation was not added to
  690. Relations property. The second entry of bug #69276 was fixed.
  691. Patch by Daniel Rodriguez.
  692. 2005-04-07 Lluis Sanchez Gual <[email protected]>
  693. * DataRowCollection.cs: Fix the signature of the Add method
  694. for NET_2_0.
  695. 2005-03-16 Atsushi Enomoto <[email protected]>
  696. * DataRow.cs : on importing row, it was copying data from incorrect
  697. DataRow. This fixes bug #73288.
  698. 2005-03-07 Jackson Harper <[email protected]>
  699. * DataViewManagerListItemTypeDescriptor.cs: Implement missing
  700. features. These are needed for System.Windows.Forms databinding.
  701. 2005-02-25 Atsushi Enomoto <[email protected]>
  702. * DataColumn.cs : setting negative value on MaxLength of SimpleContent
  703. column is still valid.
  704. 2005-02-15 Atsushi Enomoto <[email protected]>
  705. * XmlSchemaWriter.cs : new file for outputting XmlSchema.
  706. * DataSet.cs : removed rewritten code in XmlSchemaWriter.
  707. * XmlConstants.cs : added UseCurrentCulture constant.
  708. * DataTable.cs :
  709. Use new Xml Schema writer.
  710. Use XmlSchemaDataImporter as we use in DataSet.
  711. 2005-02-10 Atsushi Enomoto <[email protected]>
  712. * DataView.cs, DataRowView.cs : Fixed bug #72421. CreateChildView()
  713. should target only child rows.
  714. 2005-02-03 Atsushi Enomoto <[email protected]>
  715. * DataViewManager.cs: misuse of ReadStartElement(string).
  716. * DataRowView.cs : removed some MonoTODO.
  717. 2005-02-02 Sureshkumar T <[email protected]>
  718. Ankit Jain <[email protected]>
  719. * DataColumn.cs: throw exception if the column is part of a
  720. relationship, when chaning the data type. Added methods
  721. "GetParentRelation ()" and "GetChildRelation ()" get the relation
  722. which contains the current column
  723. * DataRelation.cs: Added method "Contains (DataColumn)" to check
  724. whether the relation contains the given column.
  725. fixes nunit failure: DataRelationTest.InvalidConstraintException2.
  726. 2005-02-02 Sureshkumar T <[email protected]>
  727. * DataColumnCollection.cs: implemented todo item "check for
  728. constraints" when removing columns from table.
  729. * DataRowCollection.cs: Clear (): don't have to throw child key
  730. constraint exception when the child table does not have any
  731. rows. safe to remove parent rows.
  732. * UniqueConstraint.cs: added method "Contains (DataColumn)" to
  733. check whether a column is part of UniqueConstraint.
  734. * ForeignKeyConstraint.cs: added method "Contains (DataColumn,
  735. lookInParent)" to check whether a column is part of foreignkey.
  736. fixes nunit failure: DataTableTest.ClearTest ()
  737. 2005-02-02 Sureshkumar T <[email protected]>
  738. * ForeignKeyConstraint.cs: validating columns: move checking
  739. "tables are of same dataset" before "checking column types".
  740. fixes nunit failure: ForeignKeyConstraint.CtorExceptions.
  741. 2005-02-02 Atsushi Enomoto <[email protected]>
  742. * DataViewManager.cs : let's just use StringWriter instead of
  743. XmlTextWriter (to avoid empty tag string mismatch annoyance.)
  744. * DataView.cs : implemented BeginInit() and EndInit(). Don't update
  745. rows during init phase until EndInit() is invoked. During init phase,
  746. just hold properties such as Sort that affects on rows.
  747. 2005-02-02 Atsushi Enomoto <[email protected]>
  748. * DataTableCollection.cs : (RemoveAt) just use IndexOutOfRangeException.
  749. 2005-02-02 Atsushi Enomoto <[email protected]>
  750. * DataView.cs : DataRowView.EndEdit() raises ItemMoved event.
  751. set_Table clears Sort and RowFilter.
  752. 2005-02-02 Atsushi Enomoto <[email protected]>
  753. * DataView.cs :
  754. - Clear() should clear AddNew cache.
  755. - Open() invokes Reset().
  756. - ConstraintCollectionChanged() itself does not invoke OnListChanged().
  757. - Reset() does not Open, Close and Update Index.
  758. - UpdateIndex() can be invoked even if it has no table.
  759. - Reset event is invoked always after actual query to table.
  760. - set_Table should raise PropertyDescriptorChanged event.
  761. 2005-02-02 Atsushi Enomoto <[email protected]>
  762. * DataView.cs : ColumnCollectionChanged() is the event invoker (i.e.
  763. when overriden, no column change events are fired).
  764. 2005-02-02 Atsushi Enomoto <[email protected]>
  765. * DataView.cs : CancelEditRowView() and DeleteRowView() was incorrectly
  766. checking target tables. They also should raise events if required.
  767. 2005-02-02 Atsushi Enomoto <[email protected]>
  768. * DataView.cs : simplify code with UnsortedList.
  769. 2005-02-01 Atsushi Enomoto <[email protected]>
  770. * DataView.cs : Mostly reimplemented.
  771. - UpdateIndex() is invoked only when it is required (results in
  772. significant performance improvement).
  773. - Use SortedList and wrapper OptionalSortedList which switches
  774. between SortedList (with Sort) and UnsortedList (without Sort).
  775. - DataView itself now contains two collections for rowviews:
  776. Table rows based pool and AddNew() based cache. Consider those
  777. two collections in every members.
  778. - Reset() does not clear rows. Just invokes UpdateIndex().
  779. - Hook RowDeleting, ColumnChanging and ColumnChanged events in table
  780. which is required to handle state changes.
  781. - Reimplemented Find() and FindRows() because of internal changes.
  782. 2005-02-01 Atsushi Enomoto <[email protected]>
  783. * DataTable.cs : Fixed row comparer. Even if every of the sort target
  784. columns are identical for two rows, they should not be regarded as
  785. the same unless they are Object.ReferenceEquals.
  786. 2005-02-01 Atsushi Enomoto <[email protected]>
  787. * DataRowCollection.cs : on adding a row, should raise
  788. ChangingDataRow() as well as ChangedDataRow().
  789. 2005-01-31 Sureshkumar T <[email protected]>
  790. * DataRow.cs: SetParentRow (): use relation.ParentColumns &
  791. relation.ChildColumns instead of relation.ChildKeyConstraint.*
  792. because createConstrains flag may be false when creating data
  793. relations. Hack along with Ankit Jain.
  794. 2005-01-31 Atsushi Enomoto <[email protected]>
  795. * DataView.cs :some interface implementations.
  796. 2005-01-28 Atsushi Enomoto <[email protected]>
  797. * DataView.cs : Add to table only when the row is not in the table.
  798. 2005-01-28 Atsushi Enomoto <[email protected]>
  799. * DataView.cs : implemented FindRows() (btw we should not use
  800. DataTable since there are detached rows by AddNew().)
  801. 2005-01-28 Atsushi Enomoto <[email protected]>
  802. * DataView.cs :
  803. Code cleanup: privatify some members, remove unused methods.
  804. Some event-based invocation methods should not raise NotImplemented.
  805. 2005-01-28 Atsushi Enomoto <[email protected]>
  806. * DataSet.cs : ReadXml() became closer to MS behavior, being hacky.
  807. 2005-01-28 Atsushi Enomoto <[email protected]>
  808. * XmlSchemaDataImporter.cs : empty element is not regarded as a column.
  809. 2005-01-28 Atsushi Enomoto <[email protected]>
  810. * UniqueConstraint.cs : mostly reverted the previous patch + check
  811. IsPrimaryKey before validation.
  812. 2005-01-28 Atsushi Enomoto <[email protected]>
  813. * DataView.cs : Fixed duplicate insertion to Hashtable.
  814. * UniqueConstraint.cs : Unique constrained pair of columns could be
  815. nullable.
  816. 2005-01-27 Atsushi Enomoto <[email protected]>
  817. * DataView.cs :
  818. Don't do anything for Sort/ApplyDefaultSort/RowFilter/RowStateFilter
  819. when the same value is being set.
  820. Examined UpdateIndex() and marked FIXME where MS does not invoke it.
  821. Removed unused OnColumnChanged().
  822. Now store rowViewPool and reuse DataRowView objects.
  823. Optimized UpdateIndex() - avoid ArrayList. Avoid Haashtable.Rehash().
  824. 2005-01-27 Atsushi Enomoto <[email protected]>
  825. * DataViewSettings.cs : no MonoTODO anymore.
  826. * DataViewManager.cs : pass itself to new DataView() (new ctor).
  827. * DataRowView.cs : GetHashCode() returns its Row's hash.
  828. * DataTablePropertyDescriptor.cs : use new ctor().
  829. * DataView.cs : added new ctor()s that accept DataViewManager.
  830. 2005-01-27 Atsushi Enomoto <[email protected]>
  831. * DataView.cs, DataRowView.cs : AddNew() should not add the row to table
  832. (it is still detached). So handle those rows differntly.
  833. CancelEdit(), EndEdit() and Delete() propagates those events to
  834. DataView (and handle row collection).
  835. Eliminate "throw new Exception()".
  836. Don't catch all the exception thrown in ListChanged event.
  837. * DataTable.cs : made RowSorter as internal and use it in DataView.
  838. no need to pass DataRow[] to .ctor().
  839. 2005-01-27 Atsushi Enomoto <[email protected]>
  840. * DataTable.cs : don't create DefaultView unless it is required. It
  841. significantly improves performance. (i.e. DataView perf. is sick ;-)
  842. 2005-01-27 Atsushi Enomoto <[email protected]>
  843. * DataViewSetting.cs,
  844. DataViewSettingCollection.cs,
  845. DataViewManager.cs : implemented basic members.
  846. 2005-01-26 Atsushi Enomoto <[email protected]>
  847. * Node.cs, DataColumnPropertyDescriptor.cs, DataTable.cs :
  848. Eliminate "throw new Exception".
  849. 2005-01-25 Atsushi Enomoto <[email protected]>
  850. * DataRow.cs : (set_Item) RowNotInTableExeption check should be done
  851. regardless of index existence.
  852. 2005-01-25 Atsushi Enomoto <[email protected]>
  853. * DataTable.cs : use new IExpression.EvalBoolean() to avoid extraneous
  854. boxing.
  855. 2005-01-25 Sureshkumar T <[email protected]>
  856. * DataTable.cs: ImportRow :Do not add to rows collection if the
  857. import row is in detached state.
  858. 2005-01-25 Sureshkumar T <[email protected]>
  859. * DataRow.cs: CopyValuesToRow : set the column value with the
  860. default version of the given row.
  861. * DataTable.cs: ImportRow: Copy values before adding row.
  862. * DataSet.cs: AddChangedRow: Add the row to the table after
  863. copying values.
  864. Fixes bug #67317. Patch by Ankit Jain.
  865. 2005-01-25 Atsushi Enomoto <[email protected]>
  866. * DataRowView.cs : Fixed IsEdit to reflect correct status of DataRow.
  867. * DataRow.cs : Expose editing status internally.
  868. 2005-01-25 Atsushi Enomoto <[email protected]>
  869. * DataView.cs : missing attributes.
  870. 2005-01-24 Atsushi Enomoto <[email protected]>
  871. * DataRowView.cs : implemented CreateChildView().
  872. 2005-01-24 Atsushi Enomoto <[email protected]>
  873. * DataTable.cs, DataView.cs :
  874. Optimized DataView to compile only once RowFilter and Sort when
  875. those properties are set. To make it possible, extracted
  876. SortableColumn out of DataTable and added internal DataTable.Select()
  877. that accepts precompiled IExpression and SortableColumns[].
  878. 2005-01-24 Atsushi Enomoto <[email protected]>
  879. * DataColumn.cs : set_MaxLength is not allowed when it is mapped to
  880. SimpleContent. (However, it is weird but it never fails when we set
  881. ColumnMapping = MappingType.SimpleContent when we fhave MaxLength.)
  882. 2005-01-21 Atsushi Enomoto <[email protected]>
  883. * DataRow.cs : more Current -> Default fixes. Check if it should throw
  884. VersionNotFoundException. Patch by Ankit Jain.
  885. 2005-01-21 Atsushi Enomoto <[email protected]>
  886. * DataRow.cs : Default selects the right version for the current
  887. state of the row. Current is not always available. Also change
  888. that for GetParentRow(). Patch by Ankit Jain.
  889. 2005-01-21 Atsushi Enomoto <[email protected]>
  890. * DataTable.cs : CopyColumn() should copy AutoIncrement after
  891. DefaultValue, or it will raise an error in some cases.
  892. 2005-01-20 Atsushi Enomoto <[email protected]>
  893. * ConstraintCollection.cs : Add() should throw ArgumentException when
  894. the argument constraint fails validation.
  895. DataTable.cs : set_PrimaryKey should throw ArgumentException when
  896. the argument contains constraints which fail validation.
  897. 2005-01-19 Sureshkumar T <[email protected]>
  898. * DataRelationCollection.cs:
  899. Method Remove : Donot throw exception if DataRelation argument is
  900. null in DataRelationCollection.Remove method.
  901. Method RemoveAt : Exception should be IndexOutOfRangeException if
  902. row index is not in list range.
  903. Fixes nunit failures DataRelationCollection.Remove and
  904. DataRelationCollection.RemoveAt.
  905. 2005-01-19 Sureshkumar T <[email protected]>
  906. * ConstraintCollection.cs: Donot throw exception if constraints
  907. are null in AddRange method. Check for null before using the
  908. argument.
  909. fixes bug #69381.
  910. 2004-01-19 Atsushi Enomoto <[email protected]>
  911. * XmlDataInferenceLoader.cs,
  912. XmlDataReader.cs : Check if the XmlReader (node) represents DataSet
  913. or a table, reusing code block in XmlDataInferenceLoader.
  914. This fixes bug #60118.
  915. 2004-01-19 Atsushi Enomoto <[email protected]>
  916. * XmlDiffLoader.cs : Ankit Jain <[email protected]> has a conflicting
  917. patches and some good catches. Some attributes should be skipped,
  918. and loaded value must be typed.
  919. 2004-01-19 Atsushi Enomoto <[email protected]>
  920. * XmlConstants.cs,
  921. XmlDataInferenceLoader.cs,
  922. XmlDataReader.cs : use common const for http://www.w3.org/2000/xmlns/.
  923. * XmlDiffLoader.cs : It was not handling attributes. Fixed bug #70961.
  924. 2005-01-18 Sureshkumar T <[email protected]>
  925. Fix for bug #66838. This patch is submitted by "Ankit Jain"
  926. <[email protected]> and refactored.
  927. * DataRow.cs: Allows to set a parent row even if the row is in
  928. detached state.
  929. * DataRelation.cs: method "UpdateConstraints" is added to check
  930. and create missing keys when adding a relation. This is refactored
  931. approach from DataRelationCollection.Add method.
  932. * DataRelationCollection.cs: AddCore methods of all relation types
  933. are synchronized. A Check for existing constraints is
  934. done. Relation is added to the list only if all checks are passed.
  935. 2004-01-18 Atsushi Enomoto <[email protected]>
  936. * DataColumnCollection.cs : Clear() throws ArgumentException that
  937. wraps thrown innerException.
  938. * XmlSchemaDataImporter.cs : removed FIXMEs.
  939. 2004-01-12 Atsushi Enomoto <[email protected]>
  940. * DataSet.cs : When serializing DataTable, BuildSchema() is passed
  941. null relation collections.
  942. Quick fix for XmlSerializer deserialization. It does not require
  943. XML Schema included.
  944. 2004-01-11 Atsushi Enomoto <[email protected]>
  945. * DataSet.cs,
  946. CustomDataClassGenerator.cs :
  947. In DataSet class, IXmlSerializable.GetSchema() returns null.
  948. In strongly-typed class, it returns schema.
  949. 2004-01-07 Atsushi Enomoto <[email protected]>
  950. * XmlDataInferenceLoader.cs : test driver class should be excluded.
  951. 2004-12-01 Miguel de Icaza <[email protected]>
  952. * DataView.cs: Patch from Marc Haisenko that ensures that rowCache
  953. is never null.
  954. 2004-11-10 Atsushi Enomoto <[email protected]>
  955. * CustomDataClassGenerator.cs : generated foreign key constraint
  956. construction code was creating empty child columns and thus it
  957. was invalid. This fixes bug #69276 (patch by Martin Voelkle).
  958. 2004-11-02 Atsushi Enomoto <[email protected]>
  959. * CustomDataClassGenerator.cs : custom DataTable ctor should call
  960. InitializeFields(), and those DataColumns created by that method
  961. should take data type. This should fix bug #68972.
  962. 2004-10-15 Atsushi Enomoto <[email protected]>
  963. * DataSet.cs : Also clear UnhandledAttributes ArrayList before
  964. generating next attribute column schema. This fixes bug #68432.
  965. 2004-10-14 Umadevi S <[email protected]>
  966. * DataTable.cs : Corrected the Clone method to use Activator.CreateInstance so that the
  967. correct subclass is returned. This fixes bug #67631
  968. 2004-10-14 Umadevi S <[email protected]>
  969. * DataSet.cs : Corrected the Clone method to use Activator.CreateInstance so that the
  970. correct subclass is returned. This fixes bug #67627
  971. 2004-10-13 Atsushi Enomoto <[email protected]>
  972. * DataSet.cs : clear UnhandledAttributes ArrayList before generating
  973. next element column schema. This fixes bug #68256.
  974. 2004-10-12 Atsushi Enomoto <[email protected]>
  975. * DataSet.cs : now xs:schema contains xmlns="".
  976. This fixes bug #68008.
  977. 2004-10-12 Atsushi Enomoto <[email protected]>
  978. * DataSet.cs : DBNull attribute column should not be written as
  979. empty attribute. This fixes bug #68007.
  980. 2004-10-12 Atsushi Enomoto <[email protected]>
  981. * DataSet.cs, XmlConstant.cs, XmlSchemaDataImporter.cs:
  982. DataColumn.ReadOnly was not handled. This fixes bug #68005.
  983. Attribute defaultValue was not handled too.
  984. 2004-10-07 Atsushi Enomoto <[email protected]>
  985. * DataSet.cs :
  986. - When AllowDBNull is false on attribute DataColumn, its schema
  987. should contain use="required". This fixes bug #66792.
  988. - If MaxLength is set on attribute DataColumn, the mapped schema
  989. type should contain maxLength facet. This fixes bug #66793.
  990. 2004-10-04 Atsushi Enomoto <[email protected]>
  991. * DataSet.cs : For a row, when a relation is not nested, then it is
  992. still output target since it won't be written as a child of its
  993. parent. It fixes bug #66379.
  994. 2004-10-03 Atsushi Enomoto <[email protected]>
  995. * DataSet.cs : Attribute constraint field XPath must be written as
  996. @blah. This fixes bug #66366.
  997. 2004-09-28 Umadevi S <[email protected]>
  998. * DataRow.cs - checked for Enforceconstraints, while using indices to search for related rows
  999. 2004-09-24 Sureshkumar T <[email protected]>
  1000. * DataSet.cs : Don't check constraints for dataset clear
  1001. * DataRowCollection.cs : check for EnforceConstraints flag
  1002. before checking foriegn key constraints in Clear method
  1003. * DataTable.cs : Redundant checking removed in Clear method as it is
  1004. checked in DataRowCollection.Clear method.
  1005. 2004-09-19 Sureshkumar T <[email protected]>
  1006. * DataRow.cs : while deserialization of dataset, adding a current row precedes the original row.
  1007. hence, adding a row cache is necessary if the original row happens to be current.
  1008. fixed bug #63097
  1009. 2004-08-23 Martin Baulig <[email protected]>
  1010. * XmlDataInferenceLoader.cs (Driver): Make this class internal,
  1011. not public.
  1012. 2004-08-18 Umadevi S <[email protected]>
  1013. * DataView.cs - Completed most of the event handling.
  1014. Thanks to Punit Todi <[email protected]> for implementing most of it.
  1015. Thanks to Boris Kirzner <[email protected]> for commenting and suggesting changes to the implementation.
  1016. * DataTable.cs - Changed Access modifiers of class/methods since it was used by DataView.
  1017. 2004-08-06 Atsushi Enomoto <[email protected]>
  1018. * DataSet.cs : DataSet's ExtendedProperties were not XmlConverted.
  1019. 2004-08-05 Atsushi Enomoto <[email protected]>
  1020. * XmlConstants.cs : Added constants for "msprop" support.
  1021. * DataSet.cs : ExtendedProperties should be written in the schema.
  1022. This fixes bug #61233.
  1023. 2004-07-27 Atsushi Enomoto <[email protected]>
  1024. * DataSet.cs : on serialization to XmlWriter, XmlConvert should be
  1025. used. There were also some culture dependency problems to write int.
  1026. 2004-06-27 Atsushi Enomoto <[email protected]>
  1027. * XmlDataInferenceLoader.cs : It was not always filling relation
  1028. child table information correctly. This fixes bug #60742.
  1029. 2004-06-23 Umadevi S <[email protected]>
  1030. * UniqueConstraint.cs :changed a ifdef true to ifdef NET_1_1
  1031. 2004-06-22 Atsushi Enomoto <[email protected]>
  1032. * DataSet.cs : Fixed ReadXml(). When ReadMode is ReadSchema and the
  1033. schema is inside the document element (as created in XmlWriteMode
  1034. .WriteSchema), it should read schema from that non-document element.
  1035. This fixes one case reported in bug #60470.
  1036. 2004-06-20 Atsushi Enomoto <[email protected]>
  1037. * XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
  1038. inference target. For bug #60470. (MS does not support schema
  1039. document inference and results in unconsistent dataset structure.)
  1040. 2004-06-20 Atsushi Enomoto <[email protected]>
  1041. * DataTableCollection.cs : reset the table's DataSet to null when
  1042. removing a table from this collection.
  1043. * DataTable.cs : When Namespace is not specified explicitly, its
  1044. Namespace property reflects DataSet's Namespace if exist.
  1045. This fixes bug #60469.
  1046. 2004-06-18 Gert Driesen <[email protected]>
  1047. * DBConcurrentcyException.cs: CRLF to LF
  1048. * DataViewSetting.cs: CRLF to LF
  1049. 2004-06-18 Gert Driesen <[email protected]>
  1050. * DataViewSetting.cs: renamed fields to match MS.NET
  1051. 2004-06-18 Gert Driesen <[email protected]>
  1052. * DBConcurrencyException.cs: fixed serialization compatibility with
  1053. MS.NET
  1054. 2004-06-17 Boris Kirzner <[email protected]>
  1055. * ChangeLog : Fix for misspelled words.
  1056. 2004-06-17 Boris Kirzner <[email protected]>
  1057. * DataRowCollection.cs : Removed onColumnRemoved since it is not in use.
  1058. 2004-06-17 Boris Kirzner <[email protected]>
  1059. * DataTable.cs :
  1060. - Table stores default values for columns in special default values row.
  1061. It is allocated once (in NewRow).
  1062. - DataTable.Copy rewrited. It works with uninitialized rows for better perfomance.
  1063. - OnRemoveColumn has nothing to perform by now.
  1064. 2004-06-17 Boris Kirzner <[email protected]>
  1065. * DataRow.cs :
  1066. - Changed access of original, current and proposed indexes to internal.
  1067. - ColumnErrors reviewed : now column errors stored in ArrayList and allocated on demand only.
  1068. - Added new DataRow constructor that creates uninitialized DataRow (used in DataTable.Copy).
  1069. - Use DataContainer.CopyValue and default values row for faster set of default values in row.
  1070. - SetColumnValue become CheckValue. Now it does not changes the value, but only checks for its correctness.
  1071. Care about Null and DBNull values is now in DataContainer.
  1072. - Use DataColumn.AutoIncrementValue and GetInt64 for faster set of autoincrement value.
  1073. - Use Datacontainer.CopyValue and default values row to speed up CheckChildRows.
  1074. - Fix in CopyState : clone column errors.
  1075. - Removed CollectionChanged and onColumnRemoved since we are not using both of them anymore.
  1076. 2004-06-17 Boris Kirzner <[email protected]>
  1077. * DataColumnCollection.cs :
  1078. - Fix : Add() now delegates to Add(DataColumn).
  1079. - autoIncrement list holds DataColumn objects, and not just column names.
  1080. 2004-06-17 Boris Kirzner <[email protected]>
  1081. * DataColumn.cs :
  1082. - AutoIncrementValue fixes. Now AutoIncrement uses DataContainer.GetInt64 to avoid boxing.
  1083. - DefaultValue fixes. Default value from now on is also stored in special record in
  1084. DataTable, so we're able to set default value for the column faster (typed).
  1085. 2004-06-15 Atsushi Enomoto <[email protected]>
  1086. * DataSet.cs : children of non-root rows were not properly written.
  1087. Fixed bug #53959.
  1088. 2004-06-10 Umadevi S <[email protected]>
  1089. * DataRelation.cs - Constructor
  1090. - The datatypes of the parentcolumn(s) and the childcolumn(s) should match
  1091. 2004-06-06 Atsushi Enomoto <[email protected]>
  1092. * XmlSchemaDataImporter.cs : We should fill Namespace for DataTable.
  1093. 2004-06-04 Gert Driesen <[email protected]>
  1094. * Constraint.cs: marked methods internal to fix public API
  1095. * ConstraintCollection.cs: to fix public API, use
  1096. DataTable.fInitInProgress to check whether initialization
  1097. of DataTable is in progress
  1098. * DataColumn.cs: added stubs for missing methods
  1099. * DataRowBuilder.cs: marked Table property internal to
  1100. fix public API
  1101. * DataSet.cs: removed extra empty destructor, marked
  1102. OnMergeFailed internal to fix public API
  1103. * DataTable.cs: use fInitInProgress field to hold init
  1104. status, to match MS.NET
  1105. * DataView.cs: added missing attributes on IsOpen
  1106. 2004-06-03 Atsushi Enomoto <[email protected]>
  1107. * DataSet.cs : Use NameTable.Get() before calling LookupNamespace()
  1108. in XmlNamespaceManager.
  1109. 2004-06-03 Atsushi Enomoto <[email protected]>
  1110. * DataSet.cs : complex table content child was not properly added
  1111. when it is the only one child in the parent table. Fixed bug #53959.
  1112. 2004-06-02 Gert Driesen <[email protected]>
  1113. * DataTableTypeConverter.cs: added
  1114. * DataView.cs: added missing attribute on Table property
  1115. * DataViewManager.cs: moved attribute to correct property
  1116. * UniqueConstraint.cs: removed extra ReadOnly attribute from
  1117. IsPrimaryKey property
  1118. 2004-06-01 Atsushi Enomoto <[email protected]>
  1119. * DataRow.cs : ColumnsChanged event is not required in .ctor().
  1120. 2004-06-01 Atsushi Enomoto <[email protected]>
  1121. * XmlDataReader.cs : type change is required before setting value
  1122. string to row item.
  1123. 2004-05-31 Atsushi Enomoto <[email protected]>
  1124. * DataSet.cs : Loop-break of the last fix was incorrect.
  1125. 2004-05-31 Atsushi Enomoto <[email protected]>
  1126. * DataSet.cs : When a row has no parent row but the table has parent
  1127. relation(s), that row had been always ignored.
  1128. 2004-05-31 Atsushi Enomoto <[email protected]>
  1129. * XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
  1130. rejected same-named tables in different hierarchy. Thanks to Boris.
  1131. 2004-05-31 Atsushi Enomoto <[email protected]>
  1132. * XmlDiffLoader.cs : Added some Skip() that is required not to go to
  1133. infinite loop. Thanks to Boris for this fix.
  1134. 2004-05-31 Atsushi Enomoto <[email protected]>
  1135. * XmlDataInferenceLoader.cs : XmlSchema elements should not be infered.
  1136. Thanks to Boris for this fix.
  1137. 2004-05-30 Atsushi Enomoto <[email protected]>
  1138. * DataTable.cs : serialization .ctor() should use XmlReadMode.DiffGram
  1139. for ReadXml(). Thanks to Boris.
  1140. 2004-05-27 Boris Kirzner <[email protected]>
  1141. * DataRow.cs :
  1142. - CheckReadOnlyStatus : use typed (and faster comparing).
  1143. - EndEdit : bug fix - do not dispose record if it holds original version.
  1144. - SetValuesFromDataRecord : Take care about autoincrement columns.
  1145. 2004-05-27 Atsushi Enomoto <[email protected]>
  1146. * MergeManager.cs : don't output debug message to Console.
  1147. 2004-05-27 Atsushi Enomoto <[email protected]>
  1148. * XmlDataInferenceLoader.cs : Namespace are not imported to the table
  1149. structure. Thanks to Boris Kirzner for the fix.
  1150. 2004-05-27 Umadevi S <[email protected]>
  1151. * DataRelationCollection.cs - fixed nunit test errors
  1152. 2004-05-27 Umadevi S <[email protected]>
  1153. * DataTableCollection.cs - fixed nunit test errors
  1154. 2004-05-21 Atsushi Enomoto <[email protected]>
  1155. * DataColumnCollection.cs : NullReferenceException was thrown when
  1156. the table was not found.
  1157. * DataRowCollection.cs :
  1158. Find() just returns null for null value under MS.NET 1.1.
  1159. RemoveAt() should also avoid to call AcceptChanges() like Remove().
  1160. * UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
  1161. directly under MS.NET (for nunit test).
  1162. 2004-05-21 Atsushi Enomoto <[email protected]>
  1163. * XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf()
  1164. caused problem on qualified name to get schema Field name.
  1165. 2004-05-21 Atsushi Enomoto <[email protected]>
  1166. * XmlDataReader.cs : Now data reader is namespace aware in all places.
  1167. When table's namespace is different, it entered to infinite loop.
  1168. 2004-05-19 Boris Kirzner <[email protected]>
  1169. * MergeManager.cs : AdjustSchema now updates by reference new created table,
  1170. so in Merge you do not need to lookup for it (were unable to do this for unnamed tables).
  1171. Code styling.
  1172. 2004-05-19 Boris Kirzner <[email protected]>
  1173. * DataColumn.cs : In set_Item[int] - if autoincrement, adjust next autoincrement value.
  1174. * DataColumnCollection.cs : fixed parantethes.
  1175. * DataRow.cs :
  1176. - AcceptChanges : do nothing if row state is unchanged.
  1177. - GetChildRows, GetParentRows : bug fix (use correct index).
  1178. * DataRowCollection.cs : bug fix (compare all row's values).
  1179. * DataTable.cs : bug fix (use correct row version).
  1180. 2004-05-20 Atsushi Enomoto <[email protected]>
  1181. * XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
  1182. When content type is Mixed, text column is not required (it is
  1183. required only when the complex type has no particle).
  1184. "Repeated element" column is also created (considering maxOccurs=0
  1185. and complex content extension).
  1186. 2004-05-20 Atsushi Enomoto <[email protected]>
  1187. * XmlSchemaDataImporter.cs : XmlSchemaGroupBase was not handled
  1188. properly.
  1189. 2004-05-20 Atsushi Enomoto <[email protected]>
  1190. * XmlSchemaDataImporter.cs : Removed unused code and extra MonoTODO.
  1191. Fixed relation inference to consider attribute XPath.
  1192. 2004-05-19 Atsushi Enomoto <[email protected]>
  1193. * DataColumn.cs : Fixed set_Item[int]. Convert.ToInt64(DBNull.Value)
  1194. always fails.
  1195. 2004-05-19 Boris Kirzner <[email protected]>
  1196. * DataColumn.cs - removed default member attribute.
  1197. 2004-05-19 Boris Kirzner <[email protected]>
  1198. * DataColumn.cs,
  1199. DataColumnChangeEventArgs.cs,
  1200. DataColumnCollection.cs,
  1201. DataRow.cs,
  1202. DataRowCollection.cs,
  1203. DataTable.cs,
  1204. Index.cs : Data storage in the row is redesigned. Now data is stored in
  1205. typed containers inside DataColumn. Row holds its versions as indexes inside
  1206. each of data container, accessed through the row that holds it.
  1207. 2004-05-19 Boris Kirzner <[email protected]>
  1208. * UniqueConstraint.cs - added comment.
  1209. 2004-05-19 Atsushi Enomoto <[email protected]>
  1210. * XmlDataInferenceLoader.cs : Don't add already-existing DataTable to
  1211. DataSet.
  1212. 2004-05-17 Atsushi Enomoto <[email protected]>
  1213. * DataSet.cs,
  1214. XmlDataInferenceLoader.cs,
  1215. XmlDataReader.cs,
  1216. XmlSchemaDataImporter.cs : XmlDecode every local name to read and
  1217. XmlEncode every local name to write. This should fix bug #58268.
  1218. 2004-05-17 Atsushi Enomoto <[email protected]>
  1219. * DataSet.cs : Implemented ignored namespaces in InferXmlSchema().
  1220. Supported repeated elements. Removed MonoTODOs.
  1221. * XmlDataInferenceLoader.cs : Design change to support ignored
  1222. namespace and repeated elements.
  1223. * XmlSchemaDataImporter.cs : Added mapping support classes.
  1224. 2004-05-15 Atsushi Enomoto <[email protected]>
  1225. * CustomDataClassGenerator.cs :
  1226. Added property parent "[foo]Row" and children "Get[foo]Row" support
  1227. for custom DataRow classes.
  1228. Fixed DataColumn property accessibility (public --> internal).
  1229. 2004-05-14 Atsushi Enomoto <[email protected]>
  1230. * CustomDataClassGenerator.cs :
  1231. - Put classes inside custom DataSet class.
  1232. - Added automatic DataRelation creation support.
  1233. - Added Constraints creation support. That is done separate from
  1234. relations, since they might be independently created.
  1235. - Added non-MS public DataRelation fields.
  1236. - Removed extraneous "DataRelation type generation" code.
  1237. - Fixed custom_dataset.Initialize() not to create "c" field that
  1238. was created more than once.
  1239. - Implemented AddxxxRow() that takes parameters for every column.
  1240. 2004-05-14 Atsushi Enomoto <[email protected]>
  1241. * XmlSchemaDataImporter.cs : When primary key is used more than once,
  1242. DataRelation borked because of empty parent column name.
  1243. 2004-05-14 Atsushi Enomoto <[email protected]>
  1244. * XmlSchemaDataImporter.cs : When Creating constraints with related
  1245. to DataRelation creation, also set PrimaryKey to the parent table.
  1246. 2004-05-14 Atsushi Enomoto <[email protected]>
  1247. * XmlSchemaDataImporter.cs :
  1248. Design change to add indirect table and relation structures.
  1249. Support for "relation" annotation for local element.
  1250. Support for repeatable simple element column (maxOccurs > 1).
  1251. Fixed handling of Nested property on DataRelation (for globally
  1252. annotated relation, Nested is false).
  1253. 2004-05-13 Atsushi Enomoto <[email protected]>
  1254. * DataRow.cs : Added DataElement property to avoid storing every row-
  1255. element mapping. It stored even for nodes that should be removed.
  1256. 2004-05-13 Umadevi S <[email protected]>
  1257. * RelationshipConverter.cs - Stubbed this class
  1258. * DataRelation.cs - added TypeConveterAttribute
  1259. 2004-05-13 Umadevi S <[email protected]>
  1260. * DataColumnCollection.cs - Added ResDescriptionAttribute
  1261. * DataRelation.cs - Added TypeConverterAttribute
  1262. * DataRelationCollection.cs - Added DefaultPropertyAttribute
  1263. * DataRowView.cs - Added GetHashCode method with a TODO tag
  1264. * DataSet.cs - Added DesignerAttribute
  1265. * DataView.cs - Added DesignerAttribute
  1266. * DataViewManager.cs - Added DesignerAttribute
  1267. * DataViewSetting.cs - Added TypeConverterAttribute
  1268. 2004-05-12 Atsushi Enomoto <[email protected]>
  1269. * DataRow.cs : Added XmlDataElement initialization code.
  1270. 2004-05-11 Atsushi Enomoto <[email protected]>
  1271. * XmlDataInferenceLoader.cs :
  1272. It now requires XmlDocument as input. Improved identification of
  1273. DataSet element. Removed extra lines.
  1274. Moved boresome design notes to bottom of the source and
  1275. added standalone runnable driver (not included on build).
  1276. * DataSet.cs :
  1277. Update with related to the change above.
  1278. WriteXml() should call Flush() after writing. This fixes bug #58327.
  1279. * XmlSchemaDataImporter.cs :
  1280. Improved indentification of DataSet element.
  1281. 2004-05-11 Gert Driesen ([email protected])
  1282. * DataTable: marked initStatus enum internal
  1283. 2004-05-09 Gert Driesen ([email protected])
  1284. * DataTable.cs: removed TypeConverterAttribute, marked RowsExist
  1285. methods internal
  1286. * DataRowView.cs: removed extra Error property
  1287. * DataRow.cs: reduced accessibility of CollectionChanged method
  1288. to private
  1289. * DataColumnPropertyDescriptor.cs: made class internal
  1290. * DataColumn.cs: removed extra TypeConvertorAttribute
  1291. * ConstrainCollection.cs: marked PostEndInit method internal
  1292. 2004-05-07 Atsushi Enomoto <[email protected]>
  1293. * DataSet.cs :
  1294. In WriteXmlSchema(), when complex type contains simple type content
  1295. attributes must not added to XmlSchemaComplexType directly. It
  1296. causes schema compilation error.
  1297. DataRelation should not be output when related columns are hidden.
  1298. 2004-05-07 Atsushi Enomoto <[email protected]>
  1299. * XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
  1300. also expected to do ReadXml(), but I will remove that feature and
  1301. support column reordering).
  1302. * XmlSchemaDataImporter.cs : Always initialize dataset name.
  1303. Always set Nested and primary key for parent table.
  1304. * XmlDataReader.cs : Now it is used.
  1305. Top level element might not match to dataset name nor any table
  1306. name, but still possible to read content tables.
  1307. Handle empty element correctly in some places.
  1308. Handle Fragment mode (read up XmlReader to the end).
  1309. * DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
  1310. XmlDataInferenceLoader and XmlDataReader.
  1311. 2004-05-06 Atsushi Enomoto <[email protected]>
  1312. * DataSet.cs :
  1313. Eliminated CRLF injection.
  1314. More clear message in Clear().
  1315. Updates reflecting XmlSchemaDataImporter change.
  1316. Added duplicate check for XmlSerializerNamespaces in BuildSchema().
  1317. Don't use xmlns attribute for UnhandledAttributes (its not mandatory
  1318. but that depends on different behavior from ms.net).
  1319. Set locale also for DataTable.
  1320. Add xs:element only when target namespace matches to the
  1321. element's namespace. Otherwise, add xs:import for external namespace.
  1322. Put xs:sequence for dataset element's particle _only when_ actual
  1323. contents exist.
  1324. 2004-05-06 Atsushi Enomoto <[email protected]>
  1325. * XmlDataReader.cs : Added. This class will work better when our
  1326. schema inference and schema read engine gets improved. (It contains
  1327. standalone testable Driver class.)
  1328. 2004-05-06 Atsushi Enomoto <[email protected]>
  1329. * ForeignKeyConstraint.cs : Check step change. Existence then column
  1330. validity. just for tests.
  1331. * XmlSchemaDataImporter.cs : code simplification. reduced extraneous
  1332. fields.
  1333. 2004-05-05 Atsushi Enomoto <[email protected]>
  1334. * DataSet.cs : Ignore empty content only when output type is diffgram.
  1335. 2004-05-05 Atsushi Enomoto <[email protected]>
  1336. * CustomDataClassGenerator.cs : Modified that DataSet contains each
  1337. DataTable field so that each table property can access them directly.
  1338. (plus, modified standalone code driver code: shouldn't affect)
  1339. 2004-05-05 Boris Kirzner <[email protected]>
  1340. * DataView.cs , DataRowView.cs : Added implementation to basic methods and properties.
  1341. 2004-05-05 Atsushi Enomoto <[email protected]>
  1342. * XmlSchemaDataImporter.cs :
  1343. SimpleContent column support.
  1344. Annotated relation support.
  1345. Top-level element is counted only when its type is complex.
  1346. xs:anyType is no longer treated as complex type.
  1347. dataset existence is mandatory now.
  1348. Improved DataType and DefaultValue support.
  1349. Attribute namespace is properly handled now.
  1350. Prohibited attribute is now treated as hidden column.
  1351. Reject list or union simple type.
  1352. Still incomplete 1) to read relationship in some cases, 2) to
  1353. determine whether an element is dataset or table, 3) thus to
  1354. exclude extraneous column, 4) to remove extraneous *_Id column.
  1355. 2004-05-05 Atsushi Enomoto <[email protected]>
  1356. * DataTable.cs :
  1357. We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
  1358. serialization .ctor() (thus schema read/inference should be easier).
  1359. DataRowSorter should consider Table's Locale.
  1360. 2004-05-05 Atsushi Enomoto <[email protected]>
  1361. * DataColumnCollection.cs : We already had AutoIncrementValue(), so
  1362. use it instead of duplicating logic.
  1363. 2004-05-05 Atsushi Enomoto <[email protected]>
  1364. * ConstraintCollection.cs :
  1365. Use Table.CaseSensitive and Table.Locale to compare strings.
  1366. Duplicate constraint name exception does not occur under .NET 1.1.
  1367. 2004-05-04 Lluis Sanchez Gual <[email protected]>
  1368. * XmlSchemaDataImporter.cs: Added little type check.
  1369. 2004-05-04 Lluis Sanchez Gual <[email protected]>
  1370. * DataSet.cs: Implemented support for runtime serialization. Fixed support
  1371. for xml serialization.
  1372. * XmlDiffLoader.cs: Skip diffgram element when it is empty.
  1373. 2004-04-30 Umadevi S <[email protected]>
  1374. * DataColumnCollection.cs : Fixed nunit test errors, removed TODOs
  1375. * DataTableCollection.cs : Tested and removed TODO
  1376. * TypedDataSetGeneratorException.cs : Fixed a couple of TODOs
  1377. 2004-04-29 Atsushi Enomoto <[email protected]>
  1378. * DataRow.cs : My previous patch unintentionally reverted Boris patch.
  1379. 2004-04-29 Boris Kirzner <[email protected]>
  1380. * UniqueConstraint.cs : Constraint columns becaomes unique after adding constraint ifand only if
  1381. constraint is defined on single column.
  1382. 2004-04-29 Atsushi Enomoto <[email protected]>
  1383. * DataRowCollection.cs : .NET 1.1 throws InvalidConstaintException,
  1384. not ArgumentException (maybe changed after 1.1).
  1385. 2004-04-29 Atsushi Enomoto <[email protected]>
  1386. * DataRow.cs : When Column was added and it was AutoIncrement column,
  1387. it extended the item object array incorrectly.
  1388. (Plus tiny comment and incorrect indentation fix.)
  1389. 2004-04-29 Boris Kirzner <[email protected]>
  1390. * MergeManager.cs : added ( incomplete yet ) support for merging DataSet schema.
  1391. 2004-04-29 Boris Kirzner <[email protected]>
  1392. * DataRow.cs : Bug fix in CopyValuesToRow().
  1393. 2004-04-29 Boris Kirzner <[email protected]>
  1394. * UniqueConstraint.cs : There is no reason to mark constraint's columns as unique, because
  1395. each of the columns should not be unique, but only all the constraint's columns together.
  1396. 2004-04-28 Boris Kirzner <[email protected]>
  1397. * DataRow.cs :
  1398. - Perfomance fixes:
  1399. - Added using of list of autoIncrement columns
  1400. - SetColumnValue receives also DataColumn to avoid duplicate lookup in DatacolumnCollection
  1401. - Fix in CheckNullConstraints
  1402. - Fix in this[] and HasVersion() : when evaluating an expression deleted rows values can be accessed.
  1403. - Fix in SetColumnValue() , added CanAccess() method to avoid case of accessing internal array values berore it actually allocated.
  1404. - Added onColumnRemoved() method to threat column removal accurately.
  1405. * DataRowCollection.cs :
  1406. - Added using of DataRow._nullConstraintViolation (for perfomance fix in EndLoadData())
  1407. - Added method onColumnRemoved() - calls each row's onColumnRemoved() (to ensure column removal is treated accurately)
  1408. * DataTable.cs :
  1409. - Call DataRowCollection.onColumnRemoved() in OnRemoveColumn() (to ensure column removal is treated accurately)
  1410. * DataColumnCollection.cs :
  1411. - Perfomance fixes :
  1412. - collection holds a list of its autoIncrement columns (avoids unnesessary lookup through whole collection)
  1413. - collection holds mapping from column names to DataColumn objects (avoids lookup through whole collection).
  1414. - automatic creation of column names rewrited (bug fixes + perfomance improvement)
  1415. * DataColumn.cs :
  1416. - Uses autoincrement list of a table
  1417. 2004-04-27 Atsushi Enomoto <[email protected]>
  1418. * XmlDataLoader.cs : Even when it should ignore schema, it was
  1419. infering schema.
  1420. * XmlSchemaDataImporter.cs : DataRelation creation support.
  1421. Improved "DataSet" element handing. When attributes are on the
  1422. element, it is not a "DataSet" element.
  1423. Fixed parent key column name.
  1424. Unique name creation is not required. Just raise an error.
  1425. Fill facet also for attribute types.
  1426. 2004-04-27 Atsushi Enomoto <[email protected]>
  1427. * DataRow.cs : Null check for CheckReadOnlyStatus() and
  1428. CheckNullConstraints(), with some coding guideline fixes.
  1429. Type check should be done by Type instance comparison.
  1430. 2004-04-27 Atsushi Enomoto <[email protected]>
  1431. * DataColumnCollection.cs : When add a column to the collection, fill
  1432. auto-increment column.
  1433. 2004-04-26 Boris Kirzner <[email protected]>
  1434. * DataColumn.cs : Small perfomance fix (avoid unnesessary string concatenation).
  1435. 2004-04-26 Atsushi Enomoto <[email protected]>
  1436. * CustomDataClassGenerator.cs : Added.
  1437. * TypedDataSetGenerator.cs : Implemented Generate().
  1438. Changed GenerateIdName() to call CustomDataClassGenerator.MakeSafeName
  1439. * XmlSchemaDataImporter.cs : Table Locale should be supplied.
  1440. 2004-04-25 Boris Kirzner <[email protected]>
  1441. * DataTable.cs : Small perfomance fix (avoid unnesessary string concatenation).
  1442. 2004-04-25 Boris Kirzner <[email protected]>
  1443. * Constraint.cs : Small perfomance fix (avoid unnesessary string concatenation).
  1444. 2004-04-23 Umadevi S ([email protected])
  1445. * DataRow.cs: Checked BeginEdit,EndEdit,CancelEdit and Delete methods
  1446. - Added error handling to the above methods
  1447. 2004-04-22 Atsushi Enomoto <[email protected]>
  1448. * DataSet.cs : Data should be read when mode is IgnoreSchema (well,
  1449. the support is incomplete yet).
  1450. * XmlDataLoader.cs :
  1451. Reverted ReadModeSchema() argument change. XmlReadMode would be
  1452. useful to handle IgnoreSchema.
  1453. Don't overwrite DataSetName when mode is not such kind.
  1454. Set Prefix and Namespace as well as DataSetName.
  1455. AllowDBNull looks set false by default for element column.
  1456. Set unique constraint as primary key when infering the table schema.
  1457. 2004-04-21 Atsushi Enomoto <[email protected]>
  1458. * DataSet.cs :
  1459. Never set null string for Prefix and Namespace.
  1460. In InferXmlSchema() when null XmlReader is passed, just do nothing.
  1461. In WriteXmlSchema(string), earlier try block.
  1462. In BuildSchema(), try to add serialization namespaces for each
  1463. namespaces in DataSet/DataTable/DataColumn.
  1464. Removed namespace argument from WriteColumnAsElement() and don't
  1465. overwrite when namespace is "". This fixes bug #57330.
  1466. * DataColumn.cs : For Namespace and Prefix, never set null.
  1467. 2004-04-21 Boris Kirzner <[email protected]>
  1468. * XmlSchemaMapper.cs : Check for not null unique constraint in ReadXmlSchemaKeyref()
  1469. before creating and adding foreign key constraint and relation.
  1470. 2004-04-21 Boris Kirzner <[email protected]>
  1471. * MergeManager.cs : In AdjustSchema() source table clone should be added
  1472. and not the table itself.
  1473. 2004-04-21 Boris Kirzner <[email protected]>
  1474. * DataSet.cs :
  1475. - CaseSensitive : Additional fix (removed unnesessary assignment).
  1476. - CopyProperties : Do not try to copy ExtendedProperties if the collection is empty.
  1477. 2004-04-21 Boris Kirzner <[email protected]>
  1478. * DataTable.cs : Ensure that DataSet property is not null before using it in Clear().
  1479. 2004-04-20 Boris Kirzner <[email protected]>
  1480. * DataTable.cs :
  1481. - EndLoadData() : perfomance fix in case of null constraint violation
  1482. during data load (also in DataRow.cs).
  1483. - CaseSensitive : If DataTable belongs to DataSet it should always use
  1484. DataSet.CaseSensitive untill explicitly changed.
  1485. - CopyProperties() : do not try to copy ExtendedProperties if the collection is empty.
  1486. * DataRow.cs :
  1487. - Pefromance fix in case of null constraint violation
  1488. during data load (also in DataTable.cs).
  1489. - CollectionChanged() : use correct column number after new DataColumn was added
  1490. (differs in case some DataColumn was previosly removed).
  1491. - EndEdit() - throw away proposed values only after CheckChildRows() complete.
  1492. 2004-04-20 Boris Kirzner <[email protected]>
  1493. * DataColumnCollection.cs : Since unique constraint is added now
  1494. in DataColumn.SetTable() the additional creation of constraint in
  1495. DataColumnCollection.Add() is redundant and causes exception - fixed.
  1496. 2004-04-19 Atsushi Enomoto <[email protected]>
  1497. * XmlDataLoader.cs : Added "never add data rows" mode.
  1498. Removed unused code. However, it is temporary fixes to unify
  1499. ReadXml() and InferXmlSchema().
  1500. * DataSet.cs : Implemented InferXmlSchema(), though it is incomplete.
  1501. I'll create another XmlDataLoader since there are many problems
  1502. such that 1) it is too waste to read the entire xml into an
  1503. XmlDocument, 2) it does not handle attributes correctly, and 3) it
  1504. must handle "ignored namespaces".
  1505. 2004-04-19 Atsushi Enomoto <[email protected]>
  1506. * Added XmlSchemaDataImporter.cs (new schema reader).
  1507. * DataSet.cs : Use XmlSchemaDataImporter (right now for DataSet only)
  1508. for ReadXmlSchema().
  1509. Let schema reading work to ReadXmlSchema().
  1510. Don't return ReadSchema when argument read mode was DiffGram.
  1511. 2004-04-15 Umadevi S ([email protected])
  1512. * Updated Clone/Copy methods in DataSet along with Testcase
  1513. * ForeignKeyConstraint.cs - special ctor implemented
  1514. 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).
  1515. * Changes in ConstraintCollection.cs for the above
  1516. 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.
  1517. 2004-04-15 Atsushi Enomoto <[email protected]>
  1518. * XmlSchemaMapper.cs : set parent key and foreign key info to
  1519. DataRelation when reading refkey constraints.
  1520. Supply constraint name for fkey.
  1521. 2004-04-15 Atsushi Enomoto <[email protected]>
  1522. * XmlDataLoader.cs : Don't overwrite existing DataSetName. When read
  1523. mode is Auto, just ignore the schema if there is already schema info.
  1524. * DataSet.cs : Similarly ignore schema info for XmlReadMode = Auto.
  1525. 2004-04-14 Atsushi Enomoto <[email protected]>
  1526. * DataSet.cs :
  1527. - In MS output, XML declaration looks to have standalone decl (yes).
  1528. - ReadXml(reader) just calls to ReadXml(reader, XmlReadMode.Auto)
  1529. - ReadXml(reader, mode)
  1530. 1) return originally specified mode, instead of (always) Auto.
  1531. 2) Check empty reader.
  1532. 3) Check diffgram schema and content separately.
  1533. 4) When diffgram exists, remaining (the same-level) contents
  1534. won't be consumed.
  1535. 5) Similar fact should be applied, but somewhat different.
  1536. InferSchema and IgnoreSchema just skips, Fragment reads both
  1537. schema and content, others just reads schema.
  1538. - Removed unused code.
  1539. * XmlDataLoader.cs :
  1540. - Read() should skip in some ReadMode.
  1541. - Don't compare schema element name as case-insensitive (well,
  1542. should schemas be checked here?)
  1543. - Avoided BuildDocument() not to create confusing DataSet
  1544. document element.
  1545. - Don't add any tables when reader has single element.
  1546. * XmlDiffLoader.cs :
  1547. When target table was not found, MS.NET doesn't raise an error.
  1548. * XmlSchemaMapper.cs :
  1549. When XmlSchema.Read() left xml reader at </xs:schema>, read once.
  1550. 2004-04-13 Atsushi Enomoto <[email protected]>
  1551. * DataSet.cs :
  1552. - InferXmlSchema(): Throw explicit NotImplementedException now.
  1553. - Don't put XML declaration everywhere. Write just for filename arg.
  1554. - xmlns="" should not be written. Maybe WebService problem is
  1555. because default namespace is overwritten. This patch will keep
  1556. the WS problem away and actually fixes some unit tests (i.e. use
  1557. explicit String.Empty for null namespace in WriteStartElement()).
  1558. - MoveToContent() should always be called, not only when
  1559. LocalName="xml". It will ignore prolog (DTD, PI, comment etc.).
  1560. - Even XmlReadMode is DiffGram, reader might not be "diffgram"
  1561. element. As to MSDN, diffgram does not contain schema.
  1562. 2004-04-13 Gonzalo Paniagua Javier <[email protected]>
  1563. * DataTable.cs: made _initStatus private so that System.Data is CLS
  1564. compliant.
  1565. 2004-04-13 Umadevi S <[email protected]>
  1566. * UniqueConstraint.cs:
  1567. * ConstraintCollection.cs:
  1568. * DataTable.cs:
  1569. - Implemented a Constructor for UniqueConstraint.cs
  1570. - Used EndInit on DataTable to call a delegate which adds the
  1571. constraints passed to the most recent call of AddRange().Used
  1572. AddRange() on ConstraintCollection to check whether
  1573. DataTable.BeginInit has occurred. If yes, save the argument
  1574. constraint collection passed, then return. If no, Check whether the
  1575. constraints are of type UniqueConstraint and initialized with the
  1576. special constructor If yes Initialized the table property of this
  1577. UniqueConstraint object with table assosciated with the current
  1578. instance of ConstraintCollection class.
  1579. 2004-04-07 Marek Safar <[email protected]>
  1580. * Constraint.cs: changed ClsCompliant to CLSCompliant, build fix.
  1581. 2004-04-06 Gonzalo Paniagua Javier <[email protected]>
  1582. * Constraint.cs:
  1583. * DataColumnCollection.cs:
  1584. * DataRelationCollection.cs:
  1585. * DataRowCollection.cs:
  1586. * DataTableCollection.cs:
  1587. * InternalDataCollectionBase.cs:
  1588. * Node.cs: CLS compliance for System.Data. Patch by Gert Driesen.
  1589. Fixes bug #56557.
  1590. 2004-04-05 Jackson Harper <[email protected]>
  1591. * DataTable.cs: Add rows to the row list if there is no filter.
  1592. 2004-03-31 Juraj Skripsky <[email protected]>
  1593. * DataColumn.cs : Setting Caption to null sets it to the empty string
  1594. (ms.net behaviour, testcase is in DataColumnTest).
  1595. * DataRow.cs : Evaluate DataColumn.Expression when such a column's
  1596. value is requested.
  1597. 2004-03-30 Lluis Sanchez Gual <[email protected]>
  1598. * DataColumn.cs: In Expression setter, set the expression member even if
  1599. it is an empty string.
  1600. * DataSet.cs: Support serialization of byte[] columns.
  1601. * XmlDataLoader.cs: Support deserialization of Guid columns.
  1602. Set MappingType.Attribute to columns infered from attributes.
  1603. 2004-03-29 Juraj Skripsky <[email protected]>
  1604. * ExpressionElements.cs : remove
  1605. * DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
  1606. Integration of new Mono.Data.SqlExpressions classes used in
  1607. DataTable.{Select, Compute}.
  1608. Fixes bug #55503 and lots of failures in DataTableTest.cs.
  1609. 2004-03-28 Juraj Skripsky <[email protected]>
  1610. * Index.cs: Simple fix in ComparePartialRowNonUnique.
  1611. This fixes bugs #56129 and #56014.
  1612. 2004-03-25 Lluis Sanchez Gual <[email protected]>
  1613. * DataSet.cs: In WriteXml (string filename, XmlWriteMode mode), close the
  1614. stream after writing the dataset. This fixes bug #52581.
  1615. Also added several writer.Close into finally blocks, so writers are properly
  1616. closed in case of an exception.
  1617. 2004-03-12 Andreas Nahr <[email protected]>
  1618. * Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
  1619. * DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
  1620. * ColumnTypeConverter.cs: Added stub
  1621. * DefaultValueTypeConverter: Added stub
  1622. * ConstraintConverter.cs: Added stub
  1623. 2004-03-04 Eran Domb <[email protected]>
  1624. * XmlDataLoader.cs : Xml reading reviewed. Added support for additional xml formats as described
  1625. in MS.NET documentation (missing DataSet element etc).
  1626. 2004-03-04 Eran Domb <[email protected]>
  1627. * Node.cs : Added.
  1628. * Index.cs : Rollback last changes.
  1629. 2004-03-03 Atsushi Enomoto <[email protected]>
  1630. * Index.cs : justa build fix.
  1631. 2004-03-03 Eran Domb <[email protected]>
  1632. * Index.cs : Added.
  1633. * Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint, ConstraintCollection.cs, DataColumn.cs,
  1634. DataRow.cs, DataRowCollection.cs, DataSet.cs, DataTable.cs : Changes made for using indexes on tables.
  1635. This changes made for performance improvement.
  1636. 2004-02-08 Eran Domb <[email protected]>
  1637. * XmlSchemaMapper.cs : Read columns is they were written as SimpleContent or as Attributes.
  1638. 2004-02-08 Eran Domb <[email protected]>
  1639. * DataSet.cs: Fix some bugs in ReadXml().
  1640. 2004-02-04 Lluis Sanchez Gual <[email protected]>
  1641. * DataSet.cs: Added missing method that broke the build.
  1642. 2004-02-04 Eran Domb <[email protected]>
  1643. * DataRowCollection.cs (InsertAt): Add a check for null row. Replace check of IndexOf with RowId for
  1644. better performance.
  1645. * DataSet.cs (GetTableSchema) : Add supprot for simple content columns. Change the condition for a case
  1646. when all column are attributes (elements count is 0), we still want to add the relations. No relations
  1647. can be on simple contents.
  1648. (AddUniqueConstraints) Check that the column of the constraint are not hidden.
  1649. (AddForeignKeys) Check that the relation has constraints attach to it.
  1650. * XmlConstants.cs : Added constant.
  1651. 2004-02-04 Eran Domb <[email protected]>
  1652. * DataSet.cs : GetSchemaSerializable() return null and not BuildSchema().
  1653. DoWriteXmlSchema calls BuildSchema ().
  1654. 2004-02-04 Lluis Sanchez Gual <[email protected]>
  1655. * DataRow.cs: Added SetOriginalValue(), which is used to set the original
  1656. value of a column.
  1657. * DataRowCollection.cs: In InsertAt(), perform the correct checks and
  1658. attach the row.
  1659. * DataSet.cs: Fixed method GetChanges(): Parent rows of modified rows must
  1660. also be added to the dataset.
  1661. In WriteTable(), do not write unchanged rows when writing the original
  1662. version of the table.
  1663. Added WriteIndividualTableContent(), for writing the contents of a single
  1664. table.
  1665. Changed BuildSchema and related methods, so it can generate a schema for
  1666. any set of tables, not just the tables of the dataset (needed for
  1667. single datatable serialization).
  1668. * DataTable.cs: Implemented serialization constructor and GetObjectData method.
  1669. Also implemented some ReadXmlSchema methods.
  1670. * XmlDiffLoader.cs: Read and process the xml document directly from XmlReader,
  1671. instead of loading the full dataset in an XmlDocument. It is faster and
  1672. saves memory. Also fixed several problems when generating the changes.
  1673. * XmlSchemaMapper.cs: Support reading schemas for single tables (used by
  1674. table serialization).
  1675. 2004-02-02 Eran Domb <[email protected]>
  1676. * DataSet.cs : Add indentation to the xml serialization only if we create the XmlWriter.
  1677. Add the namespace attribute even if namespace is an empty string for inteoperability with MS.NET.
  1678. * DataTable.cs (NewRow): Create only one DataRowBuilder.
  1679. Initiate new row with row id -1.
  1680. * DataRow.cs : Add RowId property.
  1681. * DataRowBuilder.cs : Add _rowId member.
  1682. * DataRowCollection.cs (Add) : Use the RowId property of the new row to check if it is already exists in the collection.
  1683. 2004-01-26 Eran Domb <[email protected]>
  1684. * XmlConstants.cs : Added some constants.
  1685. * DataColumn.cs : Added a method to retrive AutoIncrement value.
  1686. * XmlDataLoader.cs : Set the value of the foriegn key column, according to the value of the
  1687. parent table column.
  1688. * XmlDiffLoader.cs : Convert the value comming from the xml.
  1689. * XmlSchemaMapper.cs (Read) : Set the DataSet namespace.
  1690. (ReadXmlSchemaSequence) : Change the logic that decides if this element is a column or a table.
  1691. (ReadXmlSchemaElement) : Set the locale of the dataset.
  1692. (ReadColumn) : Set the column type. Find if the column is AutoIncrement.
  1693. (GetColumnType) : New method to get the column type from the attribute value.
  1694. (ReadXmlSchemaUnique) : Improve parsing of XPath. Set the constraint as a PK if needed,
  1695. and add the constraint to the table.
  1696. (ReadXmlSchemaKeyref) : Improve parsing of XPath. Create the FK constraint and add it to
  1697. the table.
  1698. * DataSet.cs : Improving writing of unique constraints, and foriegn key constraint. Givving them the correct names.
  1699. Writing more information to the schema for interoperability with ms.net.
  1700. Improve diffgarm writing mode.
  1701. 2004-01-21 Atsushi Enomoto <[email protected]>
  1702. * TypedDataSetGenerator.cs : Implemented GenerateIdName().
  1703. 2004-01-21 Eran Domb <[email protected]>
  1704. * XmlDataLoader.cs (AddRowToTable) : Give thre new relation correct name.
  1705. Do not set the child column to be AutoIncrement.
  1706. Create the new column for the relation as MappingType.Hidden so they will not be serialized
  1707. when writing the dataset to xml.
  1708. 2004-01-20 Atsushi Enomoto <[email protected]>
  1709. * Added missing TypedDataSetGenerator.cs.
  1710. 2004-01-08 Eran Domb <[email protected]>
  1711. * XmlSchemaMapper.cs : Fix a bug. Check if table already in DataSet before adding it.
  1712. * DataSet.cs (ReadXml) : Fix bugs. Read correctly the xml file with XmlReadMode of DiffGram,
  1713. InferSchema, ReadSchema and IgnoreSchema.
  1714. * XmlDataLoader.cs : All modes use the same logic.
  1715. * XmlDiffLoader.cs : Adding BuildXmlDocument method to the class.
  1716. 2004-01-06 Eran Domb <[email protected]>
  1717. * DataRelationCollection.cs : Use IndexOf in indexer.
  1718. * DataSet.cs : Adding support for WriteXml with diffgram. Code style changes.
  1719. * XmlDataLoader.cs : Set the DataSet.enforceConstraints to false before loading the tables.
  1720. * XmlDiffLoader.cs : Reading nested tables.
  1721. * XmlSchemaMapper.cs : Reading the relation.
  1722. * XmlConstants.cs : Adding some constants.
  1723. 2004-01-05 Jackson Harper <[email protected]>
  1724. * DataView.cs: Set readonly property of property descriptor. This
  1725. fixes bug #52598.
  1726. 2004-01-01 Sanjay Gupta <[email protected]>
  1727. * DataRelationCollection.cs : Fixed incorrect generation of default
  1728. Relation name.
  1729. * DataSet.cs : Added missing functionality in WriteXml().
  1730. * XmlConstants.cs : Added new constants.
  1731. 2003-12-27 Atsushi Enomoto <[email protected]>
  1732. * DataSet.cs : Fixed incorrect WriteXml() signature.
  1733. 2003-12-18 Jackson Harper <[email protected]>
  1734. * DataView.cs: Implement AddNew, Delete, and OnListChanged.
  1735. 2003-12-17 Atsushi Enomoto <[email protected]>
  1736. * DataSet.cs, XmlDataLoader.cs : Table name should be encoded before
  1737. they take shape of xml. This fixed bug #52240
  1738. 2003-12-16 Tim Coleman <[email protected]>
  1739. * KeyRestrictionBehavior.cs:
  1740. New stubs added for .NET 1.2
  1741. * DataTable.cs:
  1742. Changes for 1.2
  1743. 2003-12-08 Eran Domb <[email protected]>
  1744. * DataColumn.cs (Expression) : Validate the expression.
  1745. * DataRelationCollection.cs (IndexOf) : Added new method sensetive to case differences in relation name.
  1746. (Contains, IndexOf, this[], Add) : Call new IndexOf when needed.
  1747. * DataRow.cs (this[]) : Fix the condition for throwing RowNotInTableException.
  1748. (RejectChanges) : Detach row when state was Added.
  1749. (CollectionChanged) : Fix a bug.
  1750. * ExpressionElement (ValidateExpression) : Fix a bug.
  1751. * ForeignKeyConstraint.cs (AssertConstraint) : Added implementation. Check all rows from child table have
  1752. a parent row in the parent table.
  1753. (_validateColumns) : Fix bugs.
  1754. * MergeManager.cs (AdjustSchema) : Fix a bug.
  1755. * XmlDataLoader.cs (ReadModeInferSchema) : Change implementation. Now we can read nested xml, and we generate the relations
  1756. between the tables.
  1757. 2003-11-30 Eran Domb <[email protected]>
  1758. * DataColumnCollection.cs (this[string name]) : Use IndexOf to find the column.
  1759. (Add) : Find if the new column name is the same as the one found in IndexOf.
  1760. (IndexOf) : New method.
  1761. (Contains) : Use new IndexOf.
  1762. (IndexOf) : Use new IndexOf.
  1763. * DataRelationCollection.cs (DataRelationCollection.AddCore) : Add The Relation to the collection.
  1764. (DataSetRelationCollection.AddCore) : First add the UniqueConstraint.
  1765. * DataRow.cs (this[int columnIndex, DataRowVersion version]) : Change exceptions.
  1766. (Delete) : Detach row if the RowState was Added.
  1767. (GetChildRows) : Get the array form the ChildTable.
  1768. (GetParentRows) : Get the array from the ParenTable.
  1769. * DataRowCollection.cs (Remove) : Check if row state is Detached to avoid exception.
  1770. * DataSet.cs (IXmlSerializable.ReadXml) : Do not call MoveToContent and ReadEndElement - the XmlSerializationReader does it.
  1771. * DataTable.cs (PrimaryKey) : Fix bugs.
  1772. (Compute) : First call Select. Then create ExpressionAggregate to aggregate the Select result.
  1773. * DataTableCollection.cs (Add) : Fix a bug.
  1774. * ExpressionElement.cs (ValidateExpression) : Turning ValidateExpression to static.
  1775. (Result) : Added new interface to AggregateExpression that get DataRow[] as a param.
  1776. Some code style changes (tab instead of whit spaces, alignment, etc...).
  1777. * ForeignKeyConstraint.cs (_validateColumns) : Throw correct exception.
  1778. * MergeManager.cs (AdjustSchema) : Fix a bug.
  1779. 2003-11-26 Miguel de Icaza <[email protected]>
  1780. * DataSet.cs: Add a few more missing methods, code style updated
  1781. to Mono style.
  1782. 2003-11-26 Tim Coleman <[email protected]>
  1783. * ConflictOptions.cs DataAdapterException.cs DataTableReader.cs
  1784. * DbMetaData.cs FillOptions.cs IDataReader2.cs IDataRecord2.cs
  1785. * IDataUpdatableRecord.cs IDbAsyncCommand.cs IDbAsyncConnection.cs
  1786. * IDbExecutionContext.cs IGetTypedData.cs ISetTypedData.cs
  1787. * LoadOption.cs OperationAbortedException.cs ResultSetOptions.cs
  1788. * ResultSetSensitivity.cs StatementCompletedEventArgs.cs
  1789. * StatementCompletedEventHandler.cs UpdateOptions.cs:
  1790. New classes added for NET_2_0
  1791. * DBConcurrencyException.cs DataRelation.cs DataSet.cs DataTable.cs
  1792. * DataTableCollection.cs DataView.cs ForeignKeyConstraint.cs:
  1793. Modifications to add new NET_2_0 functions
  1794. 2003-11-25 Tim Coleman <[email protected]>
  1795. * IDataSources.cs:
  1796. New 1.2 class added
  1797. 2003-11-21 Pedro Martínez Juliá <[email protected]>
  1798. * DataRow.cs: Detached row can be accesible (new rows from data
  1799. table are detached). Closes but #51263.
  1800. 2003-11-19 Eran Domb <[email protected]>
  1801. * DataRow.cs : Throw exceptions if Row is Detached.
  1802. (EndEdit) : Check that we are not in middle of ChangeEvent.
  1803. (AcceptChanges) : Detach the row.
  1804. * DataRelation.cs : throw correct exception.
  1805. *UniqueConstraint.cs : throw correct exception.
  1806. 2003-11-09 Pedro Martínez Juliá <[email protected]>
  1807. * DataRow.cs: Use RemoveInternal instead of Remove because the last
  1808. one uses Delete and AcceptChanges.
  1809. * DataRowCollection.cs: When removing, Delete and AcceptChanges
  1810. method from the row are called. Added an internal method that will
  1811. be used by DataRow to "physically" remove the row from the list.
  1812. 2003-11-09 Pedro Martínez Juliá <[email protected]>
  1813. * DataRowCollection.cs: To follow the specification: Remove and
  1814. RemoveAt should remove the row. But needed to call DeletingDataRow
  1815. to prepare the deleting.
  1816. * DataRow.cs: Don't call DeletingDataRow when it is called by the
  1817. method Table.Rows.Remove.
  1818. 2003-11-09 Pedro Martínez Juliá <[email protected]>
  1819. * DataRowCollection.cs: Make the row be deleted by itself. If not,
  1820. it fails because we need to call OnRowDeleting and OnRowDeleted. It
  1821. is full implemented inside DataRow.
  1822. 2003-11-05 Eran Domb <[email protected]>
  1823. * DataView.cs (ctor) : Changing default RowStateFilter to CurrentRow.
  1824. 2003-11-04 Eran Domb <[email protected]>
  1825. * DataRow.cs (CheckChildRows) : Improving the implementation - checking child for all FK, and not
  1826. on all Relations.
  1827. (GetChildRows) : Adding some checks.
  1828. (GetParentRows) : Adding some checks. Fix a bug in implementation.
  1829. (SetParentRow) : Added implementation.
  1830. * DataRowCollection.cs (Add) : Added more checks on the row added to the collection.
  1831. * DataTable.cs (Copy) : Set the During Loading flag to save unnecessary assertions.
  1832. * ForeignKeyConstraint.cs (AssertConstraint) : Fixing bugs in implementation. Checking for DBNull values in the row.
  1833. * MergeManager.cs : Check that the target table is not null.
  1834. 2003-10-27 Eran Domb <[email protected]>
  1835. * DataColumn.cs (DefaultValue) : Changing null value to DBNull. Checking that the type of the new default value
  1836. can be converted to the column type.
  1837. * DataRelationCollection.cs (AddCore) : Give the new FK the name of the relation.
  1838. * DataRow.cs (EndEdit) : Check if we need to validate the constraints.
  1839. (GetParentRows, GetChildRows) : Checking that the row has the wanted version, before accessing the row's value.
  1840. * DataRowCollection.cs (Add) : Fixing a bug.
  1841. (Clear) : Before clearing the array check that there is no violation of FK constraint.
  1842. * DataSet.cs (Prefix) : If value is null chage it to empty string.
  1843. (GetXml) : Removing the Processing Instructions from the xml string as in MS ADO.NET.
  1844. * ExpressionElement : Adding support for IN expresion.
  1845. * DataTable (CopyConstraints) : New method that copy the tables constraints to the copy table.
  1846. (Select) : Adding support for DataViewwRowState.
  1847. * ForeignKeyConstraint.cs (AssertConstraint) : Adding implementation.
  1848. * MergeManager.cs (MergeRow) : Fix bugs.
  1849. 2003-10-27 Eran Domb <[email protected]>
  1850. * DataRow.cs (SetColumnValue): Donot check null value when in midle of loading data.
  1851. check null values when ending loading data.
  1852. * DataSet.cs (RejectChanges) : Imlementation.
  1853. (Prefix) : If prefix was changed fire event. Check that the prefix is not null - if null,
  1854. change it to empty string.
  1855. * DataTable.cs (BeginLoadData, EndLoadData) : Impemantation.
  1856. 2003-10-22 Eran Domb <[email protected]>
  1857. * MergeManager.cs : Fixing bugs. Adding check for PrimaryKey matching.
  1858. * ConstraintCollection.cs (RamoveAt): Change implemntation.
  1859. * DataTableCollection (CanRemove): Removing cast to Constraint.
  1860. 2003-10-22 Eran Domb <[email protected]>
  1861. * DataRelationCollection.cs (AddCore): The unique constraint was added even if the createConstraints flag was false.
  1862. (Clear): The collection was cleared without removing the relation from the parent and child tables.
  1863. * DataSet.cs (Copy, Clone): The Relations of the DataSet were not copy.
  1864. (HasChanges, Reset): Imlementation.
  1865. * DataTable.cs (HasErrors): There is no flag for errors, instead the table ask her row if they have any errors.
  1866. This is because the we do not no when to turn off the flag.
  1867. (Locale): Changing implementation to behave like ADO.NET.
  1868. (AcceptChanges): Fix bug.
  1869. (Clear): Check that this table is not referenced from a foreign key constraint.
  1870. (Copy): Do not try to access a deleted row.
  1871. (CopyProperties): Copy the PrimaryKey.
  1872. (GetChanges, ImportRow): Implementation.
  1873. (LoadDataRow): Adding implementation if the table has PrimaryKey.
  1874. (ToString): Changing implementation to behave like ADO.NET.
  1875. * UniqueConstraint.cs (AssertConstraint): support for Multiple DataColumns in the constraint.
  1876. * DataRow.cs (Ctor): In the constructor we initiate the current array, but we should initiate only the proposed array for new rows.
  1877. (HasErrors): Implementation.
  1878. (Delete): Added checking for child rows of the deleted row.
  1879. (EndEdit): Added checking for child row and firing events.
  1880. (GetColumnError): Added a check that the method will not return null, as in ADO.NET(an empty string is returned).
  1881. (GetColumnsInError): Added a check for null values in column error.
  1882. (HasVersion): Added special treatment for special RowState.
  1883. (CollectionChanged): More checks to avoid NullReferenceException.
  1884. * DataRowCollection.cs (Remove): Fix a bug.
  1885. 2003-10-01 Duncan Mak <[email protected]>
  1886. More patches from Eran Domb <[email protected]>.
  1887. * MergeManager.cs: New file.
  1888. * DataRelationCollection.cs (AddCore): Check that a
  1889. UniqueConstraint is already exists. It loops over the Relations
  1890. instead of the Constraints.
  1891. (Add, AddCore): The relation was added twice.
  1892. * DataSet.cs (Merge, GetChanges, HasChanges): Implemented.
  1893. 2003-09-30 Duncan Mak <[email protected]>
  1894. Patches from Eran Domb <[email protected]>.
  1895. * DataRelation.cs (constructor): When the name of the relation is
  1896. null, it should return an empty, not "Relation".
  1897. * DataRow.cs (AcceptChanges): Added special case for
  1898. RowState.Detached.
  1899. (CancelEdit): Set editing flag to false.
  1900. (IsNull): Check that the value is DBNull.
  1901. * DataRowCollection.cs (Add): There was no check that the table of
  1902. the collection is owned by a DataSet.
  1903. * DataSet.cs (OnMergeFailed): Added.
  1904. * UniqueConstraint.cs (AssertConstraint): There was no check that
  1905. values in the row are not null, where it is a primary key
  1906. column. Also check that the row has a proposed version, if not,
  1907. get the current version when we compare the rows.
  1908. 2003-09-25 Duncan Mak <[email protected]>
  1909. Patches from Eran Domb <[email protected]>.
  1910. * DataColumn.cs (Unique): Implemented.
  1911. * DataTable.cs:
  1912. * ConstraintCollection.cs:
  1913. * ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
  1914. an Exception thrown. Details:
  1915. http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html
  1916. * DataRowCollection.cs (Add): There is no checking that there is
  1917. no violation of the unique constrains.
  1918. * UniqueConstraint.cs (AssertConstraint): There is no checking on
  1919. all columns in the constraint.
  1920. * DataTableCollection (Add): Correctly throw an Exception, more
  1921. details here:
  1922. http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002117.html
  1923. (Remove, RemoveAt): Implemented.
  1924. 2003-07-31 Duncan Mak <[email protected]>
  1925. * DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
  1926. 2003-07-25 Ravi Pratap <[email protected]>
  1927. * DataRelation.cs (OnPropertyChanging): Calling the 'Invoke'
  1928. method on a delegate is disallowed - fix this.
  1929. 2003-07-22 Lluis Sanchez Gual <[email protected]>
  1930. * DataSet.cs: Implemented IXmlSerializable interface. Added basic support for
  1931. xml serialization. Modified method of writing schema. Now it creates
  1932. a XmlSchema object and serializes it using XmlSerializer.
  1933. * XmlConstants.cs: Added constants for data type names.
  1934. * XmlDataLoader.cs: Fixed deserialization of data. Now converts data to the
  1935. type specified in the column.
  1936. 2003-04-20 Alan Tam <[email protected]>
  1937. * DataRelationCollection.cs: Fix a bug that prevent relations
  1938. from being added via DataSet.
  1939. 2003-04-12 Ville Palo <[email protected]>
  1940. * UniqueConstraint.cs: one tiny fix.
  1941. 2003-04-05 Ville Palo <[email protected]>
  1942. * DataTable.cs: Remove UniqueConstraints when adding new ones
  1943. 2003-04-04 Ville Palo <[email protected]>
  1944. * DataColumnCollection.cs: Little 'case sensitive' fix
  1945. 2003-04-04 Ville Palo <[email protected]>
  1946. * DataRow.cs: AutoIncrement handling to Constructor
  1947. * DataRowCollection.cs: This doesnt need anymore AutoIncrements
  1948. 2003-03-27 Ville Palo <[email protected]>
  1949. * DataTable.cs: Some fixes to PrimaryKey etc...
  1950. * UniqueConstraint.cs: Little clean up
  1951. 2003-03-27 Ville Palo <[email protected]>
  1952. * DataTable.cs: Tiny fix to ToString () -method
  1953. 2003-03-27 Ville Palo <[email protected]>
  1954. * ConstraintCollection.cs: Little fix.
  1955. * DataColumn.cs: Added new internal method SetUnique()
  1956. * UniqueConstraint.cs: some little fixes
  1957. 2003-03-26 Ville Palo <[email protected]>
  1958. * DataRowCollection.cs: Bugfixes, implementation,...
  1959. 2003-03-26 Ville Palo <[email protected]>
  1960. * DataColumn.cs: If DataType if set to something else than short, int
  1961. or long and AutoIncrement is true, AutoIncrement is must set to false.
  1962. 2003-03-26 Gonzalo Paniagua Javier <[email protected]>
  1963. * DataRow.cs:
  1964. (BeginEdit): fixed array bound problem when a column has been added.
  1965. (EndEdit): just assign proposed to current as proposed is set to null.
  1966. This also fixes another array boudn problem.
  1967. 2003-03-21 Alan Tam <[email protected]>
  1968. * DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
  1969. EndEdit and AcceptChanges to act correctly according to DataRowState
  1970. and DataRowVersion.
  1971. * DataRowCollection.cs: Call AttachRow and DetachRow when a row is
  1972. attached and detached from the collection.
  1973. 2003-03-20 Alan Tam <[email protected]>
  1974. * DataColumn.cs: Store empty string for Expression when null is passed in.
  1975. Classes generated by XSD.exe passes null by default.
  1976. 2003-03-16 Ville Palo <[email protected]>
  1977. * DataColumnCollection.cs: Tiny clean up
  1978. 2003-03-16 Ville Palo <[email protected]>
  1979. * DataColumn.cs: little fixes.
  1980. * DataColumnCollection.cs: Lots of little fixes and improvments.
  1981. 2003-03-12 Alan Tam <[email protected]>
  1982. * DataSet.cs: Fixed a bug that the file written does not close correctly.
  1983. 2003-03-08 Alan Tam <[email protected]>
  1984. * DataRelationCollection.cs: Removed the mis-overridden methods
  1985. * DataRow.cs: Fixed an attribute
  1986. * DataSet.cs: Fixed the modifiers
  1987. 2003-03-06 Aleksey Demakov <[email protected]>
  1988. * DataTableCollection.cs: The Contains (string name),
  1989. IndexOf (string name) methods, and item[string name] indexer
  1990. now behave more like .NET with respect to case-sensitivity.
  1991. That is if there is an exactly matching item then this one is used.
  1992. If there is only one item differing in case then it used.
  1993. If there are more than one item differing in case then
  1994. Contains returns false, IndexOf returns -1, and item[]
  1995. throws an ArgumentException.
  1996. 2003-02-28 Ville Palo <[email protected]>
  1997. * ExpressionElement.cs: More implementation.
  1998. 2003-02-28 Alan Tam <[email protected]>
  1999. * DataSet.cs: Changed WriteTable so that it now calls the newly written
  2000. WriteObjectXml to direct the call to the respective XmlConvert method.
  2001. This fixes the wrong format written to XML files of bool, float,
  2002. double, DateTime and TimeSpan types.
  2003. 2003-02-25 Alan Tam <[email protected]>
  2004. * DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
  2005. * DataRelationCollection.cs: Implemented AddRange and Contains.
  2006. Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
  2007. Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
  2008. Reimplemented most Add methods to eliminate duplicated checks.
  2009. Centralized RelationName generation procedure in GetNextDefaultRelationName.
  2010. 2003-02-25 Alan Tam <[email protected]>
  2011. * DataColumn.cs: Fixed wrong storage representation of Expression
  2012. (using empty string instead of null) so that ToString() returns nothing.
  2013. * DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
  2014. auto column naming now works as expected. Reimplemented some Add methods
  2015. to eliminate code duplication.
  2016. 2003-02-19 Ville Palo <[email protected]>
  2017. * DataTable.cs: DataTable.CaseSensitive follows parent
  2018. DataSet.CaseSensitive property if DataTable.CaseSensitive has never
  2019. been changed directly from DataTable
  2020. 2003-02-19 Ville Palo <[email protected]>
  2021. * DataSet.cs: When CaseSensitive property is changed all of the Tables
  2022. of DataSet have to change too
  2023. 2003-02-19 Daniel Morgan <[email protected]>
  2024. * InternalDataCollectionBase.cs: revert change to field
  2025. to fix build
  2026. * DataViewManager.cs
  2027. * DataView.cs
  2028. * DataTable.cs
  2029. * DataSet.cs: commented use of DesignerAttribute
  2030. because it broke the build. According to MSDN,
  2031. DesignerAttribute does not have a zero-argument constructor
  2032. 2003-02-18 Ville Palo <[email protected]>
  2033. * DataColumnCollectin.cs: Little fix for indexer and case sensitivity
  2034. 2003-02-18 Alan Tam <[email protected]>
  2035. * DataRow.cs: Implemented GetParentRow and GetParentRows.
  2036. * DataSet.cs: Added stub for HasChanges, InferXmlSchema,
  2037. OnPropertyChanging, OnRemoveRelation, OnRemoveTable,
  2038. RaisePropertyChanging.
  2039. * DataTable.cs: Implemented NewRowArray.
  2040. * DataTablePropertyDescriptor: Fixed a modifier.
  2041. * InternalDataCollectionBase.cs: Fixed modifiers. Implemented SyncRoot.
  2042. * PropertyCollection.cs: Minor fix.
  2043. * ConstraintCollection.cs DataColumn.cs DataColumnCollection.cs
  2044. * DataRelation.cs DataRelationCollection.cs DataRow.cs
  2045. * DataRowCollection.cs DataRowState.cs DataSet.cs DataTable.cs
  2046. * DataTableCollection.cs DataTablePropertyDescriptor.cs DataView.cs
  2047. * DataViewManager.cs DataViewRowState.cs DataViewSettingCollection.cs
  2048. * ForeignKeyConstraint.cs InternalDataCollectionBase.cs
  2049. * PropertyCollection.cs UniqueConstraint.cs: Added missing attributes
  2050. 2003-02-08 Ville Palo <[email protected]>
  2051. * ExpressionElement.cs: More implementation
  2052. 2003-02-05 Alan Tam <[email protected]>
  2053. * DataSet.cs: Added framework for DataSet.Update Implemented missing
  2054. methods GetSchemaSerializable, GetSerializationData,
  2055. ReadXmlSerializable, ShouldSerializeRelations and ShouldSerializeTables
  2056. for DataSet
  2057. * DataTable.cs: Implemented missing methods CreateInstance and
  2058. GetRowType for DataTable
  2059. 2003-02-03 Ville Palo <[email protected]>
  2060. * DataSet.cs: Implemented private method MapType for
  2061. mapping datatypes for XmlSchema
  2062. 2003-02-03 Gonzalo Paniagua Javier <[email protected]>
  2063. * DataView.cs: implemented Dispose.
  2064. 2003-01-30 Ville Palo <[email protected]>
  2065. * ExpressionElement.cs: Added new file. This file is for parsing
  2066. and DataData.Select () -methods and DataColumn.Expression -property
  2067. * DataTable.cs: Implemented Select(string) -method
  2068. 2003-01-28 Ville Palo <[email protected]>
  2069. * DataSet.cs: One little fix to writing xml
  2070. 2003-01-27 Ville Palo <[email protected]>
  2071. * XmlSchemaMapper.cs: Some fixes.
  2072. * DatSet.cs: Some XmlFixes and BeginInit ()/ EndInit () -fix
  2073. 2003-01-24 Ville Palo <[email protected]>
  2074. * UniqueConstraint.cs: Do not set columns Unique property true
  2075. as a default.
  2076. * ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table
  2077. 2003-01-18 Ville Palo <[email protected]>
  2078. * DataTableCollection.cs: Now names new DataTable if it doesn't
  2079. already have a name.
  2080. 2003-01-17 Ville Palo <[email protected]>
  2081. * XmlSchemaMapper.cs: Improvments.
  2082. * XmlConstaints.cs: Added more constants.
  2083. * DataSet.cs: Improvments of reading and writing xml
  2084. * DataColumn.cs: Added default values of properties.
  2085. 2003-01-14 Ville Palo <[email protected]>
  2086. * XmlSchemaMapper.cs: Some improvments
  2087. 2003-01-13 Ville Palo <[email protected]>
  2088. * DataRowCollection.cs: Added IndexOutOfRangeException
  2089. * DataTableCollection.cs: Added OnCollectionChanging and
  2090. OnCollectionChanged events.
  2091. * DataSet.cs: Many fixes. Implemented Clone () and Copy () -methods
  2092. * DataTable.cs: Implemented Copy () and Clone () methods.
  2093. * XmlDataLoader.cs: some fixes.
  2094. * XmlSchemaMapper.cs: comments.
  2095. 2003-01-08 Gonzalo Paniagua Javier <[email protected]>
  2096. * DataColumnPropertyDescriptor.cs: store columnIndex in the .ctor.
  2097. 2003-01-08 Gonzalo Paniagua Javier <[email protected]>
  2098. * DataColumnPropertyDescriptor.cs: fixed typo.
  2099. * DataViewManagerListItemTypeDescriptor.cs: added new internal property
  2100. to get the DataViewManager and removed TablePD class.
  2101. * DataTablePropertyDescriptor.cs: TablePD class is now this one as
  2102. suggested by danmorg.
  2103. 2003-01-06 Ville Palo <[email protected]>
  2104. * XmlDataLoader.cs: Moved diffgram stuff to new internal class
  2105. XmlDiffLoader.
  2106. * XmlDiffLoader.cs: new class for diffgrams. Added handling of
  2107. diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
  2108. 2003-01-06 Gonzalo Paniagua Javier <[email protected]>
  2109. * DataView.cs: made dataViewManager internal.
  2110. * DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
  2111. properties of the object, but the values of the columns present in a
  2112. row.
  2113. * DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
  2114. which returns a PropertyDescriptorCollection. Created a new class
  2115. derived from PropertyDescriptor that treats Table as an object whose
  2116. properties are DataRowView.
  2117. 2003-01-04 Ville Palo <[email protected]>
  2118. * XmlSchemaMapper.cs: Added handling for Constraints, Attributes.
  2119. 2003-01-04 Ville Palo <[email protected]>
  2120. * DataColumn.cs: ExtendedProperties is by default !null-
  2121. 2003-01-04 Ville Palo <[email protected]>
  2122. * DataColumnCollection.cs: Add (DataColumn Column) -method didn't
  2123. set column's ordinal.
  2124. 2003-01-02 Ville Palo <[email protected]>
  2125. * DataSet.cs:
  2126. * XmlDataLoader.cs: XmlReader closing fixes.
  2127. * XmlSchemaReader.cs: Added support for ref=
  2128. 2003-01-01 Ville Palo <[email protected]>
  2129. * DataSet.cs:
  2130. - Added XmlReader and XmlWriter Closing.
  2131. - Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
  2132. * XmlSchemaMapper.cs
  2133. - Much better way IMHO to map xmlschema than the old one in
  2134. DataSet.cs. Its, more flexible, cleaner, ...
  2135. 2002-12-29 Ville Palo <[email protected]>
  2136. * XmlDataLoader.cs: Reading diffgrams.
  2137. 2002-12-29 Ville Palo <[email protected]>
  2138. * DataRow.cs: Little fix to indexer and DataColumnCang* trigger fixes.
  2139. * DataTable.cs: Added ChanginDataColumn () for triggering
  2140. DataColumnChanging event
  2141. 2002-12-28 Ville Palo <[email protected]>
  2142. * DataSet.cs: Indentations to WriteXmlSchema () and one little fix
  2143. 2002-12-28 Ville Palo <[email protected]>
  2144. * DataSet.cs: Indentations to WriteXml ()
  2145. 2002-12-27 Ville Palo <[email protected]>
  2146. * DataSet.cs:
  2147. * XmlDataLoader.cs: Moved ReadXml -stuff from DataSet.cs to new
  2148. class XmlDataLoader.cs
  2149. 2002-12-19 Ville Palo <[email protected]>
  2150. * DataSet.cs Implemented ReadXml with XmlReadMode.ReadSchema
  2151. 2002-12-18 Ville Palo <[email protected]>
  2152. * DataSet.cs: Started to implement ReadXml-methods.
  2153. 2002-12-17 Gonzalo Paniagua Javier <[email protected]>
  2154. * DataSet.cs: implemented DefaultViewManager and GetList.
  2155. * DataViewManager.cs: a bit of work on IList and ITypedList needed by
  2156. DataList in System.Web.
  2157. * DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
  2158. DataViewManager.
  2159. 2002-12-16 Ville Palo <[email protected]>
  2160. * DataRow.cs
  2161. * DataTable.cs: Fixed NullException (rollback -event)
  2162. * DataSet.cs: WriteXml -method does not anymore write <?xml... row.
  2163. 2002-12-15 Ville Palo <[email protected]>
  2164. * DataRow.cs:
  2165. * DataRowCollection.cs: Moved event triggering from DataRow to
  2166. DataRowCollection.
  2167. 2002-12-09 Ville Palo <[email protected]>
  2168. * DataSet.cs: Little fix to WriteTable () -method
  2169. and DoReadXmlSchema () -method.
  2170. 2002-12-06 Ville Palo <[email protected]>
  2171. * DataSet.cs: Clean up to reading xmlschema. This looks much better
  2172. now (work better too), but it not working correctly yet.
  2173. 2002-12-04 Ville Palo <[email protected]>
  2174. * DataRow.cs:
  2175. * DataRowCollection.cs: Added some event handlins stuff.
  2176. * DataSet.cs: Some fixes.
  2177. * DataTable.cs: Added event handlers.
  2178. 2002-11-30 Ville Palo <[email protected]>
  2179. * DataRowChangeEventArgs.cs: Implemented Action and Row properties
  2180. 2002-11-30 Ville Palo <[email protected]>
  2181. * System.Data/DataRow.cs: Added internal property XmlDataID
  2182. 2002-11-29 Ville Palo <[email protected]>
  2183. * DataSystem.Data.DataTableCollection.cs:
  2184. Removed HashTable. There could be situations where DataTable
  2185. is added to collection before it hava TableName. So using
  2186. HashTable is impossible.
  2187. 2002-11-19 Carlos Guzmán Álvarez <[email protected]>
  2188. * DataRow.cs: an object that is equal to null
  2189. should be allowed to be set in this indexer too
  2190. to be like .NET
  2191. 2002-11-06 Daniel Morgan <[email protected]>
  2192. * DataColumnPropertyDescriptor.cs: added file
  2193. * System.Data/DataRowView.cs: started implementation
  2194. * DataTable.cs: stubbed more interfaces. Implemented
  2195. IListSource.GetList()
  2196. * DataView.cs: stubbed more interfaces. Implemented
  2197. some properties and methods: GetEnumerator(),
  2198. ITypedList.GetItemProperties, Item indexer, CopyTo()
  2199. 2002-05-18 Nick Drochak <[email protected]>
  2200. * DataRow.cs: Fix typo.