Hi Chad,

any reason for using 2.0 instead of 2.0.1?

Cheers,
Stefan Lieser
--
http://nhplugin.lieser-online.de

Chad Myers schrieb:
> FYI, there's a Rake target for switching the binaries.  From the trunk/ 
> folder, type "rake -T".
>  
> These tasks are of particular interest:
>  
> rake nhib21           # Builds Fluent NHibernate against the NHibernate 2.1 
> lib...
> rake use_nhib_20  # Switches NHibernate dependencies to NHibernate 2.0
> rake use_nhib_21  # Switches NHibernate dependencies to NHibernate 2.1
> 
> ________________________________
> 
> From: fluent-nhibernate@googlegroups.com on behalf of Chris Bilson
> Sent: Thu 1/8/2009 1:44 PM
> To: Fluent NHibernate
> Subject: [fluent-nhib] Re: Fluent NHibernate and the Windsor NHibernate 
> Integration Facility
> 
> 
> 
> 
> The 2.1 NH binaries are in the FNH tree. I've just been copying those
> into the parent directory (where the c# projects get their references)
> and rebuilding building FNH.
> 
> I ended up ditching the castle NH facility, after using it for many
> years. I realized what it does is really pretty simple, so I just
> built my own Unit of work implementation that handles session
> management, per request sessions and transactions in web apps, and of
> course integrating with FNH for configuring session factories.
> 
> If anyone else is doing this it would be interesting to exchange
> ideas.
> 
> On Jan 8, 10:42 am, "Sebastien Lambla" <s...@serialseb.com> wrote:
>> No luck with the trunk of castle though as it relies on 2.1 and fluent
>> nhibernate so far seems compiled against 2.0.
>>
>> Is there a way to change that when compiling fluent nhibernate? Or is there
>> a 2.0 compat nhibernate facility in castle?
>>
>> I've had to revert to using a SessionManager and manage my sessions myself.
>> Not nice!
>>
>> -----Original Message-----
>> From: fluent-nhibernate@googlegroups.com
>>
>> [mailto:fluent-nhibern...@googlegroups.com] On Behalf Of Mike Hadlow
>> Sent: 08 January 2009 17:02
>> To: Fluent NHibernate
>> Subject: [fluent-nhib] Re: Fluent NHibernate and the Windsor NHibernate
>> Integration Facility
>>
>> Woops, sorry that code above won't work. You have to create you own
>> IConfigurationBuilder. This one is tested and works:
>>
>> /// <summary>
>> /// Default imlementation of <see cref="IConfigurationBuilder"/>
>> /// </summary>
>> public class FluentNHibernateConfigurationBuilder :
>> IConfigurationBuilder
>> {
>>         /// <summary>
>>         /// Builds the Configuration object from the specifed configuration
>>         /// </summary>
>>         /// <param name="config"></param>
>>         /// <returns></returns>
>>         public Configuration GetConfiguration(IConfiguration config)
>>         {
>>                 Configuration cfg = new Configuration();
>>
>>                 ApplyConfigurationSettings(cfg,
>> config.Children["settings"]);
>>
>>         cfg.AddMappingsFromAssembly(typeof(Order).Assembly);
>>
>>             AdditionalConfiguration(config, cfg);
>>
>>                 return cfg;
>>         }
>>
>>     /// <summary>
>>     /// Override this method to provide additional configuration
>>     /// </summary>
>>     /// <param name="config"></param>
>>     /// <param name="cfg"></param>
>>     public virtual void AdditionalConfiguration(IConfiguration config,
>> Configuration cfg) {}
>>
>>         /// <summary>
>>         /// Applies the configuration settings.
>>         /// </summary>
>>         /// <param name="cfg">The CFG.</param>
>>         /// <param name="facilityConfig">The facility config.</param>
>>         protected void ApplyConfigurationSettings(Configuration cfg,
>> IConfiguration facilityConfig)
>>         {
>>                 if (facilityConfig == null) return;
>>
>>                 foreach (IConfiguration item in facilityConfig.Children)
>>                 {
>>                         String key = item.Attributes["key"];
>>                         String value = item.Value;
>>
>>                         cfg.SetProperty(key, value);
>>                 }
>>         }
>> }
> 
> 
> 
> 
> > 
> 
> 
> ------------------------------------------------------------------------
> 
> 
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.176 / Virus Database: 270.10.5/1882 - Release Date: 08.01.2009 
> 08:13
> 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@googlegroups.com
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to