Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need translation and direction, please
Message
 
 
À
08/05/2013 16:03:28
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:
01573071
Vues:
52
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform