And I'd advise the opposite.  LOL!

NHibernate and code gen both have their places.  Both have their pluses and
their minuses, as does writing it all by hand.  The whole ORM and OXM
(object-xml mapping) issue has been discussed at length before, and most
eliquently by Ted Neward (who conveniently deleted his blog posts on the
subject).  The end result is that you almost need to know how to do it by
hand, and then pick the proper strategy based on the project and the
inherent limitations of all the different styles.  I have a presentation
with examples on various data mapping techniques and the
performance results (DataReader, DataSet, XmlSerialization, XPath) and I am
in the middle of updating it to 2.0 (plus adding some other variations).
I guess I should include an NHiberbate example.  Here is the blog entry,
http://www.donxml.com/allthingstechie/archive/2004/06/25/862.aspx , the
source: http://www.donxml.com/mvp.xml.datamappers.zip, and a copy of one of
the presentations I did on it:
http://www.donxml.com/sourcecode/DataMapperPatternWithDotNet11.ppt.

Don Demsak
website: www.donxml.com

On 2/3/06, Paul Cowan <[EMAIL PROTECTED]> wrote:
>
> I advise anybody who has not looked at NHibernate, to do so.
>
> I think Object Relational Mapping is the way to go.  I'm  not sold on the
> code generation thing.
>
>
>
> [EMAIL PROTECTED]
>
>
>
>
>
> >From: Don Demsak <[EMAIL PROTECTED]>
> >Reply-To: "Discussion of advanced .NET topics."
> ><[email protected]>
> >To: [email protected]
> >Subject: Re: [ADVANCED-DOTNET] XSD -> C# classes -> XML
> >Date: Fri, 3 Feb 2006 10:09:55 -0500
> >
> >Remember, there are lots of things that you can do in XSD that can not be
> >expressed using the XSD.exe or XML Spy tools.  They may get you most of
> the
> >way there, but you may still have lots of code to write.  And the inverse
> >is
> >also true, there are validations that can be expressed in C# that are
> >impossible to do in XSD.
> >
> >Don Demsak
> >blog: www.donxml.com
> >
> >===================================
> >This list is hosted by DevelopMentor(r)  http://www.develop.com
> >
> >View archives and manage your subscription(s) at
> http://discuss.develop.com
>
> ===================================
> This list is hosted by DevelopMentor(r)  http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>



--
<a href="http://www.donxml.com";><img src="
http://feeds.feedburner.com/Donxml.gif"; height="67" width="200"
style="border:0" alt="DonXml"/></a>

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to