public SQLInQueryResultItem Clone() { SQLInQueryResultItem item = new SQLInQueryResultItem(); item.ThirdPartyDBPatamter.FieldID = this.ThirdPartyDBPatamter.FieldID; item.ThirdPartyDBPatamter.FieldName = this.ThirdPartyDBPatamter.FieldName; item.ThirdPartyDBPatamter.FieldType = this.ThirdPartyDBPatamter.FieldType; item.Translating = this.Translating.Clone(); item.SourceField = this.SourceField; item.TargetField = this.TargetField; item.RedundancyFlag = this.RedundancyFlag; item.GWDataDBField.Table = this.GWDataDBField.Table; item.GWDataDBField.FieldName = this.GWDataDBField.FieldName; return(item); }
public SQLInboundChanel Clone() { SQLInboundChanel ch = new SQLInboundChanel(); ch.ChannelName = this.ChannelName; ch.Enable = this.Enable; ch.OperationName = this.OperationName; ch.Modified = this.Modified; ch.OperationType = this.OperationType; ch.SPName = this.SPName; ch.SPStatement = this.SPStatement; //ch.Rule.RuleID = Rule.RuleID; // do not copy RuleID ch.Rule.RuleName = Rule.RuleName; ch.Rule.CheckProcessFlag = Rule.CheckProcessFlag; ch.Rule.AutoUpdateProcessFlag = Rule.AutoUpdateProcessFlag; ch.Rule.QueryCriteria.Type = Rule.QueryCriteria.Type; ch.Rule.QueryCriteria.SQLStatement = Rule.QueryCriteria.SQLStatement; ch.Rule.InputParameterSPStatement = Rule.InputParameterSPStatement; foreach (SQLInQueryCriteriaItem item in Rule.QueryCriteria.MappingList) { SQLInQueryCriteriaItem i = item.Clone(); ch.Rule.QueryCriteria.MappingList.Add(i); } foreach (SQLInQueryResultItem item in Rule.QueryResult.MappingList) { SQLInQueryResultItem i = item.Clone(); ch.Rule.QueryResult.MappingList.Add(i); } return(ch); }