コード例 #1
0
        public virtual object Clone()
        {
            SQLiteFromIndexed res = new SQLiteFromIndexed();

            res._by = _by;
            return(res);
        }
コード例 #2
0
 public SQLiteFromTable(SQLiteObjectName table, string asName,
                        SQLiteFromIndexed indexed, SQLiteExpression onExpr, List <string> usingOpt)
 {
     _table    = table;
     AsName    = asName;
     _indexed  = indexed;
     _onExpr   = onExpr;
     _usingOpt = usingOpt;
 }
コード例 #3
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteFromIndexed dst = obj as SQLiteFromIndexed;

            if (dst == null)
            {
                return(false);
            }

            return(_by == dst._by);
        }
コード例 #4
0
        public virtual object Clone()
        {
            SQLiteObjectName t = null;

            if (_table != null)
            {
                t = (SQLiteObjectName)_table.Clone();
            }
            SQLiteFromInternalTable fit = null;

            if (_itable != null)
            {
                fit = (SQLiteFromInternalTable)_itable.Clone();
            }
            SQLiteFromIndexed fi = null;

            if (_indexed != null)
            {
                fi = (SQLiteFromIndexed)_indexed.Clone();
            }
            SQLiteExpression expr = null;

            if (_onExpr != null)
            {
                expr = (SQLiteExpression)_onExpr.Clone();
            }
            List <string> us = null;

            if (_usingOpt != null)
            {
                us = new List <string>();
                foreach (string str in _usingOpt)
                {
                    us.Add(str);
                }
            }

            SQLiteFromTable res = new SQLiteFromTable();

            res._asName   = _asName;
            res._indexed  = fi;
            res._itable   = fit;
            res._onExpr   = expr;
            res._table    = t;
            res._usingOpt = us;
            return(res);
        }
コード例 #5
0
 public SQLiteFromClause AddTable(SQLiteObjectName tableName, string asName,
                                  SQLiteFromIndexed indexed, SQLiteExpression onExpr, List <string> usingOpt)
 {
     _tables.Add(new SQLiteFromTable(tableName, asName, indexed, onExpr, usingOpt));
     return(this);
 }