public override int GetHashCode() { unchecked { int hashCode = (DefaultTableName != null ? DefaultTableName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ConnectionString != null ? ConnectionString.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ProviderName != null ? ProviderName.GetHashCode() : 0); return(hashCode); } }
protected override void Execute(NativeActivityContext context) { try { string strFilePath = FilePath.Get(context); string strDelimiter = Delimiter.Get(context); string strDefaultTableName = DefaultTableName.Get(context); DataTable MyResultTable = GetDataTabletFromCSVFile(strFilePath, strDefaultTableName, strDelimiter); if (MyResultTable != null) { ResultTable.Set(context, MyResultTable); } } catch (Exception ex) { Logger.Log.Logger.LogData(ex.Message + " in activity CSV_Read", Logger.LogLevel.Error); if (!ContinueOnError) { context.Abort(); } } }