Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TemplateField Label Binding/Display
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01174631
Message ID:
01175940
Views:
6
Ted,

>Unfortunately when I do a save as below I get an error:
>// Save the DataSet (the GridView automatically binds back)
>this.Save(this.oSurveyDue, dsSurveyDue);
>
>InvalidOperationException was unhandled by user code.
>Dynamic SQL generation is not supported against multiple base tables.

When using dynamic SQL, you can get the save operation to work properly by setting the business object's UpdateSelecteStatement property. When you set this property the DAL uses it to generate insert, update, and delete statements rather than using the original SELECT statement.

In your business object's constructor, just set the UpdateSelectStatement property to something like this:
this.UpdateSelectStatement = "SELECT * FROM Survey";
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform