Entity Framework – lazy loading properties

In the Entity Framework we can easily enable lazy loading of navigation properties by marking them as virtual. This however applies only to properties that reference other related entity type. The framework does not support lazy loading of scalar or primitive properties. But there is a trick to fill this lack quite easily.

By Mirek on (tags: Entity Framework, lazy loading, shared primary key associations, table splitting, categories: architecture, code)

Mocking application settings

Last time I showed a simple way of using application settings in our wpf application. This time I would like to present you my way of testing Properties.Settings, or rather mocking it in our application tests.

By Mirek on (tags: mocking, settings, testing, categories: code)

Keep your temp folder clean

Temporary folders in your system are used to store temporary files obviously. Unfortunately those temporary files, very often, stays there for ever and makes your hard drive wasted.

By Mirek on (tags: Process, Task, Temp, categories: code)

Ridiculously simple http server

There are times when you need to have a small, easy to set up http server. Most of the time, you’ll think – node and yes, if you have it – a great choice. But there’s another option…

By on (tags: python, categories: tools)

Create unit test option is back

Few months ago I wrote here about the workaround for bringing back “Create unit test” option in Visual Studio 2012. Finally guys from Microsoft added this option to the Visual studio 2012 and 2013.

By Mirek on (tags: Unit test, categories: tools)

One collection – many views

Let’s imagine we have a huge collection of some objects (may be our data objects) and we need to filter this collection and display only a part of its elements in different places in our WPF application. Instead of creating many different instances of sub collection we can use the benefits of collection views.

By Mirek on (tags: CollectionView, WPF, categories: code)

REMs

REMs – the new hotness in css.

By on (tags: css, categories: tools, web)