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

Read this thread but didn't really answer my question and there were quite a
Edit: There is a somewhat strange solution to this question. Check my answer posted
EDIT: There is the almost same question at Removing whitespace between HTML elements when
EDIT: Is there a better way of doing this ? TPendingBets = class(TDataModule) private
Edit I think there is some confusion, I am not using both of the
What is the best way to NOT display a page directly in php? Edit
I'm using the code found in this jsbin: http://jsbin.com/asahe5/10/edit There is a function within
Edit: There appears to be at least two valid reasons why Smalltalkers do this
Edit: There was some confusion, but I want to ask a general question about
Why set it to null first ? [EDIT] there was this code about reading

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.