>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.
If it's not broken, fix it until it is.
My Blog