protected CoreDBContext NewCoreDbContext(DbConnection dbConnection = null) { return(dbConnection != null? _dbFactory.CreateDbContext <CoreDBContext>(dbConnection) : _dbFactory.CreateDbContext <CoreDBContext>()); }