Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Custom Templates> LPT. SPCallDefinition parameters order
 

Pages: 1
Custom Templates
LPT. SPCallDefinition parameters order
Page:1/1 

  Print all messages in this thread  
Poster Message
raist
User



Location:
Madrid, Spain
Joined on:
19-Apr-2010 23:57:10
Posted:
114 posts
# Posted on: 23-May-2012 11:28:28.  
How can I get the parameters in a SPCallDefinition in the same order than the called SP?
I can only get them in alphabetical order
Code:
SPCallDefinition currentSpCall;
var a = currentSpCall.Fields; // No luck
var b = currentSpCall.GetAllFieldsInElement(false); // No luck
var c = currentSpCall.GetAllMappableFields(); // No luck
SPCallMapping currentCallMapping = currentProject.GetGroupableModelElementMapping(currentSpCall, _executingGenerator.DriverID) as SPCallMapping;
var d = currentCallMapping.FieldMappings; // No luck
var originalSpParametersRightOrder = from DBStoredProcedureParameter f in currentCallMapping.MappedTarget.Fields
                    select f.ParameterName;


TIA
  Top
raist
User



Location:
Madrid, Spain
Joined on:
19-Apr-2010 23:57:10
Posted:
114 posts
# Posted on: 23-May-2012 11:42:31.  
Solved in the last try Embarrassed

Code:
var inputParameters = from FieldMapping f in currentCallMapping.FieldMappings
                    orderby f.MappedTarget.OrdinalPosition
                    select f;


  Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.