Procházet zdrojové kódy

* DataSet.cs: added 2.0 stubs to solve typed dataset porting issues

svn path=/trunk/mcs/; revision=65047
Vladimir Krasnov před 19 roky
rodič
revize
1dbd0b375b

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

@@ -1,3 +1,7 @@
+2006-09-07  Vladimir Krasnov <[email protected]>
+
+	* DataSet.cs: added 2.0 stubs to solve typed dataset porting issues
+
 2006-08-30  Nagappan A  <[email protected]>
 
 	* DataRow.cs (EndEdit): DataRow.EndEdit emits RowChanged too

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

@@ -98,6 +98,13 @@ namespace System.Data {
 			GetSerializationData (info, context);
 		}
 
+#if NET_2_0
+		[MonoTODO]
+		protected DataSet (SerializationInfo info, StreamingContext context, bool constructSchema)
+			: this (info, context)
+		{
+		}
+#endif
 		#endregion // Constructors
 
 		#region Public Properties
@@ -1283,6 +1290,26 @@ namespace System.Data {
 		protected internal void RaisePropertyChanging (string name)
 		{
 		}
+
+#if NET_2_0
+		[MonoTODO]
+		protected SchemaSerializationMode DetermineSchemaSerializationMode (XmlReader reader)
+		{
+			return SchemaSerializationMode.IncludeSchema;
+		}
+
+		[MonoTODO]
+		protected SchemaSerializationMode DetermineSchemaSerializationMode (SerializationInfo info, StreamingContext context)
+		{
+			return SchemaSerializationMode.IncludeSchema;
+		}
+
+		[MonoTODO]
+		protected bool IsBinarySerialized (SerializationInfo info, StreamingContext context)
+		{
+			return false;
+		}
+#endif
 		#endregion
 
 		#region Private Methods