Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0ORM - NHibernate and CastleORM - NHibernate and Castle
Previous
 
Next
New Post
7/19/2007 10:40 AM
 

Anyone had luck making Castle work for their DotNetNuke module?

I first played with NHibernate and made it work without a problem.  But when it came to session management, the thing became hard to handle.  I then came accross Castle ActiveRecord which supposedly has a NHibernate facility that handles all of the session management.  I then proceeded to implement ActiveRecord on my module but was again stuck.

The problem is that I need to initialize ActiveRecord at the event application_start.  I cannot use HttpModule for that and I can't use Global.asax since I don't want to play with the core of DotNetNuke.

It seems I'm almost out of options and I really don't want to give up on ORM.

Any ideas would be greatly appreciated.

Thank you.

 
New Post
7/19/2007 11:16 AM
 

Can you elaborate on what you are trying to do with session management?  Have you looked at EntitySpaces?

 
New Post
7/19/2007 11:33 AM
 

I would like to have only one session opened for every call I make to the database, instead of having to create a session before each call.  One way to do that is to create the unique session at the beginrequest event.  But then, if I want to connect to different databases, the thing just get out of hand.

That's why I'm looking at castle since it supposedly handle all that session management for you.  And that would be great :)

Do you know if EntitySpaces would help me with this?

 
New Post
7/19/2007 7:23 PM
 

Entityspace does support what you are after

 
New Post
7/20/2007 12:03 AM
 

odupuis wrote

I would like to have only one session opened for every call I make to the database, instead of having to create a session before each call.  One way to do that is to create the unique session at the beginrequest event.  But then, if I want to connect to different databases, the thing just get out of hand.

That's why I'm looking at castle since it supposedly handle all that session management for you.  And that would be great :)

Do you know if EntitySpaces would help me with this?

How luck you're, man. here it is. http://www.codeproject.com/aspnet/NHibernateBestPractices.asp  It's the best article on asp.net I have ever read. Hope you agree with me after you read it.

Frank  

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0ORM - NHibernate and CastleORM - NHibernate and Castle


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out