/// <summary> /// 当存在true 时,特殊处理 /// </summary> protected virtual string SqlTrue(string sql) { var dbParam = ParamList.FirstOrDefault(o => o.ParameterName == sql); if (dbParam != null) { var result = dbParam.Value.ToString().Equals("true"); ParamList.RemoveAll(o => o.ParameterName == sql); return(result ? "1=1" : "1<>1"); } return(sql); }