Archivi del mese: settembre 2016

Pass json POST data to Web API method and enumerate it

This is a very tricky problem. I had to create a REST service that receives any json class and elaborates its properties and values without knowing anything about the object received. Here the body posted And here the REST service’s … Continua a leggere

Pubblicato in .Net, c#, REST | Contrassegnato , , | Lascia un commento

Store Dictionary object in config file

I found lots of solutions to solve this problem but I didn’t like many of them. In this link I found THE solution: To avoid to lose it in the future I’ve reported it as well: How to use … Continua a leggere

Pubblicato in c# | Lascia un commento

POST Ajax and redirect file response to the browser

Yesterday a collegue of mine had a problem: How post an ajax form and redirect the file result to the browser. If you post a form to an handler that response with a file the result will be downloaded by … Continua a leggere

Pubblicato in .Net, Asp.Net, c#, MVC | Contrassegnato , , | Lascia un commento

Optimize Entity Framework performance

This wouldn’t be a complete article on how to improve EF performance but only a little reminder. Every time you have performance problem on updating or adding entity these properties will help you. You can find a lot of articles … Continua a leggere

Pubblicato in .Net, Entity Framework | Lascia un commento