[Mono-list] ASP.NET + database: why reflection?

Gonzalo Paniagua Javier gonzalo@ximian.com
24 Jun 2003 22:17:29 +0200


El mar, 24-06-2003 a las 19:59, Maurizio Colucci escribió:
> On Tuesday 24 June 2003 18:46, Maurizio Colucci wrote:
> > >
> > > It's there to allow changing the database using the configuration files.
> > > If you know in advance that you're gonna use mysql or postgres or
> > > whatever it is much simpler than that. I bet your teacher wants you to
> > > find out how.
> >
> 
> > I _did_ try to do without reflection...
> >
> > <%@ language="C#" %>
> > <%@ import namespace="System.Data" %>
> > <%@ import namespace="ByteFX.Data.MySQLClient" %>
> >
> 
> <%@ Assembly name = "ByteFX.Data" %>
> 
> Shit, I lost one entire day on this. :-)

Isn't it nice when you find it for yourself? Now you'll never forget it
;-).

> 
> I REALLY feel xsp/test shoudl contain a more trivial example of data
> access with ASP.NET. :-)

Well, the aim was that people can test it with the database of their
choice and that turned out to be the easiest way.

-Gonzalo