* System.Data.build: removed reference to non-existant
TestDataColumn.cs file.
* System.Data/DataSet.cs: added some implementation.
svn path=/trunk/mcs/; revision=4503
+2002-05-10 Rodrigo Moya <rodrigo@ximian.com>
+
+ * System.Data.build: removed reference to non-existant
+ TestDataColumn.cs file.
+
+ * System.Data/DataSet.cs: added some implementation.
+
2002-05-09 Daniel Morgan <danmorg@sc.rr.com>
* System.Data.SqlClient/PostgresLibrary.cs: got
2002-05-09 Daniel Morgan <danmorg@sc.rr.com>
* System.Data.SqlClient/PostgresLibrary.cs: got
/// <summary>
/// an in-memory cache of data
/// </summary>
/// <summary>
/// an in-memory cache of data
/// </summary>
public class DataSet : MarshalByValueComponent, IListSource,
ISupportInitialize, ISerializable {
public class DataSet : MarshalByValueComponent, IListSource,
ISupportInitialize, ISerializable {
+
+ private string dataSetName;
+ private bool caseSensitive;
+ private bool enforceConstraints;
+ private DataTableCollection tableCollection;
#region Constructors
[MonoTODO]
#region Constructors
[MonoTODO]
- public DataSet()
- {
- //
- // TODO: Add constructor logic here
- //
+ public DataSet() {
+ tableCollection = new DataTableCollection ();
- public DataSet(string dataSetName) {
+ public DataSet(string name) : this () {
+ dataSetName = name;
- protected DataSet(SerializationInfo info, StreamingContext context) {
+ protected DataSet(SerializationInfo info, StreamingContext context) : this () {
+ throw new NotImplementedException ();
}
#endregion // Constructors
}
#endregion // Constructors
#region Public Properties
public bool CaseSensitive {
#region Public Properties
public bool CaseSensitive {
- throw new NotImplementedException ();
}
}
public string DataSetName {
}
}
public string DataSetName {
- throw new NotImplementedException ();
+ throw new NotImplementedException ();
}
}
public bool EnforceConstraints {
}
}
public bool EnforceConstraints {
- throw new NotImplementedException ();
+ return enforceConstraints;
+ enforceConstraints = value;
+ throw new NotImplementedException ();
+ throw new NotImplementedException ();
+ throw new NotImplementedException ();
+ throw new NotImplementedException ();
}
}
public DataTableCollection Tables {
}
}
public DataTableCollection Tables {
- throw new NotImplementedException ();
+ return tableCollection;
public DataSet GetChanges(DataRowState rowStates)
public DataSet GetChanges(DataRowState rowStates)
throw new NotImplementedException ();
throw new NotImplementedException ();
throw new NotImplementedException ();
throw new NotImplementedException ();
public string GetXmlSchema()
public string GetXmlSchema()
throw new NotImplementedException ();
throw new NotImplementedException ();
public virtual void RejectChanges()
public virtual void RejectChanges()
throw new NotImplementedException ();
throw new NotImplementedException ();
public virtual void Reset()
public virtual void Reset()
throw new NotImplementedException ();
throw new NotImplementedException ();
public void WriteXml(Stream stream)
public void WriteXml(Stream stream)
throw new NotImplementedException ();
throw new NotImplementedException ();
public void WriteXml(string fileName)
public void WriteXml(string fileName)
throw new NotImplementedException ();
throw new NotImplementedException ();
public void WriteXml(TextWriter writer)
public void WriteXml(TextWriter writer)
throw new NotImplementedException ();
throw new NotImplementedException ();
public void WriteXml(XmlWriter writer)
public void WriteXml(XmlWriter writer)
throw new NotImplementedException ();
throw new NotImplementedException ();
public void WriteXml(Stream stream, XmlWriteMode mode)
public void WriteXml(Stream stream, XmlWriteMode mode)
throw new NotImplementedException ();
throw new NotImplementedException ();
public void WriteXml(string fileName, XmlWriteMode mode)
public void WriteXml(string fileName, XmlWriteMode mode)
throw new NotImplementedException ();
throw new NotImplementedException ();
public void WriteXml(TextWriter writer, XmlWriteMode mode)
public void WriteXml(TextWriter writer, XmlWriteMode mode)
throw new NotImplementedException ();
throw new NotImplementedException ();
public void WriteXml(XmlWriter writer, XmlWriteMode mode)
public void WriteXml(XmlWriter writer, XmlWriteMode mode)
throw new NotImplementedException ();
throw new NotImplementedException ();
public void WriteXmlSchema(Stream stream)
public void WriteXmlSchema(Stream stream)
throw new NotImplementedException ();
throw new NotImplementedException ();
- }\r
-\r
- public void WriteXmlSchema(string fileName) {\r
- }\r
-\r
- public void WriteXmlSchema(TextWriter writer) {\r
- }\r
-\r
- public void WriteXmlSchema(XmlWriter writer) {\r
- }\r
-\r
- #endregion // Public Methods\r
-\r
- #region Public Events\r
-\r
- public event MergeFailedEventHandler MergeFailed;\r
-\r
- #endregion // Public Events\r
-\r
- #region Destructors\r
-\r
- ~DataSet() {\r
- }\r
-\r
- #endregion Destructors\r
+ }
+
+ 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 ()
#region IListSource methods
IList IListSource.GetList ()