TOO must to learn all at once. I think my head is about to explode.
The good news is I just got my generic connection class to work. Small steps.
>I see you answered it before I did anyway :-}
>
>>Thanks Viv.
>>
>>>>I have been working on Bonnie's data class blogs and have an interesting problem (at least for me). I created a class library for what I call my base data access classes. When I add the database connection screen code from Bonnie's blog cConnection = ConfigurationSettings.AppSettings["ConnectionString"]; I get a warning that the method is obsolete. I changed to the suggested method, cConnection = ConfigurationManager.AppSettings["ConnectionString"]; and get an error ConfigurationManager does not exists. If I put the same code in my web project all is well.
>>>
>>>Make sure the project has a reference to System.Configuration.dll (and a 'using System.Configuration;' in the code)
>>>
>>>>My assumption is the class library does not have the web.config file so it does not understand configuration. I do have the same using statements at both places. Is it not possible to create generic data classes this way?
>>>>
>>>>Thanks.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only