[Gtk-sharp-list] Newby GDA# question

Rodrigo Moya rodrigo@novell.com
Thu, 24 Jun 2004 12:22:12 +0200

On Wed, 2004-06-23 at 23:59 +0200, Wolfgang Mauer wrote:
> Hi all,
> i want to start writing a C# prog.
> I need databindings to some mysql databases/tables.
> I have looked at ADO.NET and GDA. Witch is better to use?
I personally prefer GDA, but well, I am biased, since I wrote it :-) The
reason I like it more (apart from it being my "baby") is that ADO.NET is
not really a generic interface, you end up using specific classes
(SqlClient* for SQL Server, OracleClient* for Oracle, etc, etc). There
is a generic interface we wrote for Mono that allows you to use a more
generic interface than the one available in ADO.NET.

ADO.NET has some stuff that GDA does not have though, like the
disconnected interfaces, the XML serialization support. So if you need
those, you'll probably have to use ADO.NET, if not, use GDA!! :-)

> I think ADO.NET is good but how i use some like GnomeDb.List Widget?
it's not possible right now, since GNOME-DB widgets use GDA data models.
But we could easily write some custom methods for the GNOME-DB# classes
so that you can convert a System.Data's Dataset into a GDA's data model.
This is not a hard task to do, and it would allow you to use the GNOME-
DB widgets with ADO.NET.