public CloneQueryWhereDefInfo(QueryWhereDefInfo defInfo, UInt32 versCreate)
 {
     this.m_QueryTableInfo = new CloneTableDefInfo(defInfo.QueryTableInfo(), versCreate);
     this.m_QueryFilters   = defInfo.QueryFilters().Select((qf) => new CloneQueryFilterDefInfo(qf)).ToList();
     this.m_strAliasName   = defInfo.AliasName();
     this.m_strName        = defInfo.TableName();
 }
        public QueryWhereDefInfo GetTargetInfo()
        {
            QueryWhereDefInfo defInfo = new QueryWhereDefInfo(this.m_strAliasName, this.m_QueryTableInfo.GetTargetInfo());

            defInfo.SetQueryFiltersList(this.m_QueryFilters.Select((qf) => (qf.GetTargetInfo())).ToList());

            return(defInfo);
        }
Пример #3
0
        public object Clone()
        {
            QueryWhereDefInfo other = (QueryWhereDefInfo)this.MemberwiseClone();

            other.m_strName      = this.m_strName;
            other.m_strAliasName = this.m_strAliasName;
            other.m_QueryFilters = this.m_QueryFilters.ToList();

            return(other);
        }
Пример #4
0
        public QueryWhereDefInfo AddConstraints(params QueryFilterDefInfo[] constraints)
        {
            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(constraints).ToList();
            return(other);
        }
Пример #5
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);
        }
Пример #6
0
 public void AddFiltr(QueryWhereDefInfo tableWhereInfo)
 {
     this.m_TableViewFilters.Add(tableWhereInfo);
 }