/// <summary> Gets data service. </summary> /// <param name="configuration"> The configuration. </param> /// <returns> The data service. </returns> public ILocalizationDataService GetDataService(IConfigurationRoot configuration) { switch (_options.Provider) { case DataProvider.MSSQL: return(MssqlHelper.ProvideService(configuration)); case DataProvider.PGSQL: return(PgsqlHelper.ProvideService(configuration)); case DataProvider.MYSQL: return(MysqlHelper.ProvideService(configuration)); case DataProvider.LITEDB: return(LiteDbHelper.ProvideService(configuration)); default: throw new NotImplementedException($"Provider {_options.Provider} was not implemented!"); } }