This is a subjective question.
Recently I have been trying to learn NHibernate. The problem with it is at least 2 fold:
- mapping xml file that needs to be coded by hand
- Entity Class that needs manual coding
While NHibernate is a wonderful framework, but the need to write mapping file and to create entity classes that mimic the database tables are pain in neck to write. There are a few tools that can alleviate this problem, such as Castle ActiveRecord or NHibernate Fluent.
But as much as those tools can reduce code repeatation problem, there are still some duplication code that you have to write, or some decorative attributes that you have to put on. I am now trying some code generation tool that allows me to generate the mapping files and the entity classes straight from the database. To me this is a more effort saving task.
What do you think?