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

  • Home
  • SEARCH
  • 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 5957255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:22:29+00:00 2026-05-22T18:22:29+00:00

Ok, so im starting a new project and decided to use a ORM tool

  • 0

Ok, so im starting a new project and decided to use a ORM tool (as im so bored with writing it manually)
So im starting new with Castle AR,

So in my domain object ive the following

[ActiveRecord]
    public class Account : ActiveRecordBase<Account>
    {
        private string companyName;
        private Guid accountId;

        [PrimaryKey(Access = PropertyAccess.FieldCamelcase)]
        public Guid AccountId
        {

            get { return accountId; }

        }

        [Property(Access = PropertyAccess.FieldCamelcase)]
        public string  CompanyName
        {
            get { return companyName; }
          //   set { companyName= value; }
        }
    }

And this works and pulls out my records.
But if I uncomment the set I get the following
enter image description here

Obviosuly im going to need the set soon
(normally I would also remove this on CompanyName "Access=PropertyAccess.FieldCamelCase")

Any ideas what im doing wrong?

  • 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-22T18:22:29+00:00Added an answer on May 22, 2026 at 6:22 pm

    You’re setting AccountId in place of accountId which creates an infinite loop. Use the fix below:

    set { accountId = value; }
    

    You’re also doing the same mistake with CompanyName also so fix that too.

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

Sidebar

Related Questions

Starting a new project and would like to use one of the MVC framworks.
When starting a new project that required the use of membership providers I found
I am starting a new project using WCF so that I can use jQuery
We're starting a new project and are trying to decide to use either Windows
I'm starting a new project here (Windows Forms). What's the best option today for
I'm starting a new project which involves developing an interface for a machine that
I'm starting a new web project and I am considering two presentation frameworks. I
We are starting a new SOA project with a lot of shared .net assemblies.
I'm starting a new personal project on the side, so this is the first
I'm starting a new C# project that uses a database, but I want 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.