Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get the name of the databaseSets
Message
De
17/03/2009 08:02:11
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01388393
Message ID:
01388623
Vues:
42
Hi Mat,

I don't have time to look this morning but you might look in the sample app provided as it is set up to use the example like shown below. I bet if you open that solution you would find your answer.
Tim

>In the developer's guide, there is a section called "Specifying Database Sets in the Config File" and it includes the example below:
>
>databaseSets
> add key="CustA" value="Customer A (SQL Server)"
> add key="CustB" value="Customer B (Visual FoxPro)"
>databaseSets
>
>databases
> add key="CustA\Northwind\Connection" value="server=(local);uid=sa;pwd=;database=NorthWind;"
> add key="CustA\Northwind\DataAccessClass" value="DataAccessSql"
> add key="CustB\Northwind\Connection" value="Provider=vfpoledb.1;Data Source=C:\Mere Mortals .NET Framework\Samples\Mere Mortals Framework Northwind Sample Application\VFPData\Northwind.dbc"
> add key="CustB\Northwind\DataAccessClass" value="DataAccessOleDb"
>databases
>
>There is a method called GetDatabaseNames() that returns the information in the (databases) section, but I can not find a method to retrieve the information in the (databaseSets) section. Is there a way to get the value "Customer A (SQL Server" for CustA or the value "Customer B (Visual FoxPro)" for CustB? Thanks in advance for any ideas.
>
>Kind Regards,
>
>Mat
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform