Open session

Oct 26, 2009 at 10:47 AM

firstly I want to felicate you for the greate work "sculpture",

I have a little problem, Just I want to know how I can pass a parameter in the method "Open session" wich used in the "NHibernateHelper", I want to pass a string parameter wich I will use the define the path of the "Nhibernate.cfg.xml" file, so is there any way to not change this class "NHibernateHelper" every time i regenerate the sculpture solution?

thank you

Hassan

Coordinator
Oct 26, 2009 at 2:53 PM
hrihan wrote:

firstly I want to felicate you for the greate work "sculpture",

I have a little problem, Just I want to know how I can pass a parameter in the method "Open session" wich used in the "NHibernateHelper", I want to pass a string parameter wich I will use the define the path of the "Nhibernate.cfg.xml" file, so is there any way to not change this class "NHibernateHelper" every time i regenerate the sculpture solution?

thank you

Hassan

Hi Hassan,

There is no longer support for Sculpture 1.0, Where Sculpture 2.X takes the road,

About your problem, you can easily update the template 'NHibernateHelper' (in Sculpture installed directory) to satisfy your needs so Sculpture will use it each time on the generation process.

 

Best Regards,

Ahmed Negm