c# - Linq to Objects performance and best implementation -


I work on a web application that modifies an XML document that is stored in the database. In the "Preferences" option is clicked on to copy the same as any program. The XML document is read by a local client application and any change appears in the local client.

There are 3 levels in my web app. I guess you will say "see" ASPX page with a service layer where I validate / process all user input, and at a data level where I am using XML I update the document.

For each page setting, I was crossing all the controls on the page over and if I was the one that I wanted to work on (checkbox, textbox, ...) Added to ILID and then sent to the ILIlist at the level of service where I had to pull the list out of control so that I could work on it.

I noticed that it seemed a bit slow so I profiled the page and originally used the LINQ objects queries I used to spend a ton of time.

  (checkbox) lstControls.Where (x => x.id == "some_id"). SingleOther Default ();  

I then switched to manually add page control to an ILISID and then put them in the order of order in the order that the order is placed in the service layer. But you do not shrink the indicator of control that you are looking at.

Finally, it breaks the mix of mix elements of the scene with the service level or the data layer, I know that I should only work with the data, but how do I do it effectively I am here.

Each setting page has one to thirty controls that need to be processed. How do I get all the data from the control to the service level without sending actual control?

Thanks for the help ....

if you collect data , Then you actually take an interest, meet a few words in the structure of a few words, which will help to preserve the structure you have passed, the keyword "databounding" at the next level also help you achieve those values. Those who were registered. There is no need to revert any control to the next layer.


Comments