i m doing the configuration of Fluent nHibernate in my application with the following code ,
var FNHConfig = Fluently.Configure()
.Database(MsSqlConfiguration.MsSql2008
.ConnectionString(c => c.FromConnectionStringWithKey("FNHConnection"))
)
.Mappings(m => m.FluentMappings.AddFromAssembly(Assembly.GetCallingAssembly()))
.BuildConfiguration();
return FNHConfig.BuildSessionFactory();
but it giving exception saying that "An invalid or incomplete configuration was used while creating a SessionFactory. ". anyone have idea how to solve this exception ?
Thanks