/// </summary>
public class SqlConnection : IDBConnection
{
- #region methods
-
public SqlTransaction BeginTransaction()
{
return new SqlTransaction (this);
{
SqlTransaction xaction = new SqlTransaction (cnc);
xaction.IsolationLevel = il;
-
+
return xaction;
}
throw new NotImplementedException ();
}
- #endregion
-
- #region properties
-
[MonoTODO]
public string ConnectionString
{
{
get { throw new NotImplementedException (); }
}
-
- #endregion
}
}
/// </summary>
public class SqlConnection : IDBConnection
{
- #region methods
-
public SqlTransaction BeginTransaction()
{
return new SqlTransaction (this);
{
SqlTransaction xaction = new SqlTransaction (cnc);
xaction.IsolationLevel = il;
-
+
return xaction;
}
throw new NotImplementedException ();
}
- #endregion
-
- #region properties
-
[MonoTODO]
public string ConnectionString
{
{
get { throw new NotImplementedException (); }
}
-
- #endregion
}
}
+2002-03-27 Rodrigo Moya <rodrigo@ximian.com>
+
+ * System.Data.Common/DataColumnMapping.cs:
+ * System.Data.Common/DataColumnMappingCollection.cs:
+ * System.Data.Common/DataAdapter.cs: created skeletons.
+
+ * System.Data.build: exclude new directories from build.
+
2002-03-27 Rodrigo Moya <rodrigo@ximian.com>
* System.Data.SqlClient/SqlTransaction.cs: started implementation.
--- /dev/null
+//
+// System.Data.Common.DataAdapter
+//
+// Author:
+// Rodrigo Moya (rodrigo@ximian.com)
+//
+// (C) Ximian, Inc
+//
+
+namespace System.Data.Common
+{
+ /// <summary>
+ /// Represents a set of data commands and a database connection that are used to fill the DataSet and update the data source.
+ /// </summary>
+ public abstract class DataAdapter : Component, IDataAdapter
+ {
+ [MonoTODO]
+ protected DataAdapter()
+ {
+ throw new NotImplementedException ();
+ }
+
+ public abstract int Fill(DataSet dataSet);
+
+ public abstract DataTable[] FillSchema(DataSet dataSet,
+ SchemaType schemaType);
+
+ public abstract IDataParameter[] GetFillParameters();
+
+ public abstract int Update(DataSet dataSet);
+
+ protected virtual DataAdapter CloneInternals();
+
+ protected virtual DataTableMappingCollection CreateTableMappings();
+
+ protected virtual bool ShouldSerializeTableMappings();
+
+ [MonoTODO]
+ public bool AcceptChangesDuringFill
+ {
+ get { throw new NotImplementedException (); }
+ set { throw new NotImplementedException (); }
+ }
+
+ [MonoTODO]
+ public bool ContinueUpdateOnError
+ {
+ get { throw new NotImplementedException (); }
+ set { throw new NotImplementedException (); }
+ }
+
+ [MonoTODO]
+ public MissingMappingAction MissingMappingAction
+ {
+ get { throw new NotImplementedException (); }
+ set { throw new NotImplementedException (); }
+ }
+
+ [MonoTODO]
+ public MissingSchemaAction MissingSchemaAction
+ {
+ get { throw new NotImplementedException (); }
+ set { throw new NotImplementedException (); }
+ }
+
+ [MonoTODO]
+ public DataTableMappingCollection TableMappings
+ {
+ get { throw new NotImplementedException (); }
+ }
+ }
+}
--- /dev/null
+//
+// System.Data.Common.DataColumnMapping
+//
+// Author:
+// Rodrigo Moya (rodrigo@ximian.com)
+//
+// (C) Ximian, Inc
+//
+
+namespace System.Data.Common
+{
+ /// <summary>
+ /// Contains a generic column mapping for an object that inherits from DataAdapter. This class cannot be inherited.
+ /// </summary>
+ public sealed class DataColumnMapping : MarshalByRefObject, IColumnMapping, ICloneable
+ {
+ [MonoTODO]
+ public DataColumnMapping()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public DataColumnMapping(string src_column, string ds_column)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public DataColumn GetDataColumnBySchemaAction(DataTable dataTable,
+ Type dataType,
+ MissingSchemaAction schemaAction)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public string DataSetColumn
+ {
+ get { throw new NotImplementedException (); }
+ set { throw new NotImplementedException (); }
+ }
+
+ [MonoTODO]
+ public string SourceColumn
+ {
+ get { throw new NotImplementedException (); }
+ set { throw new NotImplementedException (); }
+ }
+ }
+}
--- /dev/null
+//
+// System.Data.Common.DataColumnCollection
+//
+// Author:
+// Rodrigo Moya (rodrigo@ximian.com)
+//
+// (C) Ximian, Inc
+//
+
+namespace System.Data.Common
+{
+ /// <summary>
+ /// Contains a collection of DataColumnMapping objects. This class cannot be inherited.
+ /// </summary>
+ public sealed class DataColumnMappingCollection :
+ MarshalByRefObject, IColumnMappingCollection, IList,
+ ICollection, IEnumerable
+ {
+ [MonoTODO]
+ public DataColumnMappingCollection()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public int Add(object)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public void AddRange(DataColumnMapping[] values)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public void Clear()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public bool Contains(object)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public void CopyTo(Array array, int index)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public DataColumnMapping GetByDataSetColumn(string value)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public static DataColumnMapping GetColumnMappingBySchemaAction(
+ DataColumnMappingCollection columnMappings,
+ string sourceColumn,
+ MissingMappingAction mappingAction)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public int IndexOf(object)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public int IndexOfDataSetColumn(string dataSetColumn)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public void Insert(int index, object value)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public void Remove(object value)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public void RemoveAt(int index)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public int Count
+ {
+ get { throw new NotImplementedException (); }
+ }
+
+ [MonoTODO]
+ public DataColumnMapping this[int]
+ {
+ get { throw new NotImplementedException (); }
+ set { throw new NotImplementedException (); }
+ }
+ }
+}
/// </summary>
public class SqlConnection : IDBConnection
{
- #region methods
-
public SqlTransaction BeginTransaction()
{
return new SqlTransaction (this);
{
SqlTransaction xaction = new SqlTransaction (cnc);
xaction.IsolationLevel = il;
-
+
return xaction;
}
throw new NotImplementedException ();
}
- #endregion
-
- #region properties
-
[MonoTODO]
public string ConnectionString
{
{
get { throw new NotImplementedException (); }
}
-
- #endregion
}
}
<excludes name="System.Data/DataTable.cs"/>
<excludes name="System.Data/DataSet.cs"/>
<excludes name="Test/**"/>
+ <excludes name="System.Data.Common/*"/>
<excludes name="System.Data.SqlClient/*"/>
</sources>
<references>