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
11/02/2011 19:01:03
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01497991
Message ID:
01499838
Vues:
28
>>
>>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
>
>
>Interesting - I didn't know that Tim, thanks.
>
>I was going to remind Frank to recompile his business objects after running the code generator again. I forget to do that all the time and then wonder why my app doesn't reflect the changes.
>
>Eric

Everyday we all learn something. Isn't it grand?

If your dependencies are setup as your application rely on your business object then the business object library would get automatically re-compiled when you rebuild the application. I typically don't re-run the business layer generator after the first time unless I am adding all new business objects. If I add a column to a table, I just go add it then add the property to the entity, and add the parameter row in the DataAccess class. The one I usually forget is to add the parameters and field to the stored procedures also. But then I do not use the partial classes for my code because I really hate keeping track of the business object code in two places. Since I don't re-run the BLG it doesn't cause me any problems.
Tim
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform