How dare you turn my entire NHibernate SessionFactory creation into a
singlea private static readonly field in my manager class!

As always great work James, FNH never ceases to amaze me at how fast
it's been progressing.

I'm pretty sure I did catch a bug with this change, I have my
connection string in my configs:

<add name="NorthwindConnection" connectionString="Integrated
Security=SSPI;Persist Security Info=False;Data
Source=localhost;Initial Catalog=Northwind"
providerName="System.Data.SqlClient"/>

My bootstrapping is

     private static readonly ISessionFactory _sessionFactory =
Fluently.Configure()
            .Database(MsSqlConfiguration.MsSql2005.ConnectionString
(conn => conn.FromConnectionStringWithKey("NorthwindConnection")))
            .Mappings........

However I'm getting this on my NUnit dump now

System.ArgumentNullException: Value cannot be null.
Parameter name: Data Source
at System.Data.SqlClient.SqlConnectionStringBuilder.set_DataSource
(String value)
at FluentNHibernate.Cfg.Db.MsSqlConnectionStringBuilder.Create()
at FluentNHibernate.Cfg.Db.PersistenceConfiguration`2.CreateProperties
()
at
FluentNHibernate.Cfg.Db.PersistenceConfiguration`2.ConfigureProperties
(Configuration nhibernateConfig)
at FluentNHibernate.Cfg.FluentConfiguration.Database
(IPersistenceConfigurer config)
at
StructuredWeb.Repository.NHibernateDataAccess.NHibernateSessionManager..cctor
() in NHibernateSessionManager.cs: line 17



It's looking like somewhere it's not splitting up the connection
string into the variables it's expecting all the pieces to fall into.


On Feb 2, 7:42 pm, James Gregory <[email protected]> wrote:
> Guys,
> Yesterday I committed a reasonably large commit that added a new API to FNH,
> it's purpose is to tie together our existing APIs in such a manner to make
> it extremely easy to configure an entire application with FNH.
>
> This blog post outlines the main usage scenarios: Fluent NHibernate:
> Configuring your
> application<http://blog.jagregory.com/2009/02/03/fluent-nhibernate-configuring-yo...>
>
> I'll be writing more about this soon. Any suggestions are welcome.
>
> James
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to