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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:03:01+00:00 2026-05-13T20:03:01+00:00

I am building a new project with Castle ActiveRecord and have a little technical

  • 0

I am building a new project with Castle ActiveRecord and have a little technical question.

I build my projects workspace and added 5 projects.

  • ViewModel for interfaces and application logic
  • Model for the basic model classes
  • Test for unit testing
  • Client for my WPF client
  • data for my datasource

Then i added some references to Castle.ActiveRecord in Model, ViewModel and data project. I think i should not have so many referrences to ActiveRecord in my project. In general in the data project but the model class has its decorators to get the AR to work. When there is no reference to AR in the ModelView it gets errors when i define my interfaces to the dao that there is no reference to AR in my ModelView.

Its mainly a design question not a functional thing. Is does create some dependencies that i would not have when i later decide to use another datasource.

Is it ok to add references to AR everywhere or how can i solve this on another way?

Thanks Boris

  • 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-13T20:03:01+00:00Added an answer on May 13, 2026 at 8:03 pm

    ActiveRecord is supposed to be more invasive than NHibernate since it doesn’t use pure POCOs. If you really want to avoid those references use NHibernate instead.

    Anyway, IMHO you have way too many projects there. And application logic in the ViewModel project doesn’t sound right. See this article for some rationale to keep the amount of projects down.

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

Sidebar

Related Questions

I have been tasked with building a new web project from scratch, with the
We have a new project, building a fully featured facebook App on an embedded
I am getting ready to start building a new web project in my spare
I'm going to start a new project that's building web apps from scratch. I
I have a dedicated server and I'm in need for building new version of
We have a legacy application in Win32, we are building new modules using WPF.
I'm building a new project and I'm having some debate over how it needs
I'm building a new project off the service repository pattern detailed here . It
I'm building a new Xcode project in Xcode 4.2 and I would like to
I'm building some business objects for a new project and I'm wondering whether it

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.