Browse by Tags

All Tags » NHibernate (RSS)

So I Created Another Utils Library by stefan.sedich

Thought it was time I start my own Utils library (why not everyone else seems to have one), I have things like a UnitOfWork implementation, base Repository class, and plan to add more things as I go. This is still a work in progress and I would appreciate...

In Memory SQLite + Unit Test + FluentNHibernate by stefan.sedich

UPDATE: I have forked fluent NH here: http://github.com/stefansedich/fluent-nhibernate, and added a change so we can just use: .Database(SQLiteConfiguration.Standard.InMemory().ShowSql()) By default the InMemory() helper will now add the pooling support...

Lazy Loaded One-To-One With NHibernate by stefan.sedich

UPDATE 20081114 The one-to-one solution I had posted turned out not to work for updates, :(, in the end I had to use a many-to-one map with a unique foreign key association to get this to work, the updated example is below. Sorry for my EPIC FAIL :)....
Filed under: , ,

Enhanced Validation Control Which Provides Adding Multiple Validation Rules + NHibernate.Validator Support by stefan.sedich

Hello, I am toying with something at the moment which I thought I would briefly share and see if there is any interest, my current sample is very raw and I will not post any code. But the idea is that you would do something like this for validation: First...

Paging with NHibernate using a custom Extension method to make it 'easier' :)... by stefan.sedich

Update 20081022: I have updated the articles code to reflect the bug fixes kindly suggested by Paco :). I have now used this in my project and have had no issues with it yet. The fixes included clearing order by's on the count query and also returning...
Filed under: , , , ,

Set the value of a version column in NHibernate manually by stefan.sedich

My first post in a long time :), look forward to more from me. I am currently working on a project and for the first time am using NHibernate, I must say compared to LINQ to Sql I am in love, NHibernate ROCKS! An issue I was having was that I have a version...
Filed under: , , ,
More Posts