Ayende said:

"I now tend to more and more use NHibernate only.
I used to use AR for speccing and prototyping, I use Fluent NHibernate for 
the same purpose.
In both cases, there is some cut off point where I cut out the middle man 
and go to the XML.
Trying to setup complex stuff in either AR or FN is just ugly."

source: 
http://ayende.com/Blog/archive/2009/04/22/using-active-record-to-write-less-code.aspx

Maybe the man in right, although for small app AR and FN will work..

----- Original Message ----- 
From: "Tigraine" <[email protected]>
To: "Castle Project Users" <[email protected]>
Sent: Wednesday, May 27, 2009 4:39 PM
Subject: Re: Is AR just for prototyping



Hi,

I just completed a little rundown on both AR and NH so it might be of
interest.
It's by no means a comprehensive guide and until now I have
only used naked NH with XML, so the post is mostly about my latest
experiments:

http://www.tigraine.at/2009/05/27/comparing-castle-activerecord-to-fluent-nhibernate/

There is hardly any "wisdom" in there. But if you want to see AR
mappings compared to Fluent NH mappings.. there you go :)

greetings,
Daniel


On May 27, 3:23 am, Jason Meckley <[email protected]> wrote:
> I won't say one is right or wrong. I learned NH using the xml mappings
> as a challange for myself. What I really like about FNH is that it's
> R# (resharper) friendly if I decide to change a property.
>
> On May 26, 6:55 pm, "Cesar Sanz" <[email protected]> wrote:
>
>
>
> > Ok, I got it,
>
> > So you say, stay in the middle (Not AR neither "pure" NH) but using 
> > Fluent
> > NH for mapping
> > without injecting persistence to my domain objects.
>
> > Am I right? if I am, I like the idea!!
>
> > ----- Original Message -----
> > From: "Jason Meckley" <[email protected]>
> > To: "Castle Project Users" <[email protected]>
> > Sent: Tuesday, May 26, 2009 3:13 PM
> > Subject: Re: Is AR just for prototyping
>
> > NH is NHibernate it's what AR is built on top of. Fluent NH is an API
> > to map entities to database without the xml.
>
> > On May 26, 5:08 pm, "Cesar Sanz" <[email protected]> wrote:
> > > Thanx for replying.
>
> > > >>You also have to option to use Fluent NH (FNH) to map your entities.
>
> > > I've never heard about NH, I will google for a while (perhaps you can
> > > point
> > > some links), maybe this is the way to go..
>
> > > ----- Original Message -----
> > > From: "Jason Meckley" <[email protected]>
> > > To: "Castle Project Users" <[email protected]>
> > > Sent: Tuesday, May 26, 2009 2:40 PM
> > > Subject: Re: Is AR just for prototyping
>
> > > You also have to option to use Fluent NH (FNH) to map your entities.
> > > this is best of both worlds. your entities are still "pure" and you
> > > don't have to mess with xml.
>
> > > On May 26, 3:10 pm, Markus Zywitza <[email protected]> wrote:
> > > > It depends.
>
> > > > If you are a pseudo-DDD type, go along with naked NH, Repositories,
> > > > pretended persistence ignorance and virtual properties and default
> > > > constructors for non-ignorable persistence needs.
>
> > > > If you are accepting that there is a database, prefer having 
> > > > mappings
> > > > with your code and value the convenience of simply calling
> > > > Entity.Save(), AR is for you.
>
> > > > -Markus
>
> > > > 2009/5/26 Cesar Sanz <[email protected]>:
>
> > > > > So,
>
> > > > > What is more recommended?
>
> > > > > ----- Original Message -----
> > > > > From: "Gabe Anzelini" <[email protected]>
> > > > > To: <[email protected]>
> > > > > Sent: Tuesday, May 26, 2009 12:02 PM
> > > > > Subject: Re: Is AR just for prototyping
>
> > > > >> some people just don't like to have their mapping logic spread
> > > > >> throughout their objects, this is prob more important for larger
> > > > >> projects than i have worked on, but AR seems to work fine for me.
> > > > >> also
> > > > >> if i need to change mapping i often need to change the properties 
> > > > >> as
> > > > >> well, AR keeps these together which is nice.
>
> > > > >> On Tue, May 26, 2009 at 10:10 AM, [email protected]
> > > > >> <[email protected]> wrote:
>
> > > > >>> Hello community,
>
> > > > >>> I have a question about ActiveRecord, I've heard that the only
> > > > >>> purpose
> > > > >>> of AR is for Rapid Developent, just
> > > > >>> for prototyping, then once you have created your model, you must 
> > > > >>> to
> > > > >>> switch to pure nhibernate..
>
> > > > >>> Why is that? Is not suitable AR for a production environment?
>
> > > > >>> Slts.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to