private void SetCore(string driver) { if (driver.Equals("mysql")) { _core = new MySqlCore(); } }
private static ICore Core(string driver) { ICore coe = null; if (driver.Equals("mysql")) { coe = new MySqlCore(); } return(coe); }