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

  • SEARCH
  • Home
  • 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 540655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:15:46+00:00 2026-05-13T10:15:46+00:00

I used to work with a custom data mapping library, and curently I’m trying

  • 0

I used to work with a custom data mapping library, and curently I’m trying to switch to a more widespread ORM solution.

After some experimentation, I refined my requirements to the following:

  • able to generate usable classes from database schema (SQL Server support is enough),
  • support for ActiveRecord pattern,
  • programmaticaly configurable (via code or attributes, no HBM files),
  • free.

Could you please recommend one?


So far I have tried:

Subsonic 3.0

The one I currently like most, as it feels like a good balance between functionality and simplicity.

What I don’t like:

  • uses IQueryable<> and plural names for both ends of one-to-many relationship – that seems rather counter-intuitive to me;
  • generates one file for all classes – like a thousand lines per class, I have a bad feeling about code files being that large;
  • T4 processing is invoked automatically, so a database with up-to-date schema must be available all the time.

Castle ActiveRecord

CastleAR with ActiveWriter add-in is almost what I need, but ActiveWriter’s code isn’t perfect (it seems, Nullable<> properties are not supported, and default one-to-many implementation doesn’t work) and I couldn’t find how to fix this code manually.

Darkside GeneratorStudio produces better code – correct definitions, one file per entity – though it uses cryptic names like RefclassIdRefclass. Personally I like Studio addin more than standalone app, but this certainly is a minor issue.

There’re about twenty files bundled in the CastleAR distribution; though not a problem by itself, it feels like overweight. Won’t I need too much esoteric knowledge about NHibernate and other stuff?

Fluent NHibernate

Widely recommended, but I wasn’t able to find a code generator for it.

Have I missed something important?

  • 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-13T10:15:46+00:00Added an answer on May 13, 2026 at 10:15 am

    A few thoughts on the things you don’t like about SubSonic:

    • uses IQueryable<> and plural names for both ends of one-to-many relationship – that seems
      rather counter-intuitive to me;

    True, I agree this is very counter intuitive and I’ve never got to the bottom of why it is that way, but you can pretty easily modify the templates to fix this.

    • generates one file for all classes – like a thousand lines per class, I have a bad feeling about code files being that large;

    You’d think this might cause problems but I’ve yet to come across any and I’ve yet to see one reported on stackoverflow.

    • T4 processing is invoked automatically, so a database with up-to-date schema must be available all the time.

    It’s only invoked automatically if you edit the t4 files so really you only need an up-to-date schema available when you’re making changes to the templates.

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

Sidebar

Ask A Question

Stats

  • Questions 262k
  • Answers 262k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer We are working on a similar project. What we are… May 13, 2026 at 11:51 am
  • Editorial Team
    Editorial Team added an answer You want to perform fast enumeration on the keys in… May 13, 2026 at 11:51 am
  • Editorial Team
    Editorial Team added an answer Use the name attribute selector: $("input[name=nameGoesHere]").val(); May 13, 2026 at 11:51 am

Related Questions

i made a state machine and would like it to take advantage of generics
I have a very big problem and can't seem to find anybody else on
I have a situation where I need to work with a datagrid and adding
We are implementing an emulator for a piece of hardware that is being developed
My organization is getting ready to implement a new system, which is a asp.net

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.