public override DbTableQuery copyTo(DbTableQuery query)
        {
            query.set("ID", ID);
            query.set("ProjectID", ProjectID);
            query.set("UnitID", UnitID);

            return(query);
        }
Esempio n. 2
0
        /// <summary>
        /// 主要用于插入或更新时的赋值操作,比如obj.copyTo(context.table("user")).insert(); 这个操作的意思是将obj中所有的值设置到table("user")中执行插入操作
        /// </summary>
        /// <param name="dests"></param>
        /// <returns></returns>
        public override DbTableQuery copyTo(DbTableQuery dests)
        {
            dests.set("user_id", user_id);
            dests.set("role", role);
            dests.set("mobile", mobile);
            dests.set("udid", udid);
            dests.set("city_id", city_id);
            dests.set("name", name);
            dests.set("icon", icon);

            return(dests);
        }
Esempio n. 3
0
        public override DbTableQuery copyTo(DbTableQuery query)
        {
            //设置值
            query.set("ID", ID);
            query.set("UnitName", UnitName);
            query.set("UnitType", UnitType);
            query.set("UnitBankUser", UnitBankUser);
            query.set("UnitBankName", UnitBankName);
            query.set("UnitBankNo", UnitBankNo);
            query.set("IsUserAdded", IsUserAdded);

            return(query);
        }