Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I found ActiveRecord to be a good piece of kit, and very suitable for the small/medium projects I've used it for. Like Rails, it makes many important decisions for you, which has the effect of keeping you focused you on the meat of the problem. </p> <p>In my opinion pro's and cons are:</p> <p><strong>Pros</strong></p> <ul> <li>Lets you focus on problem in hand, because many decisions are made for you.</li> <li>Includes mature, very usable infrastructure classes (Repository, Validations etc)</li> <li>Writing AR attributes are faster than writing XML or NHibernate.Mapping.Attributes IMHO.</li> <li>Good documentation and community support</li> <li>It's fairly easy to use other NHibernate features with it.</li> <li>A safe start. You have a get-out clause. You can slowly back into a bespoke NHibernate solution if you hit walls with AR. </li> <li>Great for domain-first development (generating the db).</li> <li>You might also want to look up the benefits and drawbacks of the <a href="http://martinfowler.com/eaaCatalog/activeRecord.html" rel="noreferrer">ActiveRecord pattern</a></li> </ul> <p><strong>Cons</strong></p> <ul> <li>You can't pretend NHibernate isn't there - you still need to learn it.</li> <li>Might not be so productive if you already have a legacy database to work with.</li> <li>Not transparent persistence.</li> <li>In-built mappings are comprehensive, but for <em>some</em> projects you might need to revert to NHibernate mappings in places. I haven't had this problem, but just a thought. </li> </ul> <p>In general, I really like ActiveRecord and it's always been a time saver, mainly because I seem to happily <em>accept</em> the decisions and tools baked into the library, and subsequently spend more time focusing on the problem in hand. </p> <p>I'd give it a try on a few projects and see what you think.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload