public static void ConnectToLocalStorageDatabase() { if (context != null) { return; } context = new DBContext(DBContext.isoStorageDBConnectionString); }
public static void CloseConnection() { if (context == null) { return; } context.Dispose(); context = null; }
public static void CreateDBContext() { using (context = new DBContext(DBContext.isoStorageDBConnectionString)) { if (!context.DatabaseExists()) { context.CreateDatabase(); } } context = null; }