示例#1
0
        /// <summary>
        /// (私有方法)字段删除
        /// </summary>
        /// <param name='dic'></param>
        /// <returns></returns>
        private DeleteCriteria GetDeleteCriteria(Dictionary <string, object> dic)
        {
            DeleteCriteria dc = new DeleteCriteria(typeof(r_Log));

            if (dic != null && dic.Count > 0)
            {
                IFilter filter = dc.GetFilter();
                object  dicObject;
                if (dic.TryGetValue(r_Log.F_LOGID, out dicObject))
                {
                    filter.AddEqualTo(r_Log.F_LOGID, dicObject.ToString());
                }
                if (dic.TryGetValue(r_Log.F_INSERTDATETIME, out dicObject))
                {
                    filter.AddEqualTo(r_Log.F_INSERTDATETIME, dicObject.ToString());
                }
                if (dic.TryGetValue(r_Log.F_DATACOUNT, out dicObject))
                {
                    filter.AddEqualTo(r_Log.F_DATACOUNT, dicObject.ToString());
                }
                if (dic.TryGetValue(r_Log.F_QUERYTIMESTAMP, out dicObject))
                {
                    filter.AddEqualTo(r_Log.F_QUERYTIMESTAMP, dicObject.ToString());
                }
                if (dic.TryGetValue(r_Log.F_INGESTTIMESTAMP, out dicObject))
                {
                    filter.AddEqualTo(r_Log.F_INGESTTIMESTAMP, dicObject.ToString());
                }
                if (dic.TryGetValue(r_Log.F_USERID, out dicObject))
                {
                    filter.AddEqualTo(r_Log.F_USERID, dicObject.ToString());
                }
                if (dic.TryGetValue(r_Log.F_STATUS, out dicObject))
                {
                    filter.AddEqualTo(r_Log.F_STATUS, dicObject.ToString());
                }
                if (dic.TryGetValue(r_Log.F_REMARK, out dicObject))
                {
                    filter.AddEqualTo(r_Log.F_REMARK, dicObject.ToString());
                }
                if (dic.TryGetValue(r_Log.F_ACTIVITYDATE, out dicObject))
                {
                    filter.AddEqualTo(r_Log.F_ACTIVITYDATE, dicObject.ToString());
                }
            }
            return(dc);
        }