Re: Adding and associating an nhibernate facility programmatically

2009-05-04 Thread Yannis
yes. i got it at the end. There was a problem with the nhibernate configuration. thx On May 4, 7:44 am, Tuna Toksoz wrote: > BTW, what do you mean by nhibernate properties? connection string etc? > > > > On Mon, May 4, 2009 at 12:05 AM, Yannis wrote: > > > whats hte point then? i want to config

Re: Adding and associating an nhibernate facility programmatically

2009-05-03 Thread Tuna Toksoz
BTW, what do you mean by nhibernate properties? connection string etc? On Mon, May 4, 2009 at 12:05 AM, Yannis wrote: > > whats hte point then? i want to configure nhibernate properties > programmatically > > On May 2, 5:17 pm, Tuna Toksoz wrote: > > Please have the configuration for the facili

Re: Adding and associating an nhibernate facility programmatically

2009-05-03 Thread Tuna Toksoz
Wait until my laptop returns from the repair. On Mon, May 4, 2009 at 12:05 AM, Yannis wrote: > > whats hte point then? i want to configure nhibernate properties > programmatically > > On May 2, 5:17 pm, Tuna Toksoz wrote: > > Please have the configuration for the facility in xml and set the > >

Re: Adding and associating an nhibernate facility programmatically

2009-05-03 Thread Yannis
whats hte point then? i want to configure nhibernate properties programmatically On May 2, 5:17 pm, Tuna Toksoz wrote: > Please have the configuration for the facility in xml and set the > ConfigurationBuilder in the xml, and in the IConfigurationBuilder set the > properties as you wish. > > Tun

Re: Adding and associating an nhibernate facility programmatically

2009-05-02 Thread Tuna Toksoz
Please have the configuration for the facility in xml and set the ConfigurationBuilder in the xml, and in the IConfigurationBuilder set the properties as you wish. Tuna Toksöz Eternal sunshine of the open source mind. http://devlicio.us/blogs/tuna_toksoz http://tunatoksoz.com http://twitter.com/t

Re: Adding and associating an nhibernate facility programmatically

2009-05-02 Thread Yannis
anyone??? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to castle-project-users@googlegroups.com To unsubscribe from this group, send email to castle-

Re: Adding and associating an nhibernate facility programmatically

2009-04-30 Thread Yannis
Well i figured out the code after i posted but it still doesnt work and I cant figure out why. My code follows. Although i generate an nhibernate configuration in a different class i am still trying to set the dialect explicitly (as shown below) but it still doesnt work. NHibernateFac

Re: Adding and associating an nhibernate facility programmatically

2009-04-30 Thread Tuna Toksoz
This feature is getting more and more demanded. I'll give it a go, making it work without configuration business, and if one wants to go further (such as configuring sessionfactory, I'll leave it to anther tool such as FNH. Victor's code will work for you, too. Tuna Toksöz Eternal sunshine of the

Re: Adding and associating an nhibernate facility programmatically

2009-04-29 Thread Victor Kornov
var facility = new MutableConfiguration("facility"); // isWeb indicates to facility wee are in web context, so it'll use SessionWebModule httpModule // to setup session context for the duration of web request facility.Attribute("isWeb", "true").CreateChild("factory").Attribute("id", "nhibernate.f

Re: Adding and associating an nhibernate facility programmatically

2009-04-29 Thread Yannis
Sorry I didnt write the way I meant to. I want to programmatically create an nhibernate facility. Currently I have a class that implements IConfigurationBuilder that as follows: public class NHibernateConfigurationBuilder : IConfigurationBuilder { #region IConfigurationBuilder Member

Re: Adding and associating an nhibernate facility programmatically

2009-04-29 Thread Tuna Toksoz
Adding NHFacility for injecting to a service constructor? why? Tuna Toksöz Eternal sunshine of the open source mind. http://devlicio.us/blogs/tuna_toksoz http://tunatoksoz.com http://twitter.com/tehlike On Thu, Apr 30, 2009 at 12:32 AM, Yannis wrote: > > is there any way to add an nhibernat

Adding and associating an nhibernate facility programmatically

2009-04-29 Thread Yannis
hi all, is there any way to add an nhibernate facility programmatically and associate it with a service constructor? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to th