2
0
Эх сурвалжийг харах

Small changes to get things to compile with MCS. It compiles now,
but there are too many missing classes that need to be stubbed out.

svn path=/trunk/mcs/; revision=4207

Miguel de Icaza 24 жил өмнө
parent
commit
54dd50fdc4

+ 12 - 0
mcs/class/System.Data/System.Data/DataSet.cs

@@ -50,6 +50,7 @@ namespace System.Data
 		public bool CaseSensitive {
 			[MonoTODO]
 			get {
+				throw new NotImplementedException ();
 			} 
 			
 			[MonoTODO]
@@ -60,6 +61,7 @@ namespace System.Data
 		public string DataSetName {
 			[MonoTODO]
 			get {
+				throw new NotImplementedException ();
 			} 
 			
 			[MonoTODO]
@@ -70,6 +72,7 @@ namespace System.Data
 		public DataViewManager DefaultViewManager {
 			[MonoTODO]
 			get {
+				throw new NotImplementedException ();
 			} 
 			
 			[MonoTODO]
@@ -80,6 +83,7 @@ namespace System.Data
 		public bool EnforceConstraints {
 			[MonoTODO]
 			get {
+				throw new NotImplementedException ();
 			} 
 			
 			[MonoTODO]
@@ -90,18 +94,21 @@ namespace System.Data
 		public PropertyCollection ExtendedProperties {
 			[MonoTODO]
 			get {
+				throw new NotImplementedException ();
 			}
 		}
 
 		public bool HasErrors {
 			[MonoTODO]
 			get {
+				throw new NotImplementedException ();
 			}
 		}
 
 		public CultureInfo Locale {
 			[MonoTODO]
 			get { 
+				throw new NotImplementedException ();
 			}
 			
 			[MonoTODO]
@@ -112,6 +119,7 @@ namespace System.Data
 		public string Namespace {
 			[MonoTODO]
 			get {
+				throw new NotImplementedException ();
 			} 
 			
 			[MonoTODO]
@@ -122,6 +130,7 @@ namespace System.Data
 		public string Prefix {
 			[MonoTODO]
 			get {
+				throw new NotImplementedException ();
 			} 
 			
 			[MonoTODO]
@@ -132,12 +141,14 @@ namespace System.Data
 		public DataRelationCollection Relations {
 			[MonoTODO]
 			get{
+				throw new NotImplementedException ();
 			}
 		}
 
 		public override ISite Site {
 			[MonoTODO]
 			get {
+				throw new NotImplementedException ();
 			} 
 			
 			[MonoTODO]
@@ -148,6 +159,7 @@ namespace System.Data
 		public DataTableCollection Tables {
 			[MonoTODO]
 			get {
+				throw new NotImplementedException ();
 			}
 		}
 

+ 28 - 10
mcs/class/System.Data/System.Data/DataView.cs

@@ -35,6 +35,7 @@ namespace System.Data
 		public bool AllowDelete {
 			[MonoTODO]
 			get {
+				throw new NotImplementedException ();
 			}
 			
 			[MonoTODO]
@@ -45,6 +46,7 @@ namespace System.Data
 		public bool AllowEdit {
 			[MonoTODO]
 			get {
+				throw new NotImplementedException ();
 			}
 			
 			[MonoTODO]
@@ -55,6 +57,7 @@ namespace System.Data
 		public bool AllowNew {
 			[MonoTODO]
 			get {
+				throw new NotImplementedException ();
 			}
 			
 			[MonoTODO]
@@ -65,6 +68,7 @@ namespace System.Data
 		public bool ApplyDefaultSort {
 			[MonoTODO]
 			get {
+				throw new NotImplementedException ();
 			}
 			
 			[MonoTODO]
@@ -75,12 +79,14 @@ namespace System.Data
 		public int Count {
 			[MonoTODO]
 			get {
+				throw new NotImplementedException ();
 			}
 		}
 
 		public DataViewManager DataViewManager {
 			[MonoTODO]
 			get {
+				throw new NotImplementedException ();
 			}
 		}
 
@@ -88,51 +94,57 @@ namespace System.Data
 		public DataRowView this[int recordIndex] {
 			[MonoTODO]
 			get {
+				throw new NotImplementedException ();
 			}
 		}
 
 		public virtual string RowFilter {
 			[MonoTODO]
 			get {
+				throw new NotImplementedException ();
 			}
 			
 			[MonoTODO]
 			set {
-			}
+			}
 		}
 
 		public DataViewRowState RowStateFilter {
 			[MonoTODO]
 			get {
+				throw new NotImplementedException ();
 			}
 			
 			[MonoTODO]
 			set {
-			}
+			}
 		}
 
 		public string Sort {
 			[MonoTODO]
 			get {
+				throw new NotImplementedException ();
 			}
 			
 			[MonoTODO]
 			set {
-			}
+			}
 		}
 
 		public DataTable Table {
 			[MonoTODO]
 			get {
+				throw new NotImplementedException ();
 			}
 			
 			[MonoTODO]
 			set {
-			}
+			}
 		}
 
 		[MonoTODO]
 		public virtual DataRowView AddNew() {
+			throw new NotImplementedException ();
 		}
 
 		[MonoTODO]
@@ -153,23 +165,28 @@ namespace System.Data
 
 		[MonoTODO]
 		public int Find(object key) {
+			throw new NotImplementedException ();
 		}
 
 		[MonoTODO]
 		public int Find(object[] key) {
+			throw new NotImplementedException ();
 		}
 
 		[MonoTODO]
 		public DataRowView[] FindRows(object key) {
+			throw new NotImplementedException ();
 		}
 
 		[MonoTODO]
-		public DataRowView[] FindRows(object[] key) {
-		}
-
-		[MonoTODO]
-		public IEnumerator GetEnumerator() {
-		}
+		public DataRowView[] FindRows(object[] key) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public IEnumerator GetEnumerator() {
+			throw new NotImplementedException ();
+		}
 		
 		[MonoTODO]
 		public event ListChangedEventHandler ListChanged;
@@ -177,6 +194,7 @@ namespace System.Data
 		protected bool IsOpen {
 			[MonoTODO]
 			get {
+			throw new NotImplementedException ();
 			}
 		}
 

+ 9 - 0
mcs/class/System.Data/System.Data/DataViewSettingCollection.cs

@@ -0,0 +1,9 @@
+
+using System;
+using System.Collections;
+
+namespace System.Data {
+
+	public class DataViewSettingCollection : ICollection, IEnumerable {
+	}
+}

+ 1 - 0
mcs/class/System.Data/TODO

@@ -53,6 +53,7 @@ Other classes, structs, etc. that are missing:
 
 Exceptions that still need to be stubbed:
 	(need to see what exceptions need to be done)
+	DuplicateNameException
 	ConstraintException
 	DataException
 	DBConcurrencyException

+ 77 - 0
mcs/class/System.Data/list

@@ -0,0 +1,77 @@
+System.Data\AcceptRejectRule.cs
+System.Data\CommandBehavior.cs
+System.Data\CommandType.cs
+System.Data\ConnectionState.cs
+System.Data\Constraint.cs
+System.Data\ConstraintCollection.cs
+System.Data\DataColumn.cs
+System.Data\DataColumnChangeEventArgs.cs
+System.Data\DataColumnChangeEventHandler.cs
+System.Data\DataColumnCollection.cs
+System.Data\DataRelation.cs
+System.Data\DataRelationCollection.cs
+System.Data\DataRow.cs
+System.Data\DataRowAction.cs
+System.Data\DataRowChangeEventArgs.cs
+System.Data\DataRowChangeEventHandler.cs
+System.Data\DataRowCollection.cs
+System.Data\DataRowState.cs
+System.Data\DataRowView.cs
+System.Data\DataRowVersion.cs
+System.Data\DataSet.cs
+System.Data\DataTable.cs
+System.Data\DataTableCollection.cs
+System.Data\DataView.cs
+System.Data\DataViewSettingCollection.cs
+System.Data\DataViewManager.cs
+System.Data\DataViewRowState.cs
+System.Data\DbType.cs
+System.Data\FillErrorEventHandler.cs
+System.Data\FillErrorEventArgs.cs
+System.Data\ForeignKeyConstraint.cs
+System.Data\IColumnMapping.cs
+System.Data\IColumnMappingCollection.cs
+System.Data\IDataAdapter.cs
+System.Data\IDataParameter.cs
+System.Data\IDataParameterCollection.cs
+System.Data\IDataReader.cs
+System.Data\IDataRecord.cs
+System.Data\IDbCommand.cs
+System.Data\IDbConnection.cs
+System.Data\IDbDataAdapter.cs
+System.Data\IDbDataParameter.cs
+System.Data\IDbTransaction.cs
+System.Data\InternalDataCollectionBase.cs
+System.Data\IsolationLevel.cs
+System.Data\ITableMapping.cs
+System.Data\ITableMappingCollection.cs
+System.Data\MappingType.cs
+System.Data\MergeFailedEventHandler.cs
+System.Data\MergeFailedEventArgs.cs
+System.Data\MissingMappingAction.cs
+System.Data\MissingSchemaAction.cs
+System.Data\ParameterDirection.cs
+System.Data\PropertyAttributes.cs
+System.Data\PropertyCollection.cs
+System.Data\Rule.cs
+System.Data\SchemaType.cs
+System.Data\SqlDbType.cs
+System.Data\StateChangeEventArgs.cs
+System.Data\StateChangeEventHandler.cs
+System.Data\StatementType.cs
+System.Data\TODOAttribute.cs
+System.Data\UniqueConstraint.cs
+System.Data\UpdateRowSource.cs
+System.Data\UpdateStatus.cs
+System.Data\XmlReadMode.cs
+System.Data\XmlWriteMode.cs
+System.Data.SqlClient\PostgresLibrary.cs
+System.Data.SqlClient\SqlCommand.cs
+System.Data.SqlClient\SqlConnection.cs
+System.Data.SqlClient\SqlDataReader.cs
+System.Data.SqlClient\SqlError.cs
+System.Data.SqlClient\SqlErrorCollection.cs
+System.Data.SqlClient\SqlException.cs
+System.Data.SqlClient\SqlParameter.cs
+System.Data.SqlClient\SqlParameterCollection.cs
+System.Data.SqlClient\SqlTransaction.cs