LPT. SPCallDefinition parameters order

Posts   
 
    
raist
User
Posts: 114
Joined: 19-Apr-2010
# 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

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

raist
User
Posts: 114
Joined: 19-Apr-2010
# Posted on: 23-May-2012 11:42:31   

Solved in the last try flushed

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