Force lower case on stored procedure param

Posts   
 
    
ianvink
User
Posts: 393
Joined: 15-Dec-2006
# Posted on: 14-Jan-2013 19:30:03   

We use LLBL 3.5 to gen Entity Framework 4 projects off stored procedure. We can not edit these SPs.

It generates code like this, with all cap params:

public ObjectResult<HistoryTypedViewRow> GetHistoryTypedView(Nullable<System.Guid> aPP_USER_GUID){  ... }

Can we get the generator to automatically gen lowercase params in these calls?

Like this:

public ObjectResult<HistoryTypedViewRow> GetHistoryTypedView(Nullable<System.Guid> app_user_guid){  ... }

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 15-Jan-2013 06:47:29   

Hi Ian,

This is not configurable through project settings. However you can change the parameter names: go to your SP call on the model explorer, expand the Parameters node select one and right-click then 'rename' (or hit F2). If you want to automate this, you can write your custom plug-in for it (read the SDK docs).

David Elizondo | LLBLGen Support Team
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39590
Joined: 17-Aug-2003
# Posted on: 15-Jan-2013 10:14:33   

Did you have set the proper field name settings for names in your project? As in: make them pascal cased etc. ? I Have to check, but if I do recall correctly, proc parameters are also converted with these settings.

Frans Bouma | Lead developer LLBLGen Pro