Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need translation and direction, please
Message
De
08/05/2013 21:32:54
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
ASP.NET
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01573068
Message ID:
01573115
Vues:
45
>>Hello all
>>
>>I'm trying to trace a C# .net web application that interfaces with a SQL backend, specifically a data entry screen
>>
>>Save button validates the data entry, sets the params and then calls
>>Administration.InsertHRA(hrade);
>>
>>which I can find in the Administration.cs file - that code is
>>
>> public void InsertHRA(HRADE HRADE)
>>    {
>>        InsertHRARequest inValue = new InsertHRARequest();
>>        inValue.HRADE = HRADE;
>>        InsertHRAResponse retVal = ((IAdministration)(this)).InsertHRA(inValue);
>>    }
>>    
>>    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
>>    GetHRADataResponse IAdministration.GetHRAData(GetHRADataRequest request)
>>    {
>>        return base.Channel.GetHRAData(request);
>>    }
>>
>>
>>please note the call to IAdministration....
>>
>>found iAdministration.cs file and it has
>>
>>
>>[System.ServiceModel.OperationContractAttribute(Action = "InsertHRA")]
>>void InsertHRA(DataContracts.HRADE HRADE);
>>
>>
>>and that's it. Somewhere in here is a call to a stored proc hm_InsertHRAData.
>>
>>Where should I be looking to find what's behind door #2 (the iadministration call)?
>>
>>Thanks
>
>I suggest to try to search the whole solution (Ctrl + Shift + F) for "InsertHRA" method. There should be the actual code for this procedure and the (IAdministration) just means you're casting to this interface. The actual implementation should be in another file (either in that same file or in the base class).
>
>Also, you may try running SQL Server profiler to see what is send to SQL Server when this call is initiated.

Been there, did that - I'm trying to trace the flow of this process and this right here is a big holes. Somewhere, somehow it gets to the SQL statement and I'm trying to find that.
I have searched TFS 'til I'm about ready to puke and I've found the file where a call to the Stored Proc is made, but I don't know if it's the one actually being called from the form
It's not my code - it's not my portal - it's not the droid I'm looking for.
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform