Selaa lähdekoodia

2002-03-28 Rodrigo Moya <[email protected]>

	* System.Data.Common/DataTableMappingCollection.cs:
	* System.Data.Common/DbDataAdapter.cs:
	* System.Data.Common/DbDataPermission.cs:
	* System.Data.Common/DataTableMapping.cs: new skeletons.

	* System.Data.SqlClient/SqlDataAdapter.cs:
	* System.Data.SqlClient/SqlDataReader.cs:
	* System.Data.SqlClient/SqlErrors.cs:
	* System.Data.SqlClient/SqlError.cs:
	* System.Data.SqlClient/SqlException.cs:
	* System.Data.SqlClient/SqlParameter.cs:
	* System.Data.SqlClient/SqlParameterCollection.cs:
	* System.Data.SqlClient/SqlTransaction.cs:
	* System.Data.SqlClient/SqlCommand.cs: fixed skeletons.

svn path=/trunk/mcs/; revision=3461
Rodrigo Moya 24 vuotta sitten
vanhempi
sitoutus
d11d2324e5
31 muutettua tiedostoa jossa 1102 lisäystä ja 199 poistoa
  1. 76 16
      mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlCommand.cs
  2. 23 4
      mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlDataAdapter.cs
  3. 37 9
      mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlDataReader.cs
  4. 1 2
      mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlError.cs
  5. 1 2
      mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlException.cs
  6. 59 11
      mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlParameter.cs
  7. 23 6
      mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlParameterCollection.cs
  8. 3 15
      mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlTransaction.cs
  9. 76 16
      mcs/class/Mono.Data.PostgreSqlClient/PgSqlCommand.cs
  10. 23 4
      mcs/class/Mono.Data.PostgreSqlClient/PgSqlDataAdapter.cs
  11. 37 9
      mcs/class/Mono.Data.PostgreSqlClient/PgSqlDataReader.cs
  12. 1 2
      mcs/class/Mono.Data.PostgreSqlClient/PgSqlError.cs
  13. 1 2
      mcs/class/Mono.Data.PostgreSqlClient/PgSqlException.cs
  14. 59 11
      mcs/class/Mono.Data.PostgreSqlClient/PgSqlParameter.cs
  15. 23 6
      mcs/class/Mono.Data.PostgreSqlClient/PgSqlParameterCollection.cs
  16. 3 15
      mcs/class/Mono.Data.PostgreSqlClient/PgSqlTransaction.cs
  17. 1 2
      mcs/class/Mono.Data.PostgreSqlClient/SqlErrors.cs
  18. 17 0
      mcs/class/System.Data/ChangeLog
  19. 63 0
      mcs/class/System.Data/System.Data.Common/DataTableMapping.cs
  20. 125 0
      mcs/class/System.Data/System.Data.Common/DataTableMappingCollection.cs
  21. 142 0
      mcs/class/System.Data/System.Data.Common/DbDataAdapter.cs
  22. 84 0
      mcs/class/System.Data/System.Data.Common/DbDataPermission.cs
  23. 76 16
      mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs
  24. 23 4
      mcs/class/System.Data/System.Data.SqlClient/SqlDataAdapter.cs
  25. 37 9
      mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs
  26. 1 2
      mcs/class/System.Data/System.Data.SqlClient/SqlError.cs
  27. 1 2
      mcs/class/System.Data/System.Data.SqlClient/SqlErrors.cs
  28. 1 2
      mcs/class/System.Data/System.Data.SqlClient/SqlException.cs
  29. 59 11
      mcs/class/System.Data/System.Data.SqlClient/SqlParameter.cs
  30. 23 6
      mcs/class/System.Data/System.Data.SqlClient/SqlParameterCollection.cs
  31. 3 15
      mcs/class/System.Data/System.Data.SqlClient/SqlTransaction.cs

+ 76 - 16
mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlCommand.cs

