Rebel.Framework.Persistence.NHibernate.ProviderBootstrapper.UpdateSchema C# (CSharp) Method

UpdateSchema() public static method

public static UpdateSchema ( global configuration ) : void
configuration global
return void
        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);
                }
            }
        }
    }