Simple Parent-Child Relationships With NHibernate

My team has been eagerly introducing NHibernate into some of our newer applications. Recently we stumbled upon the cascade options that NHibernate presents within the context of simple parent-child relationships, and had to work through what those cascade options actually did. This post codifies those findings a bit using Fluent NHibernate as our interface.   [...]

 
Entity Framework 4 (not L2S!) – Starting Up

In this post I’ll go over what’s required to get started with Microsoft’s Entity Framework 4, which I actually confused with LinqToSql in an earlier post. I’ll follow the same pattern I followed when writing about how to get started with MyBatis.NET and NHibernate. At the end of the post, I’ll compare the different processes [...]

 
NHibernate vs. MyBatis.NET - Saving Entities, Part 1

Continuing with our series of comparisons between NHibernate and MyBatis.NET, we will be looking at how to actually persist our data. We will build on the code we have developed in both this series and the original MyBatis.NET one, which can be found here and here. The first part of this comparison will cover the [...]

 
NHibernate & Many-to-Many Relationships

Our next step in our exploration of some of the differences between NHibernate and MyBatis.NET takes us to map composition. In MyBatis.NET, this is a way to reuse defined maps in a DRY way; the post can be found here. As usual, we will be building on the code base we’ve build in this series; [...]

 
NHibernate vs. MyBatis.NET - Type Conversions & Type Handlers

Continuing in our series of comparisons between NHibernate and MyBatis.NET, we will reprise our take on simple type conversions and type handlers from an NHibernate perspective, comparing how said functionality stands up to what is offered in MyBatis.NET. The prior post that covered type conversions and type handlers in MyBatis.NET can be found here. As [...]

 
NHibernate vs. MyBatis.NET - Constructors & Joins

In this post we’ll be going over how to use NHibernate to hydrate your objects via constructors and how to hydrate child objects in an object graph, along the lines of the MyBatis.NET resultMapping attribute. We will build upon the same project that we started in the prior NHibernate post. We will be using the [...]

 
NHibernate & MyBatis.NET Comparison - Stored Procedures

This is the second post in a series where we explore NHibernate functionality from the perspective of a legacy database. In this post, we will look at how to call pre-existing stored procedures and bring back their return values. We will build on the project we started in the prior post, so refer there for [...]

 
NHibernate & MyBatis.NET Comparison - Starting Up

My team has been using MyBatis.NET for the better part of a year in a successful effort to free us from the shackles of the legacy databases that we have to continually interoperate with. That said, we have been wanting to evaluate NHibernate as an alternative, particularly when we start taking on more green-field type [...]

© 2011 Musings of the Bare Bones Coder Suffusion theme by Sayontan Sinha