[Mono-list] Databind to SQLServer
John BouAntoun
jbouantoun@rogen.com.au
Fri, 16 May 2003 14:40:23 +1000
You need to reference the assemnlies that those Namespaces are in.
simply including a :
using [Namespace]
Statement at the top of a c# file is not enough. The compiler needs to =
know what binary (i.e. what Assmebly) that Namespace is in.
Both System.Data and System.Data.SqlClient are in the System.Data.Dll =
assembly.
When compiling your project you need to pass in all the assemblies you =
want the compiler to reference for your files (i.e. all the assemblies =
that your 'using' statements need.
I'm not quite sure off the top of my head the syntax for assembly =
references in mcs is, but do a mcs /? or man mcs and it will explain
JBA
-----Original Message-----
From: Jones, Larry [mailto:LJones@Lithonia.com]
Sent: Friday, 16 May 2003 2:27 PM
To: John BouAntoun
Subject: RE: [Mono-list] Databind to SQLServer
I have these:
using System;
using System.Data;
using System.Data.SqlClient;
just as in the sample.
Larry Jones
Hydrel/Lithonia Lighting
-----Original Message-----
From: John BouAntoun [mailto:jbouantoun@rogen.com.au]
Sent: Thursday, May 15, 2003 9:29 PM
To: Jones, Larry
Subject: RE: [Mono-list] Databind to SQLServer
are you referencing the System.Data Assembly?
-----Original Message-----
From: Jones, Larry [mailto:LJones@Lithonia.com]
Sent: Friday, 16 May 2003 2:20 PM
To: 'mono-list@lists.ximian.com'
Subject: [Mono-list] Databind to SQLServer
OK, I tried the sample program for Sql Server in the doc, which is just
straight C#, not ASP.NET, and the compile fails on:
The namespace 'System.Data' can not be found=20
and
The namespace 'System.Data.SqlClient' can not be found
Help guys.
Larry Jones
Hydrel/Lithonia Lighting
_______________________________________________
Mono-list maillist - Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list