Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with Sample app
Message
De
02/03/2009 09:00:37
León Carpay
Carpay Automatisering
Pays-Bas
 
 
À
12/02/2009 09:20:36
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:
01363490
Message ID:
01384925
Vues:
68
thanks Tim, this gives confidence in MM and it's community (=Mr Tim B.). I was away for 3 months earning a buck. I am catching up again..

see you, leon

>>Thank-you sir!
>
>Alan, Leon, and Guy
>
>I have tracked down what is causing the problem but not why. I notified Kevin so he can look at it, but for now if you want to run the Customer Orders form with SQL you can just add this: In the business object project there is a OrderDataAccess class under the Order folder. In this class there is an override for CreateDataAdapter. Before returning the DataAdapter just add a check for null and create a SqlDataAdapter like this.
>
>
>/// <summary>
>/// Factory method that instantiates the data adapter
>/// </summary>
>/// <returns>Data Adapter</returns>
>public override System.Data.IDataAdapter CreateDataAdapter()
>{
>     if (this.DataAdapter == null)
>          this.DataAdapter = new SqlDataAdapter();
>
>     return this.DataAdapter; ;
>}
>
>
>This isn't the fix for this permanently and would cause a problem trying to run with Fox data but will get the form running with SQL data for now.
>Tim
gr leon
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform