Browsed by
Year: 2010

ConfORM – Another NHibernate mapping possibility

ConfORM – Another NHibernate mapping possibility

I recently hold two presentations at the .Net User Group Bern (DNUG) with René Leupold about object relational mapping in the .Net world. We showed Entity Framework 4.0 and NHibernate. My part was NHibernate. You could download the slides and samples from the DNUG website. In the two presentations I showed the mapping possibilities with hbm.xml files, attributes and Fluent NHibernate. In a previous blog post I already showed those possibilities. During the preparations I hadn’t time to try a…

Read More Read More

Subversion daemon Init script

Subversion daemon Init script

Unfortunately I didn’t find a simple good daemon Init script for a debian Linux server where I want to start the subversion server svnserve automatically on start-up. So after a little bit searching on the internet and adapting the found resources (here or here), I got my Init script svnserve under /etc/init.d: #!/bin/sh # # start/stop subversion daemon. EXECUTABLE=/usr/bin/svnserve # Test exist:ence of the executable test -f $EXECUTABLE || exit 0 # Command line options for starting the service OPTIONS=’-d…

Read More Read More

Round-up of a data centric architecture

Round-up of a data centric architecture

In my last big project we had to use a data centric architecture. There was a learning curve which architecture was the most appropriate one. The result is visible in the picture bellow: Lets explaining the diagram. The data (or state) is managed by the database layer and the common layer which contains the .Net class DataSet and the DataTables (logic representation of the physical table in the database). This architecture makes use of the patterns Table Module for domain…

Read More Read More

Branching practices

Branching practices

In an environment where several developers work at the same code base or several features have to be implemented, then branching will be a topic. I was asked to create a branching guide for my current employer which use TFS as source code repository. Motivation In our projects I found the following problems: When the developers want to release a new version, not every feature was finished. So they had to deliver unfinished features. To solve that problem, they need…

Read More Read More

Mocking frameworks in .Net

Mocking frameworks in .Net

A few month ago I played with some mocking frameworks in .Net. There are already some comparisons available (here, here or here). In this blog post I want to show which frameworks are available and which one fits best for agile development. You could download the source code from github.com. Software under Test (SUT) To demonstrate and evaluate all the different mocking framework I had to create a scenario where it is appropriate to use a mocking framework. So I…

Read More Read More