Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Chapter 23 - Data access with NHibernate ready for review
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - 10 new - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jeffrey Palermo  
View profile  
 More options Jan 5 2010, 1:49 am
From: Jeffrey Palermo <Jeff...@Palermo.cc>
Date: Tue, 5 Jan 2010 00:49:55 -0600
Local: Tues, Jan 5 2010 1:49 am
Subject: Chapter 23 - Data access with NHibernate ready for review

I'd like to get this discussion list going my posting the first manuscript
chapter we have ready.  It is the first chapter because it had the most
reusable content from the 1st edition book.  The example was converted from
using XML mapping files to FluentNHibernate code-based mappings.

The chapter uses Inversion of Control and constructor injection, but it does
not use a container library.  It implements dependency injection and
abstract factories through code.
Please reply to this group and tell us what you think.

Best regards,
Jeffrey Palermo

  MVC2iA_CH_23.docx
727K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rohancragg  
View profile  
 More options Jan 5 2010, 9:13 am
From: rohancragg <rohancr...@gmail.com>
Date: Tue, 5 Jan 2010 06:13:37 -0800 (PST)
Local: Tues, Jan 5 2010 9:13 am
Subject: Re: Chapter 23 - Data access with NHibernate ready for review
It might be useful if in summary towards the end of the chapter, you
relate the various classes you've discussed to where they live in
physical packages and/or relate them to where they live inside the
Onion architecture; just to finally hammer home the point about how
the inner layers should not depend on outer ones.

I realise that you show this to some extent in the use of namespaces
and screen shots from Solution Explorer but in the code snippet from
the DataConfig class the namespace is omitted. I think that when we
read code samples we often skim the nameaspace and don't read it or at
least miss the subtleties of the inter-dependencies unless we have a
compiler or IDE to show us. Something visual that explicitly shows the
package layout or the classes super-imposed on the onion might be a
useful addition to the summary?

On Jan 5, 6:49 am, Jeffrey Palermo <Jeff...@Palermo.cc> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeffrey Palermo  
View profile  
 More options Jan 5 2010, 9:34 am
From: Jeffrey Palermo <jeffreypale...@gmail.com>
Date: Tue, 5 Jan 2010 06:34:30 -0800 (PST)
Local: Tues, Jan 5 2010 9:34 am
Subject: Re: Chapter 23 - Data access with NHibernate ready for review
Thanks for the feedback!

Regards,
Jeffrey Palermo

On Jan 5, 8:13 am, rohancragg <rohancr...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rong  
View profile  
 More options Jan 5 2010, 1:24 pm
From: Rong <ron.gr...@gmail.com>
Date: Tue, 5 Jan 2010 10:24:06 -0800 (PST)
Local: Tues, Jan 5 2010 1:24 pm
Subject: Re: Chapter 23 - Data access with NHibernate ready for review
Is this for a second Edition?

On Jan 5, 12:49 am, Jeffrey Palermo <Jeff...@Palermo.cc> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeffrey Palermo  
View profile  
 More options Jan 5 2010, 2:19 pm
From: Jeffrey Palermo <Jeff...@Palermo.cc>
Date: Tue, 5 Jan 2010 13:19:52 -0600
Local: Tues, Jan 5 2010 2:19 pm
Subject: Re: [mvc2inaction-discuss] Re: Chapter 23 - Data access with NHibernate ready for review

Yes.  The title of the book is "ASP.NET MVC 2 in Action".  It is a second
edition to "ASP.NET MVC in Action" by Manning Publications:
http://manning.com/palermo

Best regards,
Jeffrey Palermo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
TJA  
View profile  
 More options Jan 5 2010, 5:38 pm
From: TJA <thomasv1...@hotmail.fr>
Date: Tue, 5 Jan 2010 14:38:32 -0800 (PST)
Local: Tues, Jan 5 2010 5:38 pm
Subject: Re: Chapter 23 - Data access with NHibernate ready for review
When it will be available on MEAP ?

Thanks

On 5 jan, 20:19, Jeffrey Palermo <Jeff...@Palermo.cc> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
TJA  
View profile  
 More options Jan 5 2010, 6:15 pm
From: TJA <thomasv1...@hotmail.fr>
Date: Tue, 5 Jan 2010 15:15:23 -0800 (PST)
Local: Tues, Jan 5 2010 6:15 pm
Subject: Re: Chapter 23 - Data access with NHibernate ready for review
Page 7 at bottom it's written "When BuildFactory() is called..." you
mean CreateDefaultRepositoryBuilder().

