Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A database key must be specified Error
Message
De
10/08/2006 09:26:59
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01144376
Message ID:
01144496
Vues:
11
Hello, Fred

In addition to what Darren said you can set this.DatabaseKey in the constructor of your ABusinessObject (in Business.cs) and all your objects will inherit the value by default (you can override where needed for those objects that use a different database)

Hope that helps,
---J

>Hi Guys,
>I keep on getting this error
>" A database key must be specified "
>
>this is the code
>
>this.GetDataSet("SELECT * FROM Country WHERE ID = @CountryID",this.CreateParameter("@CountryID", CountryID));
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform