コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public CloneQueryFilterDefInfo(QueryFilterDefInfo fieldInfo)
 {
     m_source = (QueryFilterDefInfo)fieldInfo.Clone();
     m_target = (QueryFilterDefInfo)fieldInfo.Clone();
 }