public object Clone() { QueryFilterDefInfo other = (QueryFilterDefInfo)this.MemberwiseClone(); other.m_strTableColumn = this.m_strTableColumn; other.m_strConstOper = this.m_strConstOper; other.m_strConstValue = this.m_strConstValue; return(other); }
public QueryWhereDefInfo AddConstraint(QueryFilterDefInfo constraint) { QueryWhereDefInfo other = (QueryWhereDefInfo)this.MemberwiseClone(); other.m_QueryTableInfo = this.m_QueryTableInfo; other.m_strName = this.m_strName; other.m_strAliasName = this.m_strAliasName; other.m_QueryFilters = this.m_QueryFilters.Concat(new List <QueryFilterDefInfo>() { constraint }).ToList(); return(other); }
public CloneQueryFilterDefInfo(QueryFilterDefInfo fieldInfo) { m_source = (QueryFilterDefInfo)fieldInfo.Clone(); m_target = (QueryFilterDefInfo)fieldInfo.Clone(); }