Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error when Saving new Row
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01166508
Message ID:
01166516
Vues:
8
This message has been marked as the solution to the initial question of the thread.
Problem Fixed. My Problem, I forgot to add a primary key to my Table.

>I am getting an error when I am adding a new row, it's works fine when updating. Here is the error
>
>
>Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information.
>Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
>
>Exception Details: System.InvalidOperationException: Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information.
>
>Source Error:
>
>
>Line 33:     bool mpMasterPage_FormSave()
>Line 34:     {
>Line 35:         OakLeaf.MM.Main.Business.mmSaveDataResult oresult = (OakLeaf.MM.Main.Business.mmSaveDataResult)this.Save(this.ABO);
>Line 36:         if (oresult == OakLeaf.MM.Main.Business.mmSaveDataResult.RulesPassed)
>Line 37:         return true;
>
>
>
>this.ABO is Just my Business Object reference in my form. This is of type AbusinessObject.
>
>Can anyone please help me.
>
>TIA
Fred Besterwitch, MCP

The harder you work. The luckier you get.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform