Connectionstring while Accessing Store Procedure

Posts   
 
    
Rishi
User
Posts: 69
Joined: 31-Oct-2011
# Posted on: 16-Dec-2011 21:39:58   

Hi,

I am using llbngen Pro 3.1, SQL Server 2008 & Oracle 9i

I am Accessing Store Procedure using my own implementation as i have different number of parameters in sql and oracle store procedure. When i used LLBLGen Pro to create code for accessing store procedure, it embedded connection string in code, do you know if i want to use connection string from web.config how i can use that?

here is the code:

private static StoredProcedureCall CreateEmpGeneralPkgGetEmpGeneralListCall(IDataAccessCore dataAccessProvider, System.Decimal pDomainId, System.String pSearch, System.Decimal pCount) { object pCursor = null; object pCursor2 = null; return new StoredProcedureCall(dataAccessProvider, "\"GRB_ASSIST_RBS4\".\"EMP_GENERAL_PKG.GET_EMP_GENERAL_LIST\"", "EmpGeneralPkgGetEmpGeneralList") .AddParameter("P_DOMAIN_ID", "Decimal", 0, ParameterDirection.Input, true, 38, 38, pDomainId) .AddParameter("P_SEARCH", "Varchar2", 4000, ParameterDirection.Input, true, 0, 0, pSearch) .AddParameter("P_COUNT", "Decimal", 0, ParameterDirection.Input, true, 38, 38, pCount) .AddParameter("P_CURSOR", "RefCursor", 0, ParameterDirection.Output, true, 0, 0, pCursor) .AddParameter("P_CURSOR2", "RefCursor", 0, ParameterDirection.Output, true, 0, 0, pCursor2); }

I wanted to use tablenamespace from web.config file

any idea?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 17-Dec-2011 02:01:41   

SPs are generated with default Schema/Catalog information. However you can perform Schema name overwriting in the config file.

David Elizondo | LLBLGen Support Team