@@ -14,33 +14,93 @@ namespace System.Data.SqlClient
 	/// </summary>
 	public class SqlCommand : IDbCommand
 	{
-		void Cancel();
-		
-		SqlParameter CreateParameter();
-		
-		int ExecuteNonQuery();
+		[MonoTODO]
+		void Cancel()
+		{
+			throw new NotImplementedException ();
+		}
 
-		SqlDataReader ExecuteReader();
+		[MonoTODO]
+		SqlParameter CreateParameter()
+		{
+			throw new NotImplementedException ();
+		}
 
-		SqlDataReader ExecuteReader(CommandBehavior behavior);
+		[MonoTODO]
+		int ExecuteNonQuery()
+		{
+			throw new NotImplementedException ();
+		}
 
-		object ExecuteScalar();
+		[MonoTODO]
+		SqlDataReader ExecuteReader()
+		{
+			throw new NotImplementedException ();
+		}
 
-		void Prepare();
+		[MonoTODO]
+		SqlDataReader ExecuteReader(CommandBehavior behavior)
+		{
+		}
 
+		[MonoTODO]
+		object ExecuteScalar()
+		{
+			throw new NotImplementedException ();
+		}
 
-		string CommandText{get; set;}
+		[MonoTODO]
+		void Prepare()
+		{
+			throw new NotImplementedException ();
+		}
 
-		int CommandTimeout{get; set;}
+		[MonoTODO]
+		string CommandText
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		CommandType CommandType{get; set;}
+		[MonoTODO]
+		int CommandTimeout
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		SqlConnection Connection{get; set;}
+		[MonoTODO]
+		CommandType CommandType
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		SqlParameterCollection Parameters{get;}
+		[MonoTODO]
+		SqlConnection Connection
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		IDbTransaction Transaction{get; set;}
+		[MonoTODO]
+		SqlParameterCollection Parameters
+		{
+			get { throw new NotImplementedException (); }
+		}
 
-		UpdateRowSource UpdatedRowSource{get; set;}
+		[MonoTODO]
+		IDbTransaction Transaction
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
+		
+		[MonoTODO]
+		UpdateRowSource UpdatedRowSource
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 	}
 }

+ 23 - 4
mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlDataAdapter.cs

@@ -14,12 +14,31 @@ namespace System.Data.SqlClient
 	/// </summary>
 	public class SqlDataAdapter : IDbDataAdapter
 	{
-		SqlCommand DeleteCommand{get; set;}
+		[MonoTODO]
+		SqlCommand DeleteCommand
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		SqlCommand InsertCommand{get; set;}
+		[MonoTODO]
+		SqlCommand InsertCommand
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		SqlCommand SelectCommand{get; set;}
+		[MonoTODO]
+		SqlCommand SelectCommand
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		SqlCommand UpdateCommand{get; set;}
+		SqlCommand UpdateCommand
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 	}
 }

+ 37 - 9
mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlDataReader.cs

@@ -14,19 +14,47 @@ namespace System.Data.SqlClient
 	/// </summary>
 	public interface SqlDataReader : IDataReader
 	{
-		void Close();
-		
-		DataTable GetSchemaTable();
-		
-		bool NextResult();
+		[MonoTODO]
+		void Close()
+		{
+			throw new NotImplementedException ();
+		}
 
-		bool Read();
+		[MonoTODO]
+		DataTable GetSchemaTable()
+		{
+			throw new NotImplementedException ();
+		}
 
-		int Depth{get;}
+		[MonoTODO]
+		bool NextResult()
+		{
+			throw new NotImplementedException ();
+		}
 
-		bool IsClosed{get;}
+		[MonoTODO]
+		bool Read()
+	        {
+			throw new NotImplementedException ();
+		}
 
-		int RecordsAffected{get;}
+		[MonoTODO]
+		int Depth
+		{
+			get { throw new NotImplementedException (); }
+		}
+
+		[MonoTODO]
+		bool IsClosed
+		{
+			get { throw new NotImplementedException (); }
+		}
+
+		[MonoTODO]
+		int RecordsAffected
+		{
+			get { throw new NotImplementedException (); }
+		}
 
 
 	}

+ 1 - 2
mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlError.cs

@@ -14,7 +14,6 @@ namespace System.Data.SqlClient
 	/// </summary>
 	public class SqlError
 	{
-		// TODO
-
+		[MonoTODO]
 	}
 }

+ 1 - 2
mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlException.cs

@@ -14,7 +14,6 @@ namespace System.Data.SqlClient
 	/// </summary>
 	public class SqlException : SystemException
 	{
-		// TODO
-
+		[MonoTODO]
 	}
 }

+ 59 - 11
mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlParameter.cs

@@ -14,26 +14,74 @@ namespace System.Data.SqlClient
 	/// </summary>
 	public class SqlParameter : IDbDataParameter, IDataParameter
 	{
-		
-		DbType DbType{get;set;}
+		[MonoTODO]
+		DbType DbType
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		ParameterDirection Direction{get;set;}
+		[MonoTODO]
+		ParameterDirection Direction
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		bool IsNullable{get;}
+		[MonoTODO]
+		bool IsNullable
+		{
+			get { throw new NotImplementedException (); }
+		}
 
-		string ParameterName{get;set;}
+		[MonoTODO]
+		string ParameterName
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		string SourceColumn{get;set;}
+		[MonoTODO]
+		string SourceColumn
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		DataRowVersion SourceVersion {get;set;}
+		[MonoTODO]
+		DataRowVersion SourceVersion
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		object Value {get;set;}
+		[MonoTODO]
+		object Value
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		byte Precision{get; set;}
+		[MonoTODO]
+		byte Precision
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-                byte Scale{get; set;}
+		[MonoTODO]
+                byte Scale
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-                int Size{get; set;}
+		[MonoTODO]
+                int Size
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
 	}
 }

