public QueryJoinDefInfo GetTargetInfo() { QueryJoinDefInfo defInfo = new QueryJoinDefInfo(this.m_strLeftAliasName, this.m_strRightAliasName, this.m_bJoinCondition, this.m_bLeftCondition); defInfo.SetQueryJoinFieldList(this.m_QueryJoinFieldInfo.Select((qj) => (qj.GetTargetInfo())).ToList()); return(defInfo); }
public CloneQueryJoinDefInfo(QueryJoinDefInfo defInfo) { this.m_QueryJoinFieldInfo = defInfo.QueryTableJoinFields().Select((jf) => (new CloneQueryJoinFieldDefInfo(jf))).ToList(); this.m_bJoinCondition = defInfo.m_bJoinCondition; this.m_bLeftCondition = defInfo.m_bLeftCondition; this.m_strLeftAliasName = defInfo.m_strLeftAliasName; this.m_strRightAliasName = defInfo.m_strRightAliasName; }
public object Clone() { QueryJoinDefInfo other = (QueryJoinDefInfo)this.MemberwiseClone(); other.m_bJoinCondition = this.m_bJoinCondition; other.m_bLeftCondition = this.m_bLeftCondition; other.m_strLeftAliasName = this.m_strLeftAliasName; other.m_strRightAliasName = this.m_strRightAliasName; return(other); }
public QueryJoinDefInfo AddRightColumn(string rightColumnName, string rightOp, string rightValue) { QueryJoinDefInfo other = (QueryJoinDefInfo)this.MemberwiseClone(); other.m_strLeftAliasName = this.m_strLeftAliasName; other.m_strRightAliasName = this.m_strRightAliasName; QueryJoinFieldDefInfo addJoinColumns = new QueryJoinFieldDefInfo(false, rightColumnName, rightOp, rightValue); other.m_QueryJoinFieldInfo = this.m_QueryJoinFieldInfo.Concat(new List <QueryJoinFieldDefInfo>() { addJoinColumns }).ToList(); return(other); }
public void AddTableJoin(QueryJoinDefInfo tableJoinInfo) { this.m_QueryJoinInfo.Add(tableJoinInfo); }