public static DbModel LoadDbModel(string schema, SystemLog log) { if (Driver == null) { SetupForTestExplorerMode(); } var dbSettings = new DbSettings(Driver, DbOptions, ConnectionString); dbSettings.SetSchemas(new[] { schema }); var loader = Driver.CreateDbModelLoader(dbSettings, log); var dbModel = loader.LoadModel(); if (log.HasErrors) { Util.Throw("Model loading errors: \r\n" + log.GetAllAsText()); } return(dbModel); }