[Mono-bugs] [Bug 33285][Nor] Changed - DataAdapter implementations

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
6 Nov 2002 10:29:22 -0000


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by carlosga@telefonica.net.

http://bugzilla.ximian.com/show_bug.cgi?id=33285

--- shadow/33285	Tue Nov  5 19:14:12 2002
+++ shadow/33285.tmp.17058	Wed Nov  6 05:29:22 2002
@@ -1,12 +1,12 @@
 Bug#: 33285
 Product: Mono/MCS
 Version: unspecified
 OS: unknown
 OS Details: 
-Status: NEEDINFO   
+Status: REOPENED   
 Resolution: 
 Severity: Unknown
 Priority: Normal
 Component: Misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: carlosga@telefonica.net               
@@ -55,6 +55,60 @@
 Note: I test it with CVS sources and not with the Alpha 2 sources.
 
 ------- Additional Comments From miguel@ximian.com  2002-11-05 19:14 -------
 I need a sample test case, this is a way you can help.  
 
 I realize it takes time, but it will take a lot more of my time.
+
+------- Additional Comments From carlosga@telefonica.net  2002-11-06 05:29 -------
+Test case:
+
+using System;
+using System.Data;
+using System.Data.Common;
+
+namespace TestCase
+{
+	public interface IDataAdapter
+	{
+		ITableMappingCollection TableMappings {get;}
+	}
+
+	public interface IDbDataAdapter : IDataAdapter
+	{		
+	}
+
+	public class DataAdapter : IDataAdapter
+	{
+		private DataTableMappingCollection tableMappings = new
+DataTableMappingCollection();
+
+		ITableMappingCollection IDataAdapter.TableMappings 
+		{
+			get{return tableMappings;}
+		}
+
+		public DataTableMappingCollection TableMappings 
+		{
+			get{return tableMappings;}
+		}
+
+	}	
+
+	public class DbDataAdapter : DataAdapter
+	{
+	}
+
+	public class XDataAdapter : DbDataAdapter, IDbDataAdapter
+	{
+		/*
+		 *  This compiles well with csc
+		 * 	Compiled with mcs gives this error
+		 *  Class1.cs(36) error CS0536: 
+		 *  `TestCase.XDataAdapter' does not implement interface member
+`TestCase.IDataAdapter.get_TableMappings'
+		 *  Compilation failed: 1 error(s), 0 warnings
+		 */
+
+	}
+}
+