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 215865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:30:39+00:00 2026-05-11T18:30:39+00:00

EDIT: There’s now a doc page on this so this question is irrelevant, also

  • 0

EDIT: There’s now a doc page on this so this question is irrelevant, also it’s outdated. Read the docs not this question.

I’ve been toying with the SubSonic 3 code generation for a month or so now and I’m interested in getting some feedback from others on which template they use and why.

EDIT: Rob’s been blogging about the different templates so I’ve added links to the posts

ActiveRecord – More details from Rob’s blog

Pros

  • Supports a popular and well understood pattern
  • Allows easy migration from version 2.2
  • Built-in testing for ActiveRecord (See Rob’s answer below)
  • Implements the Repository pattern

Cons

  • Considered heavyweight in the objects it generates

Simple – More details from Rob’s blog

Pros

  • Generates POCOS
  • Implements the Repository pattern

Cons

  • Generates a massive single file for all classes that can make browsing the generated source a pain

Advanced

Pros

  • Generated file structure is much neater than simple
  • Generates POCOS
  • Implements the Repository pattern

Cons

  • ?
  • 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-11T18:30:39+00:00Added an answer on May 11, 2026 at 6:30 pm

    Everything uses the Repo – it’s at the core of all the templates and is now in SubSonic’s core code. I can’t help you in choosing, necessarily, but what I can say is that ActiveRecord will allow you the most options.

    One thing I haven’t shared with people (that I will soon) is the built-in testing for ActiveRecord. In your test project, just use “Test” as your connection string and the AR template will not hit your DB. Moreover you can use the static “Setup” method to pump test records into the in-memory list.

    Adds/Updates/Deletes all work agains the in-memory stuff.

    In terms of “Heavy” – I like to think “Easy” trumps. And it doesn’t get any easier than ActiveRecord.

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

Sidebar

Related Questions

Edit: There is a somewhat strange solution to this question. Check my answer posted
Why set it to null first ? [EDIT] there was this code about reading
EDIT: This method actually works great and I asked it then found the solution
There's http://www.amazon.com/gp/product/0321278542/ but it looks a bit dated. Specificaly, it talks about bits that
I am developing a java based eclipse plugin that monitors file activity. I need
Possible Duplicate: Why should I upgrade to c# 4.0? Our projects are currently all
I have a 2D array of doubles in my Default class on my Default.aspx.cs
I have an application that does a lot of drawing, let's pretend it's a
As explained in the MSDN , it is possible to generate new public/private keys
I'm trying to do some testing and it requires the Windows system to be

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.