Hi, It is because ADO.NET inheritance model has changed in .net 2.0 and we haven't finished those classes.
Atsushi Eno Justin Dearing wrote: > I have a series of classes that abstract data access in .NET. The > OleDb class does not work because classes in System.Data.OleDb do not > seem to inherit the equivilant members in System.Data.Common. Is there > a reason for this? Is there a know workaround. > The source code in question is for http://plane-disaster.sf.net. I > would like to port the app to mono. Although the JetSQL (Microsoft > Access) support will only work in WIndows barring a total rewrite, and > the SQLite support does not require OleDb, I would like to understand > why OleDbFOO classes do not inherit there equivilant DbFOO classes. > > Build started. > C:\src\PlaneDisaster.NET\OleDba.cs(68,9) : Error CS0029: Cannot > implicitly convert type `System.Data.OleDb.OleDbConnection' to > `System.Data.Common.DbConnection' > C:\src\PlaneDisaster.NET\OleDba.cs(137,11) : Error CS0030: Cannot > convert type `PlaneDisaster.OleDba.Cn' to > `System.Data.OleDb.OleDbConnection' > C:\src\PlaneDisaster.NET\OleDba.cs(155,11) : Error CS0030: Cannot > convert type `PlaneDisaster.OleDba.Cn' to > `System.Data.OleDb.OleDbConnection' > C:\src\PlaneDisaster.NET\OleDba.cs(197,11) : Error CS0030: Cannot > convert type `PlaneDisaster.OleDba.Cn' to > `System.Data.OleDb.OleDbConnection' > C:\src\PlaneDisaster.NET\OleDba.cs(217,11) : Error CS0030: Cannot > convert type `PlaneDisaster.OleDba.Cn' to > `System.Data.OleDb.OleDbConnection' > C:\src\PlaneDisaster.NET\OleDba.cs(49,5) : Error CS0029: Cannot > implicitly convert type `PlaneDisaster.OleDba._Cn' to > `System.Data.Common.DbConnection' > C:\src\PlaneDisaster.NET\OleDba.cs(52,10) : Error CS0029: Cannot > implicitly convert type `System.Data.Common.DbConnection' to > `System.Data.OleDb.OleDbConnection' > C:\Program > Files\SharpDevelop\3.0\bin\SharpDevelop.Build.Mono.Gmcs.targets(82,9) > : Error failed: 7 error(s), 0 warnings > Build finished successfully. > _______________________________________________ > Mono-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list > > _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
