public static void UpdateSchema(global::NHibernate.Cfg.Configuration configuration)
{
using (new WriteLockDisposable(SchemaValidationLocker))
{
using (DisposableTimer.TraceDuration<ProviderBootstrapper>("Begin db schema update", "End db schema update"))
{
var schema = new SchemaUpdate(configuration);
schema.Execute(x => LogHelper.TraceIfEnabled<ProviderBootstrapper>("NHibernate generated the following update Sql: \n" + x), true);
}
}
}
}