Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How does MM.NET get the parameters to pass to Update SP?
Message
De
31/01/2011 15:55:48
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
31/01/2011 12:27:20
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01497991
Message ID:
01498042
Vues:
50
>Hi,
>
>using MM.NET 3.6 I am getting this error when I try to save an edit to an existing record:
>
>System.Data.SqlClient.SqlException was unhandled by user code
> Message="Procedure or function 'PolicyHeadersUpdate' expects parameter '@ClaimChequeFK', which was not supplied."
>
>The ClaimChequeFK was a new field I added into the PolicyHeaders table. I re-ran the Business Layer Generator after adding that field in. What have I forgotten to do? Where or how does MM.NET work out what parameters to send to the Update stored procedure?
>
>Please ignore this. I did something else for an hour and then re-ran it and it works fine!

Just so you know where to look Frank.
Expand in your business object folder for the DataAccess object and expand the plus sign next to it also. There is a file DataAccess.Designer.Cs file there. In that file if you expand the region for Component Designer Generated code. The stored procedures and the parameters can be adjusted there when needed.
Tim
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform