Category Archives: Development

Dotnet development

AutoMapper – converting objects

Image courtesy of Mike Enerio / unsplash.com https://www.nuget.org/packages/AutoMapper/ Mapping two objects using convention and coded/configurerd mappings. This comes in handy when moving through the layers of a solution (data > business > viewmodel) Every property with the same name is automatically mapper … Continue reading

Posted in Development, Tooling | Tagged , , , | 1 Comment

Unity – IoC container

Image courtesy of Tim Gouw / unsplash.com https://www.nuget.org/packages/Unity/ Dependency Inversion is one of the SOLID principles. An IoC container is a must for me when developing. Unity is my goto framework for the last year. I prefer Unity for it’s lifetime control options. Do … Continue reading

Posted in Development, Tooling | Tagged , , , | Leave a comment

EF query optimisation

We have a view that is very slow when you don’t use a filter on the name field. Everywhere in our stored procedures and (sub)queries we have this applied. In our web applicatie we use Entity Framework. The business layer … Continue reading

Posted in Development | Tagged , , , | Leave a comment

Speed up ASP.NET MVC debugging

Whenever I was debugging my ASP.NET MVC application the wait times for every page is about 8 seconds. This was not happening after deployment to a webserver (thank god!) Today I discovered that disabling the browserlink will speed things up … Continue reading

Posted in Development | Tagged , , , | Leave a comment

Linq to entities and CAST

We use an EDMX to access our database with Entity Framework. Before you comment: we have our reasons not to use code-first. Today we encountered a small problem with linq to entities and validating a varchar field that contains an integer … Continue reading

Posted in Development | Tagged , , , , | Leave a comment