/// <summary> /// Apply standard configuration to custom properties /// </summary> /// <param name="isagCustomProperties">component custom porperties</param> /// <param name="row">data row</param> public void SetStandardConfiguration(ref IsagCustomProperties isagCustomProperties, DataRow row) { try { isagCustomProperties.ChunckSizeBulk = (long)row["ChunkSizeBulk"]; isagCustomProperties.ChunkSizeDbCommand = (long)row["ChunkSizeDbCommand"]; isagCustomProperties.TimeOutDb = (int)row["DbTimeout"]; isagCustomProperties.MaxThreadCount = (long)row["MaxThreadCount"]; isagCustomProperties.PrefixInput = row["PreFixInput"].ToString(); isagCustomProperties.PrefixOutput = row["PreFixOutput"].ToString(); IsagCustomProperties.TableLoaderType tableLoaderType = (IsagCustomProperties.TableLoaderType)Enum.Parse(typeof(IsagCustomProperties.TableLoaderType), row["TableLoaderType"].ToString()); IsagCustomProperties.DbCommandType dbCommand = (IsagCustomProperties.DbCommandType)Enum.Parse(typeof(IsagCustomProperties.DbCommandType), row["DbCommand"].ToString()); IsagCustomProperties.TransactionType transaction = (IsagCustomProperties.TransactionType)Enum.Parse(typeof(IsagCustomProperties.TransactionType), row["TransactionType"].ToString()); isagCustomProperties.TlType = tableLoaderType; isagCustomProperties.DbCommand = dbCommand; isagCustomProperties.Transaction = transaction; } catch (Exception ex) { throw new Exception(ex.Message); } }
/// <summary> /// constructor /// </summary> /// <param name="inputColumnName">input column name</param> /// <param name="outputColumnDataType">output column datatype</param> /// <param name="dbCommand">database command type</param> /// <param name="functionValue">function</param> /// <param name="inputColumnNameList">input column name list</param> public frmFunctionEditor(string inputColumnName, string outputColumnDataType, IsagCustomProperties.DbCommandType dbCommand, string functionValue, string[] inputColumnNameList) { InitializeComponent(); _inputColumnName = inputColumnName; _dbCommand = dbCommand; tbValue.Text = functionValue; _outputColumnDataType = outputColumnDataType; cbColumnList.Items.AddRange(inputColumnNameList); cbColumnList.Text = inputColumnName; }