From e0882a0d2e9cfa11b8ba0b3e70b460ec47fa710e Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Fri, 10 May 2002 19:39:43 +0000 Subject: [PATCH] 2002-05-10 Rodrigo Moya * System.Data.build: removed reference to non-existant TestDataColumn.cs file. * System.Data/DataSet.cs: added some implementation. svn path=/trunk/mcs/; revision=4503 --- mcs/class/System.Data/ChangeLog | 7 + mcs/class/System.Data/System.Data/DataSet.cs | 180 ++++++++++--------- 2 files changed, 102 insertions(+), 85 deletions(-) diff --git a/mcs/class/System.Data/ChangeLog b/mcs/class/System.Data/ChangeLog index aa327a025be..8507c579181 100644 --- a/mcs/class/System.Data/ChangeLog +++ b/mcs/class/System.Data/ChangeLog @@ -1,3 +1,10 @@ +2002-05-10 Rodrigo Moya + + * System.Data.build: removed reference to non-existant + TestDataColumn.cs file. + + * System.Data/DataSet.cs: added some implementation. + 2002-05-09 Daniel Morgan * System.Data.SqlClient/PostgresLibrary.cs: got diff --git a/mcs/class/System.Data/System.Data/DataSet.cs b/mcs/class/System.Data/System.Data/DataSet.cs index 65b8c0bab40..610fe78bc03 100644 --- a/mcs/class/System.Data/System.Data/DataSet.cs +++ b/mcs/class/System.Data/System.Data/DataSet.cs @@ -22,26 +22,30 @@ namespace System.Data /// /// an in-memory cache of data /// - [Serializable] + [Serializable] public class DataSet : MarshalByValueComponent, IListSource, ISupportInitialize, ISerializable { + + private string dataSetName; + private bool caseSensitive; + private bool enforceConstraints; + private DataTableCollection tableCollection; #region Constructors [MonoTODO] - public DataSet() - { - // - // TODO: Add constructor logic here - // + public DataSet() { + tableCollection = new DataTableCollection (); } [MonoTODO] - public DataSet(string dataSetName) { + public DataSet(string name) : this () { + dataSetName = name; } [MonoTODO] - protected DataSet(SerializationInfo info, StreamingContext context) { + protected DataSet(SerializationInfo info, StreamingContext context) : this () { + throw new NotImplementedException (); } #endregion // Constructors @@ -49,24 +53,21 @@ namespace System.Data #region Public Properties public bool CaseSensitive { - [MonoTODO] get { - throw new NotImplementedException (); + return caseSensitive; } - - [MonoTODO] set { + caseSensitive = value; } } public string DataSetName { - [MonoTODO] get { - throw new NotImplementedException (); + return dataSetName; } - [MonoTODO] set { + dataSetName = value; } } @@ -78,17 +79,17 @@ namespace System.Data [MonoTODO] set { + throw new NotImplementedException (); } } public bool EnforceConstraints { - [MonoTODO] get { - throw new NotImplementedException (); + return enforceConstraints; } - [MonoTODO] set { + enforceConstraints = value; } } @@ -114,6 +115,7 @@ namespace System.Data [MonoTODO] set { + throw new NotImplementedException (); } } @@ -125,6 +127,7 @@ namespace System.Data [MonoTODO] set { + throw new NotImplementedException (); } } @@ -136,6 +139,7 @@ namespace System.Data [MonoTODO] set { + throw new NotImplementedException (); } } @@ -154,13 +158,13 @@ namespace System.Data [MonoTODO] set { + throw new NotImplementedException (); } } public DataTableCollection Tables { - [MonoTODO] get { - throw new NotImplementedException (); + return tableCollection; } } @@ -195,98 +199,104 @@ namespace System.Data public DataSet GetChanges(DataRowState rowStates) - { + { throw new NotImplementedException (); - } - + } + public string GetXml() - { + { throw new NotImplementedException (); - } - + } + public string GetXmlSchema() - { + { throw new NotImplementedException (); - } - + } + public virtual void RejectChanges() - { + { throw new NotImplementedException (); - } - + } + public virtual void Reset() - { + { throw new NotImplementedException (); - } - + } + public void WriteXml(Stream stream) - { + { throw new NotImplementedException (); - } - + } + public void WriteXml(string fileName) - { + { throw new NotImplementedException (); - } - + } + public void WriteXml(TextWriter writer) - { + { throw new NotImplementedException (); - } - + } + public void WriteXml(XmlWriter writer) - { + { throw new NotImplementedException (); - } - + } + public void WriteXml(Stream stream, XmlWriteMode mode) - { + { throw new NotImplementedException (); - } - + } + public void WriteXml(string fileName, XmlWriteMode mode) - { + { throw new NotImplementedException (); - } - + } + public void WriteXml(TextWriter writer, XmlWriteMode mode) - { + { throw new NotImplementedException (); - } - + } + public void WriteXml(XmlWriter writer, XmlWriteMode mode) - { + { throw new NotImplementedException (); - } - + } + public void WriteXmlSchema(Stream stream) - { + { throw new NotImplementedException (); - } - - public void WriteXmlSchema(string fileName) { - } - - public void WriteXmlSchema(TextWriter writer) { - } - - public void WriteXmlSchema(XmlWriter writer) { - } - - #endregion // Public Methods - - #region Public Events - - public event MergeFailedEventHandler MergeFailed; - - #endregion // Public Events - - #region Destructors - - ~DataSet() { - } - - #endregion Destructors + } + + public void WriteXmlSchema(string fileName) + { + throw new NotImplementedException (); + } + + public void WriteXmlSchema(TextWriter writer) + { + } + + public void WriteXmlSchema(XmlWriter writer) + { + throw new NotImplementedException (); + } + + #endregion // Public Methods + + #region Public Events + + public event MergeFailedEventHandler MergeFailed; + + #endregion // Public Events + + #region Destructors + + ~DataSet() + { + } + + #endregion Destructors #region IListSource methods IList IListSource.GetList () -- 2.25.1