return Fluently.Configure()
.Database(MsSqlConfiguration.MsSql2008
.ConnectionString(c => c
.Database(Database)
.TrustedConnection()
.Server(Server)
).ShowSql())
.ExposeConfiguration(c => c.SetProperty("current_session_context_class", "web"))
.Mappings(m => m.FluentMappings.AddFromAssemblyOf<TeamMap>()).BuildConfiguration();
I have a web application. This configuration does not work.
I also have a Console application that shall be responsible to write out all generated SQL.
How can I get the generated SQL commands?
Thanks in advance!