Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TemplateField Label Binding/Display
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01174631
Message ID:
01175940
Vues:
7
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform