Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with Sample app
Message
From
12/02/2009 11:46:23
Guy Pardoe
Pardoe Development Corporation
Peterborough, New Hampshire, United States
 
 
To
12/02/2009 09:20:36
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01363490
Message ID:
01381295
Views:
64
>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


Thanks Tim,

I got the form running and have one more little bit of perspective on the framework.

:)
Previous
Reply
Map
View

Click here to load this message in the networking platform