public override bool IsRunnable(DataRow row, DataObjectStore store) { bool flag = true; if (!string.IsNullOrEmpty(this.DataObjectName)) { flag = (store.GetModifiedPropertiesBasedOnDataObject(row, this.DataObjectName).Count > 0); } return(flag && base.IsRunnable(row, store)); }
public override void BuildParameters(DataRow row, DataObjectStore store, IList <ParameterProfile> paramInfos) { if (!string.IsNullOrEmpty(this.CommandTextLambdaExpression)) { this.DataHandler.CommandText = (string)ExpressionCalculator.CalculateLambdaExpression(ExpressionCalculator.BuildColumnExpression(this.CommandTextLambdaExpression), typeof(string), row, null); } this.DataHandler.Parameters.Clear(); if (!string.IsNullOrEmpty(this.DataObjectName)) { this.DataHandler.Parameters.AddWithValue("Instance", store.GetDataObject(this.DataObjectName)); } else { this.DataHandler.KeepInstanceParamerter = true; } MonadSaveTask.BuildParametersCore(row, paramInfos, this.DataHandler.Parameters); this.workUnitDescription = MonadSaveTask.BuildParametersDescription(row, paramInfos); this.DataHandler.ClearParameterNames(); this.DataHandler.SpecifyParameterNames(store.GetModifiedPropertiesBasedOnDataObject(row, this.DataObjectName)); }