+ 23 - 6
mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlParameterCollection.cs

@@ -16,12 +16,29 @@ namespace System.Data.SqlClient
 	/// </summary>
 	public class SqlParameterCollection : IDataParameterCollection
 	{
-		void RemoveAt(string parameterName);
-		
-		int IndexOf(string parameterName);
-		
-		bool Contains(string parameterName);
+		[MonoTODO]
+		void RemoveAt(string parameterName)
+		{
+			throw new NotImplementedException ();
+		}
 
-		object this[string parameterName]{get; set;}
+		[MonoTODO]
+		int IndexOf(string parameterName)
+	        {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		bool Contains(string parameterName)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		object this[string parameterName]
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 	}
 }

+ 3 - 15
mcs/class/Mono.Data.PostgreSqlClient/Mono.Data.PostgreSqlClient/PgSqlTransaction.cs

@@ -14,47 +14,35 @@ namespace System.Data.SqlClient
 	/// </summary>
 	public class SqlTransaction : IDbTransaction
 	{
-		#region fields
-		
 		protected SqlConnection connection = null;
 
-		#endregion
-		
-		#region constructors
-		
 		public SqlTransaction (SqlConnection cnc)
 		{
 			connection = cnc;
 		}
 
-		#endregion
-
-		#region methods
-		
+		[MonoTODO]
 		public void Commit ()
 		{
 			throw new NotImplementedException ();
 		}		
 
+		[MonoTODO]
 		void Rollback()
 		{
 			throw new NotImplementedException ();
 		}
 
-		#endregion
-		
-		# region properties
-		
 		public SqlConnection Connection
 		{
 			get { return connection; }
 		}
 
+		[MonoTODO]
 		public IsolationLevel IsolationLevel
 		{
 			get { throw new NotImplementedException (); }
 		}
 
-		#endregion
 	}
 }

+ 76 - 16
mcs/class/Mono.Data.PostgreSqlClient/PgSqlCommand.cs

@@ -14,33 +14,93 @@ namespace System.Data.SqlClient
 	/// </summary>
 	public class SqlCommand : IDbCommand
 	{
-		void Cancel();
-		
-		SqlParameter CreateParameter();
-		
-		int ExecuteNonQuery();
+		[MonoTODO]
+		void Cancel()
+		{
+			throw new NotImplementedException ();
+		}
 
-		SqlDataReader ExecuteReader();
+		[MonoTODO]
+		SqlParameter CreateParameter()
+		{
+			throw new NotImplementedException ();
+		}
 
-		SqlDataReader ExecuteReader(CommandBehavior behavior);
+		[MonoTODO]
+		int ExecuteNonQuery()
+		{
+			throw new NotImplementedException ();
+		}
 
-		object ExecuteScalar();
+		[MonoTODO]
+		SqlDataReader ExecuteReader()
+		{
+			throw new NotImplementedException ();
+		}
 
-		void Prepare();
+		[MonoTODO]
+		SqlDataReader ExecuteReader(CommandBehavior behavior)
+		{
+		}
 
+		[MonoTODO]
+		object ExecuteScalar()
+		{
+			throw new NotImplementedException ();
+		}
 
-		string CommandText{get; set;}
+		[MonoTODO]
+		void Prepare()
+		{
+			throw new NotImplementedException ();
+		}
 
-		int CommandTimeout{get; set;}
+		[MonoTODO]
+		string CommandText
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		CommandType CommandType{get; set;}
+		[MonoTODO]
+		int CommandTimeout
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		SqlConnection Connection{get; set;}
+		[MonoTODO]
+		CommandType CommandType
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		SqlParameterCollection Parameters{get;}
+		[MonoTODO]
+		SqlConnection Connection
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		IDbTransaction Transaction{get; set;}
+		[MonoTODO]
+		SqlParameterCollection Parameters
+		{
+			get { throw new NotImplementedException (); }
+		}
 
-		UpdateRowSource UpdatedRowSource{get; set;}
+		[MonoTODO]
+		IDbTransaction Transaction
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
+		
+		[MonoTODO]
+		UpdateRowSource UpdatedRowSource
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 	}
 }

