Groups | Blog | Home
all groups > dotnet ado.net > august 2006 >

dotnet ado.net : Enterprise Library June 2006



rockdale.green NO[at]SPAM gmail.com
8/28/2006 9:50:27 AM
hi, I just downloaded Microsoft Enterprise Library June 2006 and try to
integrate it into my asp.net application. As i am going to connect to
mySQL database, I need to include the source code in my project so that
I can debug better. But I all those examples I found are reference the
compiled dll only.

What are the steps to include the source code of Microsoft Enterprise
Library into my project?

I created a new dir and copy Microsoft Enterprise Library source code
under my new dir.

But when I put

using Microsoft.Practices.EnterpriseLibrary.Data;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;

in my class. I got error
The type or namespace name "Practices" does not exist in the namespace
"Microsoft"( are you missing an assembly reference?)

Also, I just noticed that there is no namespace in your class in
VS2005?

As I need to connect to MySQL and MSSQL, I put
<connectionStrings>
<add name="MSSQL"
providerName="System.Data.SqlClient"
connectionString= "myCOnnectionString" />

<add name="MySql"
providerName="System.Data.SqlClient"
connectionString="myConnectionString" />
</connectionStrings>
<dataConfiguration
defaultDatabase="MSSQL"/>

into my web.config file, but I got error - could not find schema
information for the attribute "defaultDatabase"
Does DAAB has its own config file, if it has, where and what's the name
of the config file. Do I need to put this configuration into config
file that DAAB


Please bear with me since I just upgrade to VS2005 from VS2003

Thanks a lot
-rockdale
rockdale.green NO[at]SPAM gmail.com
8/28/2006 9:54:09 AM
Oops, I am sorry. It is Enterprise Library for .NET Framework 2.0 -
January 2006

[quoted text, click to view]
AddThis Social Bookmark Button