|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Enterprise libraryI'm using the DLL “Enterprise Library†version 2.0 for access data in my system that I am developing in C# 2.0 and SQL 2005. Although to follow the scratch an example that I caught in “hand-on labs†when step for the code below appears an error in line 02: entlib.Database db = null; db = entlib.DatabaseFactory.CreateDatabase("Clientes"); int i = (int)db.ExecuteScalar(CommandType.Text, "SELECT COUNT(*) FROM Clientes"); MessageBox.Show(i.ToString()); The error is:"The requested database Clientes is not defined in configuration." My project is inside of a solution with other projects. I find that it is not finding the App.config archive that is where I configured the information of the data base. I have that to adjust the way for this archive in some place? -- Brandão, Emmanuel G. |
|||||||||||||||||||||||