Devlico.Us
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @devlicious

Alan Northam



Getting Started with NHibernate: Part IV

    I've made some major changes to the blog application example.  The users and roles now use custom membership and role providers that supports NHibernate.  Session context is maintained with a custom implementation of ICurrentSessionContext (a new NHibernate 1.2 feature).  The session and session factory management classes have also undergone some minor modifications.  I've also included a very basic web user interface that uses Ajax for Asp.Net (previously Atlas).  I'll cover some of these topics in more detail in upcoming posts.

    The attached zip file contains the VS2005 solution and a SQL script to generate the database schema (SQL 2005 or SQL Express 2005 only).
 



Comments

Bharani said:

The zip file is corrupt or something is wrong with it. Can you please correct it?

Thanks.

# September 20, 2007 11:34 AM

sean said:

hi, thanks for the article, however i was unable to download the zip file.

# November 30, 2007 8:22 AM

Billy McCafferty said:

Hey Alan,

The zip is corrupt.

# December 1, 2007 6:45 PM

Joe said:

Alan, very good series here.  The zip is no good though.  Can you please post a valid one?

# March 17, 2008 9:47 AM

Chris May said:

# September 16, 2008 3:17 PM

George Fitch said:

The zip file is bad, but is usable.  Extract the file, rename it to something with a .zip extension and that new zip file is good.

# November 28, 2008 10:59 AM

twister said:

I cant run the application. It gives error in web.config about roleprovider.

<add name="NHibernateRoleProvider" type="NHBlog.DataAccess.Security.NHibernateRoleProvider, NHBlog.DataAccess" applicationName="NHBlog"/>

Why do you think?

# December 25, 2008 10:57 AM

twister said:

After some effort I can run it with vs.2008

But I cant still pass login page. Now error like this

"not-null property references a null or transient value: NHBlog.BusinessEntities.Security.User.Application"

in membership providers.

# December 26, 2008 3:52 AM

twister said:

Again me.

I solved this.

I manually added a record to Database Application table with name "NHBlog".

# December 29, 2008 2:40 AM

Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add
Check out Devlicio.us!

Our Sponsors

Proudly Partnered With