+ 23 - 4
mcs/class/Mono.Data.PostgreSqlClient/PgSqlDataAdapter.cs

@@ -14,12 +14,31 @@ namespace System.Data.SqlClient
 	/// </summary>
 	public class SqlDataAdapter : IDbDataAdapter
 	{
-		SqlCommand DeleteCommand{get; set;}
+		[MonoTODO]
+		SqlCommand DeleteCommand
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		SqlCommand InsertCommand{get; set;}
+		[MonoTODO]
+		SqlCommand InsertCommand
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		SqlCommand SelectCommand{get; set;}
+		[MonoTODO]
+		SqlCommand SelectCommand
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		SqlCommand UpdateCommand{get; set;}
+		SqlCommand UpdateCommand
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 	}
 }

+ 37 - 9
mcs/class/Mono.Data.PostgreSqlClient/PgSqlDataReader.cs

@@ -14,19 +14,47 @@ namespace System.Data.SqlClient
 	/// </summary>
 	public interface SqlDataReader : IDataReader
 	{
-		void Close();
-		
-		DataTable GetSchemaTable();
-		
-		bool NextResult();
+		[MonoTODO]
+		void Close()
+		{
+			throw new NotImplementedException ();
+		}
 
-		bool Read();
+		[MonoTODO]
+		DataTable GetSchemaTable()
+		{
+			throw new NotImplementedException ();
+		}
 
-		int Depth{get;}
+		[MonoTODO]
+		bool NextResult()
+		{
+			throw new NotImplementedException ();
+		}
 
-		bool IsClosed{get;}
+		[MonoTODO]
+		bool Read()
+	        {
+			throw new NotImplementedException ();
+		}
 
-		int RecordsAffected{get;}
+		[MonoTODO]
+		int Depth
+		{
+			get { throw new NotImplementedException (); }
+		}
+
+		[MonoTODO]
+		bool IsClosed
+		{
+			get { throw new NotImplementedException (); }
+		}
+
+		[MonoTODO]
+		int RecordsAffected
+		{
+			get { throw new NotImplementedException (); }
+		}
 
 
 	}

+ 1 - 2
mcs/class/Mono.Data.PostgreSqlClient/PgSqlError.cs

@@ -14,7 +14,6 @@ namespace System.Data.SqlClient
 	/// </summary>
 	public class SqlError
 	{
-		// TODO
-
+		[MonoTODO]
 	}
 }

+ 1 - 2
mcs/class/Mono.Data.PostgreSqlClient/PgSqlException.cs

@@ -14,7 +14,6 @@ namespace System.Data.SqlClient
 	/// </summary>
 	public class SqlException : SystemException
 	{
-		// TODO
-
+		[MonoTODO]
 	}
 }

+ 59 - 11
mcs/class/Mono.Data.PostgreSqlClient/PgSqlParameter.cs

@@ -14,26 +14,74 @@ namespace System.Data.SqlClient
 	/// </summary>
 	public class SqlParameter : IDbDataParameter, IDataParameter
 	{
-		
-		DbType DbType{get;set;}
+		[MonoTODO]
+		DbType DbType
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		ParameterDirection Direction{get;set;}
+		[MonoTODO]
+		ParameterDirection Direction
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		bool IsNullable{get;}
+		[MonoTODO]
+		bool IsNullable
+		{
+			get { throw new NotImplementedException (); }
+		}
 
-		string ParameterName{get;set;}
+		[MonoTODO]
+		string ParameterName
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		string SourceColumn{get;set;}
+		[MonoTODO]
+		string SourceColumn
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		DataRowVersion SourceVersion {get;set;}
+		[MonoTODO]
+		DataRowVersion SourceVersion
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		object Value {get;set;}
+		[MonoTODO]
+		object Value
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		byte Precision{get; set;}
+		[MonoTODO]
+		byte Precision
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-                byte Scale{get; set;}
+		[MonoTODO]
+                byte Scale
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-                int Size{get; set;}
+		[MonoTODO]
+                int Size
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
 	}
 }

+ 23 - 6
mcs/class/Mono.Data.PostgreSqlClient/PgSqlParameterCollection.cs

@@ -16,12 +16,29 @@ namespace System.Data.SqlClient
 	/// </summary>
 	public class SqlParameterCollection : IDataParameterCollection
 	{
-		void RemoveAt(string parameterName);
-		
-		int IndexOf(string parameterName);
-		
-		bool Contains(string parameterName);
+		[MonoTODO]
+		void RemoveAt(string parameterName)
+		{
+			throw new NotImplementedException ();
+		}
 
-		object this[string parameterName]{get; set;}
+		[MonoTODO]
+		int IndexOf(string parameterName)
+	        {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		bool Contains(string parameterName)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		object this[string parameterName]
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 	}
 }

