Tag Archives: Code

Toastr

Toastr is one of those GUI items everybody is familiar with. It is the standard in feedback on webpages. Adding this to your solution is almost mandatory. Continue reading

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

Common.Logging

Image courtesy of Ales Krivec / unsplash.com https://www.nuget.org/packages/Common.Logging/ Common.logging provides an abstraction for the logging framework of choice. For IoC the common.logging offers an interface. NoOpLogger is a fake implementation used for unit testing. I prefer to use the nuget from log4net with … Continue reading

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

AutoMapper

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 , , , | Leave a comment

Unity

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

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

Ignore integration tests when provider is missing

As an integration test I’ve written some unit tests for my MsAccess Data Access Layer. The provider I’m using is OleDb. It will be installed on every desktop machine, but not on our build server. The build fails because of … Continue reading

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