Posts tagged nhibernate

Feb01

.NET Gem Fun

.net ~ ruby ~ nhibernate | comments

RubyGems is great for sharing Ruby code libraries.

Just for fun, I thought I'd play with the idea of using rubygems for packaging up .NET libraries. After a few hours of messing about, I finally have this.

Continue reading »

Aug17

Automating .NET development (and NHibernate) with IronRuby + Rake

.net ~ ruby ~ rake ~ nhibernate | comments

Just the other day, I thought I'd try the latest IronRuby to see if I could start using this and Rake in my .NET projects. Low and behold, it's working great :)

Continue reading »

Aug10

Get a Rails-Stylee Interactive Shell For Your NHibernate Backed Domain Model

nhibernate ~ .net ~ rubyonrails | comments

If you've ever used Ruby on Rails you'll be aware of the goodness that is script/console. The console lets you interact with your domain model from a terminal - no need for dedicated GUI screens or tools.

Continue reading »

Aug01

In Memory SQLite Testing with NHibernate

nhibernate ~ .net | comments

In a current solution we're testing our NHibernate app against an SQLite (in-memory) databases. The database is created from scratch before each test runs. This guarantees that each individual test gets it's own fresh copy of the DB.

Continue reading »

Jul21

NHibernate Trick

nhibernate ~ .net | comments

I recently remembered this old NHibernate query trick:

var found = UoW.Session.CreateQuery("from Object o").List();
Continue reading »

Jun11

NHibernate: Calling Update Unnecessarily

nhibernate ~ .net | comments

I often see code that looks a bit like this:

public ActionResult UpdatePost(int id, FormCollection form)
Continue reading »

Apr30

.NET Config for Multiple Developers

.net ~ nhibernate | comments

Here's a simple solution I just thought up for when you have multiple developers working on a project, and you want each to have their own connection string in Web.config (under source control).

Continue reading »

Apr09

NHibernate in Action 2nd Edition - Your Opinion

nhibernate ~ .net | comments

NHibernate in Action went on sale only three months ago, and the book team has turned it's attention to a 2nd edition. The first step is for us to plan what the new version of the book will entail. So -- dear readers -- I'd like to get your opinion on this. What would you like to see in the 2nd edition?

Continue reading »

Mar17

Shorthand Repository Accessors

nhibernate ~ .net ~ ddd | comments

Today I was helping a friend with an NHibernate app, and noticed an opportunity to shorten some Repository code.

Continue reading »

Feb24

NHibernate for Ruby?

nhibernate ~ ruby | comments

I was looking to see if there's anything like NHibernate in the Ruby world. With Ruby on Rails, ActiveRecord is the king of persistence. I thought it would be interesting to poke around at other Ruby ORMS to see what I could find.

Continue reading »

Feb08

Sparklines for your favourite SVN repos

nhibernate ~ sparklines | comments

Here's some live sparklines of NHibernate related projects activity over 7 days. They're updated hourly.

Continue reading »

Feb08

A little love for nhforge.org

nhibernate | comments

I've just started updating NHForge, which is the new home for the NHibernate community. It was something I've wanted to look at for a while, although the book has been eating much spare time.

Continue reading »

Feb05

NHibernate in Action has arrived :)

nhibernate | comments

And it looks b.e.a.u.t.i.f.u.l :)

Continue reading »

Jan23

Release It! OpsDb Implementation with Fluent NHibernate Auto-Mappings

nhibernate | comments

Last night I read all about operations databases in the Release It! book. I wish I'd read it 5 years ago. An OpsDb should allow you to monitor, analyze and forecast system stability.

Continue reading »

Dec01

Short n' Sweet NHibernate Sample

nhibernate ~ .net | comments

People often have the perception that NHibernate is some honking great behemoth of a library that should only used in massive enterprise apps.

Continue reading »

Nov13

NHibernate in Action - Impressive chapter on caching

nhibernate ~ caching | comments

I'm currently editing Chapter 5 for NHibernate in Action (we hope to be in print in a 2-4 weeks, so this is the last time!).

Continue reading »

Oct25

.NET code sharing: How can we fix it?

nhibernate ~ .net ~ ruby | comments

Leveraging code written by other developers is a big big deal.

You can ship more features in less time.

Continue reading »

Oct20

Almost IQueryable with NHibernate HQL

nhibernate ~ .net ~ linq | comments

I just blogged that I'm interested in using IQueryable for my repositories, so I can do this kind of thing:

Continue reading »

Oct20

Returning IQueryable rather than List

nhibernate ~ .net ~ linq | comments

Usually when I write repositories, I end up with code like this:

IList<Order> orders = repos.FindOrdersByStatus(OrderStatus.Packed);
Continue reading »

Oct03

NHibernate Deep Grok - 1 month later

nhibernate ~ .net ~ linq | comments

NHibernate Deep Grok launched just under a month ago. Today, there are 200 NHiberntae specific resources covered, and google has found 21,700 documents in the index.

Continue reading »

Sep09

Tidy LINQ, ASP.NET MVC, MonoRail, NHibernate, Windsor, Rhino Mocks, Unit Testing example project

nhibernate ~ .net ~ linq | comments

Tonights little browse around Google Code Search has found a cool looking project: Jobvertizer (that's to browse code, project home page is here).

Continue reading »

Sep09

728 IRepository Interfaces

nhibernate ~ ddd | comments

This google code search is fun! It shows 728 results for c# IRepository interfaces used in OS projects.

Continue reading »

Sep08

NHibernate Deep Grok

nhibernate | comments

As any subscribers to NHForge will know, I recently announced a new NHibernate resource - NHibernate Deep Grok.

Continue reading »

Aug29

DDD and Huge Collections. Eeugh!

nhibernate ~ ddd | comments

Udi Dahan wrote an interesting post about how to create fully encapsulated domain models. The post, example code, and comments are all really interesting.

Continue reading »

Aug22

DDD Repositories in the Wild: Colin Jack

nhibernate ~ ddd | comments

I recently chatted about DDD Repositories and services with Jimmy Bogard and Colin Jack.

Continue reading »

Aug19

Fluent NHibernate Series on NHibernate FAQ

nhibernate ~ .net | comments

It's good to see posts about Fluent NHibernate popping up. The NHibernate FAQ blog is running a good series of articles showing various mapping techniques and usage scenarios....

Continue reading »

Aug18

Fluent NHibernate, Fluent Configuration

nhibernate ~ .net | comments

Chad Myers points out a fluent way of configuring NHibernate on his blog. Nice!

Continue reading »

Aug17

LINQ for NHibernate Examples

nhibernate ~ linq | comments

I've recently been wanting to learn more about LINQ for NHibernate.

Continue reading »

Aug09

Fluent NHibernate and those sweet LINQ repositories

nhibernate ~ .net | comments

Fluent NHibernate is a tool that lets you easily write NHibernate mappings.

Continue reading »

Aug08

Zero-effort mapping for NHibernate?

nhibernate ~ .net | comments

If you're working with NHibernate, you may realize you have several options for defining your mappings.

Continue reading »