+ 3 - 15
mcs/class/Mono.Data.PostgreSqlClient/PgSqlTransaction.cs

@@ -14,47 +14,35 @@ namespace System.Data.SqlClient
 	/// </summary>
 	public class SqlTransaction : IDbTransaction
 	{
-		#region fields
-		
 		protected SqlConnection connection = null;
 
-		#endregion
-		
-		#region constructors
-		
 		public SqlTransaction (SqlConnection cnc)
 		{
 			connection = cnc;
 		}
 
-		#endregion
-
-		#region methods
-		
+		[MonoTODO]
 		public void Commit ()
 		{
 			throw new NotImplementedException ();
 		}		
 
+		[MonoTODO]
 		void Rollback()
 		{
 			throw new NotImplementedException ();
 		}
 
-		#endregion
-		
-		# region properties
-		
 		public SqlConnection Connection
 		{
 			get { return connection; }
 		}
 
+		[MonoTODO]
 		public IsolationLevel IsolationLevel
 		{
 			get { throw new NotImplementedException (); }
 		}
 
-		#endregion
 	}
 }

+ 1 - 2
mcs/class/Mono.Data.PostgreSqlClient/SqlErrors.cs

@@ -14,7 +14,6 @@ namespace System.Data.SqlClient
 	/// </summary>
 	public class SqlErrors : ICollection, IEnumerable
 	{
-		// TODO
-
+		[MonoTODO]
 	}
 }

+ 17 - 0
mcs/class/System.Data/ChangeLog

@@ -1,3 +1,20 @@
+2002-03-28  Rodrigo Moya <[email protected]>
+
+	* System.Data.Common/DataTableMappingCollection.cs:
+	* System.Data.Common/DbDataAdapter.cs:
+	* System.Data.Common/DbDataPermission.cs:
+	* System.Data.Common/DataTableMapping.cs: new skeletons.
+
+	* System.Data.SqlClient/SqlDataAdapter.cs:
+	* System.Data.SqlClient/SqlDataReader.cs:
+	* System.Data.SqlClient/SqlErrors.cs:
+	* System.Data.SqlClient/SqlError.cs:
+	* System.Data.SqlClient/SqlException.cs:
+	* System.Data.SqlClient/SqlParameter.cs:
+	* System.Data.SqlClient/SqlParameterCollection.cs:
+	* System.Data.SqlClient/SqlTransaction.cs:
+	* System.Data.SqlClient/SqlCommand.cs: fixed skeletons.
+
 2002-03-27  Rodrigo Moya <[email protected]>
 
 	* System.Data.Common/DataColumnMapping.cs:

+ 63 - 0
mcs/class/System.Data/System.Data.Common/DataTableMapping.cs

