/// <summary> /// Creates a database on the given database configuration. /// Lifetime should be managed by IOC framework if using any! /// </summary> /// <param name="configuration">The database configuration to use</param> /// <returns>A new instance of an IDatabase implementation</returns> public IRhisisDatabase CreateDatabaseInstance(DatabaseConfiguration configuration) { var optionsBuilder = new DbContextOptionsBuilder().UseMySql(BuildConnectionString(configuration)); return(new RhisisDatabaseContext(optionsBuilder.Options, configuration)); }