Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4251380
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:39:14+00:00 2026-05-21T04:39:14+00:00

I stumbled across Castle Active Record a few weeks ago and thought that it

  • 0

I stumbled across Castle Active Record a few weeks ago and thought that it looked like an interesting solution to the laborious CRUD tasks associated with data driven applications. It seems pretty mature now and am considering using it for the data layer of an application I am developing, but I was wondering:

  1. How well it scales? (i.e. does the extra layer over NHibernate scale well)
  2. What are its biggest limitations that will cause frustration once you are too far into development to change direction easily?
  3. Is using straight NHibernate without the Active Record layer a better long term option?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T04:39:15+00:00Added an answer on May 21, 2026 at 4:39 am

    Personally, I think that Active Record pattern itself and the Castle’s baby definitely have some advantages, like:

    • simplified configuration
    • the AR pattern – ‘entity is independent’. Sometimes it just it’s the project more that anything else.
    • you can start developing and using AR really quickly in your project. Just define proper mappings, add some config and you can already do some basic stuff with entities. That part seems faster than pure nh for me.
    • SessionScope + TransactionScope classes that are in AR are there for you already. This is something you will have to write yourself for nh if you have to e.g. support transaction inheritance.
    • all Castle projects just works beautiful together. AR + Facilities + Windsor = very powerful stack.
    • there’s new version of AR (finally!) that works on top of NH 3.0.

    But there are also some disadvantages:

    • the myth of overhead. I feel it’s not something I can define, but it’s just that feeling that all this session management, wrappers etc. just have to cost something. But I think in reality it’s quite elusive.
    • if you need to do something custom you just HAVE to touch nhibernate guts. It seems to be pretty complicated with AR.
    • no 2nd cache support
    • AR mappings are not POCOs. Might be an issue when serializing through WCF or just sending between different layers. It’s not the case with NH.
    • AR is just not the best way to force OO approach for repositories/dao classes. But that’s nothing new because it’s pure consequence of AR pattern – your object knows how to save or delete himself. But it’s becoming a pain when your project grows a little bigger.

    So in the end, it’s a great framework to use with simple or medium complex projects. It’s good for asp.net/winforms, doesn’t matter. With pure NH, you will definitely have to code much more to make similiar application. But if you’ll do it, you will be much happier. Because you’ll be able to control everything.

    As always, it’s all up to your preference or project. For small, quick projects – AR is the way, for medium – I would say NH is THE way!

    p.s.
    oh, by the way, AR makes exactly the same queries, so it’s like using nh to talk to db. NH scales and so does castle. Just avoid ‘n+1’ problem and think about laziness and you should be good;P

    p.s.
    listen to Mauricio Scheffer, he really knows what he’ writing about.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a project using Castle Active Record. I stumbled across the
I stumbled across a question that I never thought about before. Here it is:
I stumbled across the ScalaCL project and its compiler plugin that has an awesome
I just stumbled across an assert that failed, as it compared false to the
I've stumbled across an issue that I'm not entirely sure how to resolve. I
I stumbled across this code and am too proud to go and ask the
I stumbled across my rather ancient photo objects disks, and sadly found out the
I recently stumbled across this entry in the google testing blog about guidelines for
I just stumbled across this bug in some legacy code: class MyAPIHandler { private:
I've stumbled across this great post about validating parameters in C#, and now I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.