Nice one James, So the next abstraction should be Fluently.WriteMyApp().Go();
;o) On Tue, Feb 3, 2009 at 8:49 AM, James Gregory <jagregory....@gmail.com>wrote: > Good catch Chris, I'll have a look at this asap. > > > On Tue, Feb 3, 2009 at 4:55 AM, Chris Marisic <ch...@marisic.com> wrote: > >> >> 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 <jagregory....@gmail.com> 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 >> >> > > > > -- ================= I-nnovate Software - Bespoke Software Development, uk wirral. http://www.i-nnovate.net --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---