@@ -0,0 +1,63 @@
+//
+// System.Data.Common.DataTableMapping.cs
+//
+// Author:
+//   Rodrigo Moya ([email protected])
+//
+// (C) Ximian, Inc
+//
+
+namespace System.Data.Common
+{
+	/// <summary>
+	/// Contains a description of a mapped relationship between a source table and a DataTable. This class is used by a DataAdapter when populating a DataSet.
+	/// </summary>
+	public sealed class DataTableMapping : MarshalByRefObject, ITableMapping, ICloneable
+	{
+		[MonoTODO]
+		public DataTableMapping() {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public DataTableMapping(string, string) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public DataTableMapping(string, string, DataColumnMapping[]) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public DataColumnMapping GetColumnMappingBySchemaAction(
+			string sourceColumn,
+			MissingMappingAction mappingAction) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public DataTable GetDataTableBySchemaAction(
+			DataSet dataSet,
+			MissingSchemaAction schemaAction) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public DataColumnMappingCollection ColumnMappings {
+			get { throw new NotImplementedException (); }
+		}
+
+		[MonoTODO]
+		public string DataSetTable {
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
+
+		[MonoTODO]
+		public string SourceTable {
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
+	}
+}

+ 125 - 0
mcs/class/System.Data/System.Data.Common/DataTableMappingCollection.cs

@@ -0,0 +1,125 @@
+//
+// System.Data.Common.DataTableMappingCollection.cs
+//
+// Author:
+//   Rodrigo Moya ([email protected])
+//
+// (C) Ximian, Inc
+//
+
+namespace System.Data.Common
+{
+	/// <summary>
+	/// A collection of DataTableMapping objects. This class cannot be inherited.
+	/// </summary>
+	public sealed class DataTableMappingCollection :
+		MarshalByRefObject, ITableMappingCollection, IList,
+		ICollection, IEnumerable
+	{
+		[MonoTODO]
+		public DataTableMappingCollection() {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public int Add(object) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public DataTableMapping Add(string, string) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public void AddRange(DataTableMapping[] values) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public void Clear() {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public bool Contains(object) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public bool Contains(string) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public void CopyTo(Array array, int index) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public DataTableMapping GetByDataSetTable(string dataSetTable) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public static DataTableMapping GetTableMappingBySchemaAction(
+			DataTableMappingCollection tableMappings,
+			string sourceTable,
+			string dataSetTable,
+			MissingMappingAction mappingAction) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public int IndexOf(object) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public int IndexOf(string) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public int IndexOfDataSetTable(string dataSetTable) {
+			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 void RemoveAt(string index) {
+			throw new NotImplementedException ();
+		}
+		
+		[MonoTODO]
+		public int Count {
+			get { throw new NotImplementedException (); }
+		}
+
+		[MonoTODO]
+		public DataTableMapping this[int] {
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
+
+		[MonoTODO]
+		public DataTableMapping this[string] {
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
+	}
+}

+ 142 - 0
mcs/class/System.Data/System.Data.Common/DbDataAdapter.cs

@@ -0,0 +1,142 @@
+//
+// System.Data.Common.DbDataAdapter.cs
+//
+// Author:
+//   Rodrigo Moya ([email protected])
+//
+// (C) Ximian, Inc
+//
+
+namespace System.Data.Common
+{
+	/// <summary>
+	/// Aids implementation of the IDbDataAdapter interface. Inheritors of DbDataAdapter  implement a set of functions to provide strong typing, but inherit most of the functionality needed to fully implement a DataAdapter.
+	/// </summary>
+	public abstract class DbDataAdapter : DataAdapter, ICloneable
+	{
+		public const string DefaultSourceTableName;
+
+		[MonoTODO]
+		protected DbDataAdapter() {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override int Fill(DataSet) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public int Fill(DataTable) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public int Fill(DataSet, string) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		protected virtual int Fill(DataTable, IDataReader) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		protected virtual int Fill(DataTable, IDbCommand, CommandBehavior) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public int Fill(DataSet, int, int, string) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		protected virtual int Fill(DataSet, string, IDataReader, int, int) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		protected virtual int Fill(DataSet, int, int, string, IDbCommand, CommandBehavior) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override DataTable[] FillSchema(DataSet, SchemaType) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public DataTable FillSchema(DataTable, SchemaType) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public DataTable[] FillSchema(DataSet, SchemaType, string) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		protected virtual DataTable FillSchema(DataTable, SchemaType, IDbCommand, CommandBehavior) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		protected virtual DataTable[] FillSchema(DataSet, SchemaType, IDbCommand, string, CommandBehavior) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override IDataParameter[] GetFillParameters() {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public int Update(DataRow[]) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override int Update(DataSet) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public int Update(DataTable) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		protected virtual int Update(DataRow[], DataTableMapping) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public int Update(DataSet, string) {
+			throw new NotImplementedException ();
+		}
+
+		protected abstract RowUpdatedEventArgs CreateRowUpdatedEvent(
+			DataRow dataRow,
+			IDbCommand command,
+			StatementType statementType,
+			DataTableMapping tableMapping);
+
+		protected abstract RowUpdatingEventArgs CreateRowUpdatingEvent(
+			DataRow dataRow,
+			IDbCommand command,
+			StatementType statementType,
+			DataTableMapping tableMapping);
+
+		[MonoTODO]
+		protected virtual void OnFillError(FillErrorEventArgs value) {
+			throw new NotImplementedException ();
+		}
+
+		protected abstract void OnRowUpdated(RowUpdatedEventArgs value);
+
+		protected abstract void OnRowUpdating(RowUpdatingEventArgs value);
+		
+		public event FillErrorEventHandler FillError;
+	}
+}

+ 84 - 0
mcs/class/System.Data/System.Data.Common/DbDataPermission.cs

@@ -0,0 +1,84 @@
+//
+// System.Data.Common.DbDataAdapter.cs
+//
+// Author:
+//   Rodrigo Moya ([email protected])
+//
+// (C) Ximian, Inc
+//
+
+namespace System.Data.Common
+{
+	/// <summary>
+	/// Provides the capability for a .NET data provider to ensure that a user has a security level adequate for accessing data.
+	/// </summary>
+	public abstract class DBDataPermission : CodeAccessPermission,
+		IUnrestrictedPermission
+	{
+		[MonoTODO]
+		protected DBDataPermission() {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		protected DBDataPermission(PermissionState) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public DBDataPermission(PermissionState, bool) {
+			throw new NotImplementedException ();
+		}
+		
+		[MonoTODO]
+		protected DBDataPermission(PermissionState) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public DBDataPermission(PermissionState, bool) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override IPermission Copy() {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override void FromXml(SecurityElement securityElement) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override IPermission Intersect(IPermission target) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override bool IsSubsetOf(IPermission target) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public bool IsUnrestricted() {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override SecurityElement ToXml() {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override IPermission Union(IPermission target) {
+			throw new NotImplementedException ();
+		}
+		
+		[MonoTODO]
+		public bool AllowBlankPassword {
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
+	}
+}

+ 76 - 16
mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs

@@ -14,33 +14,93 @@ namespace System.Data.SqlClient
 	/// </summary>
 	public class SqlCommand : IDbCommand
 	{
-		void Cancel();
-		
-		SqlParameter CreateParameter();
-		
-		int ExecuteNonQuery();
+		[MonoTODO]
+		void Cancel()
+		{
+			throw new NotImplementedException ();
+		}
 
-		SqlDataReader ExecuteReader();
+		[MonoTODO]
+		SqlParameter CreateParameter()
+		{
+			throw new NotImplementedException ();
+		}
 
-		SqlDataReader ExecuteReader(CommandBehavior behavior);
+		[MonoTODO]
+		int ExecuteNonQuery()
+		{
+			throw new NotImplementedException ();
+		}
 
-		object ExecuteScalar();
+		[MonoTODO]
+		SqlDataReader ExecuteReader()
+		{
+			throw new NotImplementedException ();
+		}
 
-		void Prepare();
+		[MonoTODO]
+		SqlDataReader ExecuteReader(CommandBehavior behavior)
+		{
+		}
 
+		[MonoTODO]
+		object ExecuteScalar()
+		{
+			throw new NotImplementedException ();
+		}
 
-		string CommandText{get; set;}
+		[MonoTODO]
+		void Prepare()
+		{
+			throw new NotImplementedException ();
+		}
 
-		int CommandTimeout{get; set;}
+		[MonoTODO]
+		string CommandText
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		CommandType CommandType{get; set;}
+		[MonoTODO]
+		int CommandTimeout
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		SqlConnection Connection{get; set;}
+		[MonoTODO]
+		CommandType CommandType
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		SqlParameterCollection Parameters{get;}
+		[MonoTODO]
+		SqlConnection Connection
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		IDbTransaction Transaction{get; set;}
+		[MonoTODO]
+		SqlParameterCollection Parameters
+		{
+			get { throw new NotImplementedException (); }
+		}
 
-		UpdateRowSource UpdatedRowSource{get; set;}
+		[MonoTODO]
+		IDbTransaction Transaction
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
+		
+		[MonoTODO]
+		UpdateRowSource UpdatedRowSource
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 	}
 }

+ 23 - 4
mcs/class/System.Data/System.Data.SqlClient/SqlDataAdapter.cs

@@ -14,12 +14,31 @@ namespace System.Data.SqlClient
 	/// </summary>
 	public class SqlDataAdapter : IDbDataAdapter
 	{
-		SqlCommand DeleteCommand{get; set;}
+		[MonoTODO]
+		SqlCommand DeleteCommand
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		SqlCommand InsertCommand{get; set;}
+		[MonoTODO]
+		SqlCommand InsertCommand
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		SqlCommand SelectCommand{get; set;}
+		[MonoTODO]
+		SqlCommand SelectCommand
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		SqlCommand UpdateCommand{get; set;}
+		SqlCommand UpdateCommand
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 	}
 }

+ 37 - 9
mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs

@@ -14,19 +14,47 @@ namespace System.Data.SqlClient
 	/// </summary>
 	public interface SqlDataReader : IDataReader
 	{
-		void Close();
-		
-		DataTable GetSchemaTable();
-		
-		bool NextResult();
+		[MonoTODO]
+		void Close()
+		{
+			throw new NotImplementedException ();
+		}
 
-		bool Read();
+		[MonoTODO]
+		DataTable GetSchemaTable()
+		{
+			throw new NotImplementedException ();
+		}
 
-		int Depth{get;}
+		[MonoTODO]
+		bool NextResult()
+		{
+			throw new NotImplementedException ();
+		}
 
-		bool IsClosed{get;}
+		[MonoTODO]
+		bool Read()
+	        {
+			throw new NotImplementedException ();
+		}
 
-		int RecordsAffected{get;}
+		[MonoTODO]
+		int Depth
+		{
+			get { throw new NotImplementedException (); }
+		}
+
+		[MonoTODO]
+		bool IsClosed
+		{
+			get { throw new NotImplementedException (); }
+		}
+
+		[MonoTODO]
+		int RecordsAffected
+		{
+			get { throw new NotImplementedException (); }
+		}
 
 
 	}

+ 1 - 2
mcs/class/System.Data/System.Data.SqlClient/SqlError.cs

@@ -14,7 +14,6 @@ namespace System.Data.SqlClient
 	/// </summary>
 	public class SqlError
 	{
-		// TODO
-
+		[MonoTODO]
 	}
 }

+ 1 - 2
mcs/class/System.Data/System.Data.SqlClient/SqlErrors.cs

@@ -14,7 +14,6 @@ namespace System.Data.SqlClient
 	/// </summary>
 	public class SqlErrors : ICollection, IEnumerable
 	{
-		// TODO
-
+		[MonoTODO]
 	}
 }

+ 1 - 2
mcs/class/System.Data/System.Data.SqlClient/SqlException.cs

@@ -14,7 +14,6 @@ namespace System.Data.SqlClient
 	/// </summary>
 	public class SqlException : SystemException
 	{
-		// TODO
-
+		[MonoTODO]
 	}
 }

+ 59 - 11
mcs/class/System.Data/System.Data.SqlClient/SqlParameter.cs

@@ -14,26 +14,74 @@ namespace System.Data.SqlClient
 	/// </summary>
 	public class SqlParameter : IDbDataParameter, IDataParameter
 	{
-		
-		DbType DbType{get;set;}
+		[MonoTODO]
+		DbType DbType
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		ParameterDirection Direction{get;set;}
+		[MonoTODO]
+		ParameterDirection Direction
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		bool IsNullable{get;}
+		[MonoTODO]
+		bool IsNullable
+		{
+			get { throw new NotImplementedException (); }
+		}
 
-		string ParameterName{get;set;}
+		[MonoTODO]
+		string ParameterName
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		string SourceColumn{get;set;}
+		[MonoTODO]
+		string SourceColumn
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		DataRowVersion SourceVersion {get;set;}
+		[MonoTODO]
+		DataRowVersion SourceVersion
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		object Value {get;set;}
+		[MonoTODO]
+		object Value
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-		byte Precision{get; set;}
+		[MonoTODO]
+		byte Precision
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-                byte Scale{get; set;}
+		[MonoTODO]
+                byte Scale
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
-                int Size{get; set;}
+		[MonoTODO]
+                int Size
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 
 	}
 }

+ 23 - 6
mcs/class/System.Data/System.Data.SqlClient/SqlParameterCollection.cs

@@ -16,12 +16,29 @@ namespace System.Data.SqlClient
 	/// </summary>
 	public class SqlParameterCollection : IDataParameterCollection
 	{
-		void RemoveAt(string parameterName);
-		
-		int IndexOf(string parameterName);
-		
-		bool Contains(string parameterName);
+		[MonoTODO]
+		void RemoveAt(string parameterName)
+		{
+			throw new NotImplementedException ();
+		}
 
-		object this[string parameterName]{get; set;}
+		[MonoTODO]
+		int IndexOf(string parameterName)
+	        {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		bool Contains(string parameterName)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		object this[string parameterName]
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
 	}
 }

+ 3 - 15
mcs/class/System.Data/System.Data.SqlClient/SqlTransaction.cs

@@ -14,47 +14,35 @@ namespace System.Data.SqlClient
 	/// </summary>
 	public class SqlTransaction : IDbTransaction
 	{
-		#region fields
-		
 		protected SqlConnection connection = null;
 
-		#endregion
-		
-		#region constructors
-		
 		public SqlTransaction (SqlConnection cnc)
 		{
 			connection = cnc;
 		}
 
-		#endregion
-
-		#region methods
-		
+		[MonoTODO]
 		public void Commit ()
 		{
 			throw new NotImplementedException ();
 		}		
 
+		[MonoTODO]
 		void Rollback()
 		{
 			throw new NotImplementedException ();
 		}
 
-		#endregion
-		
-		# region properties
-		
 		public SqlConnection Connection
 		{
 			get { return connection; }
 		}
 
+		[MonoTODO]
 		public IsolationLevel IsolationLevel
 		{
 			get { throw new NotImplementedException (); }
 		}
 
-		#endregion
 	}
 }