Re: Upgrade NHibernate 2.1 to NHibernate 3.3 (Latest)

717 views
Skip to first unread message

Ricardo Peres

unread,
Jun 7, 2013, 9:38:47 AM6/7/13
to nhibernate-...@googlegroups.com
Just use Nuget (install-package NHibernate), this will replace both the NHibernate.dll and Iesi.Collections.dll. Discard all the others except FluentNHibernate (which you can algo get by Nuget, this way you will always have the latest version). Finally, drop the ProxyFactoryFactory call, NHibernate no longer supports pluggable proxy factories, it uses an internal one.

RP

On Friday, June 7, 2013 11:09:47 AM UTC+1, Pravin wrote:

Hi,
   Can anybody please tell me the steps to upgrade NHibernate 2.1 to NHibernate 3.3
    I have the following DLL's
    1. NHibernate 2.1
    2. NHibernate.ByteCode.Castle 2.1
    3. Iesi.Collections 1.0
    4. FluentNHibernate 1.0
    5. Castle.DynamicProxy2 2.1
    6. Castle.Core 1.1
   
   The configuration code for Fluent Nhibernate is as follows

       public static FluentConfiguration Config
        {
            get
            {
              
                if (_config == null)
                {
                    _config = Fluently.Configure()
                        .Database(MsSqlConfiguration.MsSql2008
                            .ConnectionString(cs => cs.Is(ConnectionString))
                            .AdoNetBatchSize(2000)
                            .Raw("command_timeout", "600")
                            .ProxyFactoryFactory("NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle")
                            .ShowSql()
                            )
               .
               .
               .
               .
            }
       }


   Please let me know what DLL's should be excluded/upgraded and code changes if any in the configuration for installing the Latest NHibernate.

  Thanks

Oskar Berggren

unread,
Jun 7, 2013, 10:44:29 AM6/7/13
to nhibernate-...@googlegroups.com

2013/6/7 Ricardo Peres <rjp...@gmail.com>
... NHibernate no longer supports pluggable proxy factories, it uses an internal one.

Just to be clear, it is supported, but no longer required, to have an external proxy factory.

/Oskar

Richard Wilde

unread,
Jun 10, 2013, 9:50:22 AM6/10/13
to nhibernate-...@googlegroups.com

No you should delete all the DLL’s and then do a “Clean” on the solution.  Make sure all the dlls’ have all disappeared from your BIN folders.

 

Then install from Nuget and see what breaks J

 

However I don’t use Fluent so I am not 100% sure what you need to use for the ProxyFactoryFactory

 

HTH Rippo

 

 

From: nhibernate-...@googlegroups.com [mailto:nhibernate-...@googlegroups.com] On Behalf Of Pravin
Sent: 10 June 2013 09:56
To: nhibernate-...@googlegroups.com
Subject: [nhibernate-development] Re: Upgrade NHibernate 2.1 to NHibernate 3.3 (Latest)

 

Thanks Guyz for your suggestion, but will installing the package replace the DLL's for all the NHibernate projects that I'm using. Right now, I just want to experiment with 1 project.

--
 
---
You received this message because you are subscribed to the Google Groups "nhibernate-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhibernate-develo...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages