public static XMLObjectDatabase Start(string XmlFolder, string DatabaseName, ref List <Type> Registereds) { Log.Debug("DBManager", "Starting XML Database : " + XmlFolder); XMLObjectDatabase database = ObjectDatabase.GetObjectDatabase(ConnectionType.DATABASE_XML, XmlFolder) as XMLObjectDatabase; if (database == null) { return(null); } LoadTables(database, DatabaseName, ref Registereds); return(database); }
public static IObjectDatabase Start(string sqlconfig, ConnectionType Type, string databaseName, string schemaName) { Log.Debug("IObjectDatabase", databaseName + "->Start " + sqlconfig + "..."); IObjectDatabase _database = null; try { _database = ObjectDatabase.GetObjectDatabase(Type, sqlconfig, schemaName); if (_database == null) { return(null); } LoadTables(_database, databaseName); return(_database); } catch { return(null); } }
public static MySQLObjectDatabase Start(string sqlconfig, ConnectionType Type, string DBName) { Log.Debug("DBManager", DBName + "->Start " + sqlconfig + "..."); IObjectDatabase _database = null; try { _database = ObjectDatabase.GetObjectDatabase(Type, sqlconfig); if (_database == null) { return(null); } List <Type> Registereds = null; LoadTables(_database, DBName, ref Registereds); return((MySQLObjectDatabase)_database); } catch { return(null); } }