public static SqlConnection GetSQLiteConnection() { if(connectionManager == null) connectionManager = new ConnectionManager(); if(connectionManager.GetOpenedSQLConnection() == null) connectionManager.OpenSQLConnection(); return connectionManager.GetOpenedSQLConnection(); }
public static IRepository GetRepository() { if(connectionManager == null) connectionManager = new ConnectionManager(); if(connectionManager.GetCurrentRepository() == null) connectionManager.CreateRepository(); return connectionManager.GetCurrentRepository(); }