Peter Morlion logo

A repository with Sterling for a desktop WPF application

Well, I’ve switched databases again. After briefly trying NHibernate, then switching to RavenDB, then looking at Karvonite, I think I’ve found what I was looking for in Sterling. I was looking for an easy way to persist objects. NHibernate is nice, but compared to object-oriented databases, it’s a lot of work (database schema’s, mapping files, […]

Karvonite as alternative to RavenDB in a desktop application

Right now, I’m using RavenDB, but it seems to be a little overkill. It’s a great piece of software, very powerful, but a little too powerful for what I need. It handles all sorts of fancy stuff like sharding, replication, versioning, etc. I have the impression it’s made for applications that have fairly hefty requirements, […]

Running RavenDb embedded

I seem to have some trouble finding how to run RavenDb in embedded mode. This isn’t the same as my post on running RavenDb embedded for .NET 3.5. This time, I’ve already updated to .NET 4, so I should be able to use the RavenDb embedded assemblies. I’m using build 193 by the way. The […]

Multiline textbox (textarea) and maxLength

In ASP.NET, you can create a textarea by adding a multiline textbox to your markup: <asp:textbox id=”textboxDescription” runat=”server” textmode=”MultiLine” /> Intuitively, we started adding the MaxLength property to this, in order to let the content of the textarea match the length of our database column: <asp:textbox id=”textboxDescription” runat=”server” textmode=”MultiLine” maxlength=”2000″ /> If you’re reading this, […]

Data storage for a stand-alone client application

I’m developing a stand-alone client application that will be able to store a fair amount of data. No client-server stuff, just plain old open-the-application-change-the-data-save-close. I need a good way to store the data and, traditionally, developers look at SQL databases for data storage. But I’m thinking this will make it overly complex. A search for […]

Great F# tutorial

Looking for **a good F# tutorial **to figure out what the hype is all about? Check out the excellent F# series on Kevin Hazzard’s blog. Maybe a little out-dated when you’re using the September 2008 CTP of F# (there’s no add-in anymore, and the command mentioned in part 2 has a different name – just […]

WPF Databinding to Controls with ValueConverter

I’m a fan of the MVP design pattern, so databinding isn’t something I would use very often, but I have found a use for it in WPF. It is very easy to databind one Control to the other. This gives us some interesting possibilities. For a standard example, check out this screencast. What I want […]

Contact management class library

Is there a good and complete class library for contact management around? I’ve looked around on the internet but can’t seem to find one. One of the first ‘real’ programs I had to write during my education was a .NET application to manage contacts, an addressbook. Add, edit and remove people, with addresses, phone numbers, […]

.NET source code available

Well, not all of it, but Microsoft has made it possible to enter the .NET Framework code when debugging. Although configuring Visual Studio to do this is a little more work than what you need to do with, say, Java and Eclipse (which is: none), I believe it is still quite a useful feature. It […]