public T ExportDataToCustomerSource <T>(XmlNode exportData) where T : MSG { if (_exportDataToSql == null) { _exportDataToSql = new ExportDataToSQL(_pluginSettings); } return(_exportDataToSql.SaveDataToTable <T>(exportData)); }
//public void ExportDataToCustomerSource(IPluginSettings pluginSettings, string exportDataType, string exportData, string[] exportDataParameters = null) //{ // //// var dataInstance = Activator.CreateInstance(Type.GetType(exportDataType)); // sqlExporter.SaveDataToTable(exportDataType, exportData); //} public void ExportDataToCustomerSource(IPluginSettings pluginSettings, XmlNode exportData) { try { ExportDataToSQL sqlExporter = new ExportDataToSQL(pluginSettings); sqlExporter.SaveDataToTable(exportData); } catch (Exception ex) { _loger.Log(ex); } }
public ICustomerDataConnector GetPrepearedDataConnector(IPluginSettings pluginSettings) { _pluginSettings = pluginSettings as MsSqlPluginSettings; _exportDataToSql = new ExportDataToSQL(_pluginSettings); return(this); }