示例#1
0
        /// <summary>更新全局玩家扩展数据</summary>
        public static int GetEntityUpdate(tg_user_extend model)
        {
            var exp = new ConcatExpression();

            exp &= _.daySalary == model.daySalary;
            exp &= _.donate == model.donate;
            exp &= _.shot_count == model.shot_count;
            exp &= _.task_role_refresh == model.task_role_refresh;
            exp &= _.task_vocation_refresh == model.task_vocation_refresh;
            exp &= _.bargain_count == model.bargain_count;
            exp &= _.npc_refresh_count == model.npc_refresh_count;
            exp &= _.challenge_count == model.challenge_count;
            exp &= _.power_buy_count == model.power_buy_count;
            exp &= _.salary_state == model.salary_state;
            exp &= _.task_vocation_isgo == model.task_vocation_isgo;
            exp &= _.eloquence_count == model.eloquence_count;
            exp &= _.tea_count == model.tea_count;
            exp &= _.calculate_count == model.calculate_count;
            exp &= _.ninjutsu_count == model.ninjutsu_count;
            exp &= _.ball_count == model.ball_count;
            exp &= _.game_finish_count == model.game_finish_count;
            exp &= _.game_receive == model.game_receive;
            exp &= _.refresh_count == model.refresh_count;
            exp &= _.steal_fail_count == model.steal_fail_count;
            exp &= _.fight_count == model.fight_count;
            exp &= _.fight_buy == model.fight_buy;
            return(Update(exp, null));
        }
示例#2
0
 /// <summary>更新用户拓展实体</summary>
 public static bool GetUpdate(tg_user_extend model)
 {
     try
     {
         model.Update();
         return(true);
     }
     catch { return(false); }
 }