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

Maurizio Colucci seguso.forever@tin.it
Tue, 24 Jun 2003 19:59:12 +0200


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. :-)

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