Thanks

Thomas

On 5 jan, 23:38, TJA <thomasv1...@hotmail.fr> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
charliesolomon  
View profile  
 More options Jan 13 2010, 1:10 pm
From: charliesolomon <charliesolo...@gmail.com>
Date: Wed, 13 Jan 2010 10:10:52 -0800 (PST)
Local: Wed, Jan 13 2010 1:10 pm
Subject: Re: Chapter 23 - Data access with NHibernate ready for review
I reviewed this during my plane trip to Austin for MVC bootcamp and
learned a lot!  Sorry I don't have more substantial feedback... this
chapter looks great to me.  Here are some minor corrections:

Page 1: Intro paragraph, last sentence: should be "applicable" not
"application"

Page 7: "To even the inexperienced eye" --> should it be "To even the
experienced eye"?

Page 11: "The two files" should be "The two XSD files"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeffrey Palermo  
View profile  
 More options Jan 13 2010, 1:22 pm
From: Jeffrey Palermo <Jeff...@Palermo.cc>
Date: Wed, 13 Jan 2010 12:22:13 -0600
Local: Wed, Jan 13 2010 1:22 pm
Subject: Re: [mvc2inaction-discuss] Re: Chapter 23 - Data access with NHibernate ready for review

Glad you enjoyed it.  Thanks for the corrections!

Best regards,
Jeffrey Palermo

On Wed, Jan 13, 2010 at 12:10 PM, charliesolomon
<charliesolo...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Benard  
View profile  
 More options Jan 30 2010, 2:33 pm
From: Chris Benard <ch...@chrisbenard.net>
Date: Sat, 30 Jan 2010 11:33:46 -0800 (PST)
Local: Sat, Jan 30 2010 2:33 pm
Subject: Re: Chapter 23 - Data access with NHibernate ready for review
Hey Jeffrey,

This was quite an eye opener, since I've never used NHibernate and I'm
still wrapping my head around your Onion Architecture.

With that said, I offer the following suggestions for correction.
Also, here is a link to the docx which I marked up under review mode.
If you open the docx file, be sure to turn on the mode where it shows
the comments and tracked changes.

http://www.box.net/shared/m9rp03e2bi

1) Page 8: RepositoryBuilder appears to be a field, not a property as
stated.
2) Page 11: As another reviewer stated, I added XSD in between "two
files" to make "two XSD files".
3) Page 11: Listing 23.6: Table("Visitor") should be Table("Visitors")
as it appears everywhere else including the XML in the same code
listing.
4) Page 12: "The equivalent XML mapping is included in commented for
for reference." Remove duplicate "for" and replace "commented" with
"comments".
5) Page 13: Listing 23.7: In the "Return Fluently.Configure(...",
"Return" should have a lowercase "r" (in C#).
6) Page 17: Listing 23.11: In the When_saving_should_write_to_database
method, you create a Visitor object manually, but you have a
CreateVisitor(DateTime) method you use several other times in the same
TextFixture that does the exact same thing. Consider using that method
there instead of the manual creation, in observance of the DRY
principle.
7) Page 17: Listing 23.11: In the lines in that same Test, you do
comparisons like: Assert.That(loadedVisitor.Browser, Is.EqualTo
("1"));. However, it may more clear to do: Assert.That
(loadedVisitor.Browser, Is.EqualTo(visitor.Browser));. Again, you did
this in the other Tests in the same TextFixture.

Aside from those few things, I learned a lot! Like I said, I've never
used NHibernate, and it's neat to see how to hook it up, especially as
I'm beginning to understand and use the Onion Architecture.

I look forward to reviewing more chapters!

Thanks,
Chris Benard

On Jan 5, 12:49 am, Jeffrey Palermo <Jeff...@Palermo.cc> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeffrey Palermo  
View profile  
 More options Jan 31 2010, 5:51 pm
From: Jeffrey Palermo <Jeff...@Palermo.cc>
Date: Sun, 31 Jan 2010 16:51:10 -0600
Local: Sun, Jan 31 2010 5:51 pm
Subject: Re: [mvc2inaction-discuss] Re: Chapter 23 - Data access with NHibernate ready for review

Chris,
Thank you very much for the thoughtful comments.  I will be sure to work
them in for the 2nd draft.

Best regards,
Jeffrey Palermo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic